Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问有不带声调的数据吗 #46

Open
TIanCat opened this issue Oct 31, 2021 · 4 comments
Open

请问有不带声调的数据吗 #46

TIanCat opened this issue Oct 31, 2021 · 4 comments
Labels

Comments

@TIanCat
Copy link

TIanCat commented Oct 31, 2021

No description provided.

@mozillazg
Copy link
Owner

没有。你可以对这个仓库里的数据进行转换来得到不带声调的数据

@alingse
Copy link

alingse commented Nov 4, 2022

switch c {
		case 'ā', 'á', 'ǎ', 'à':
			pys[i] = 'a'
		case 'ē', 'é', 'ě', 'è':
			pys[i] = 'e'
		case 'ī', 'í', 'ǐ', 'ì':
			pys[i] = 'i'
		case 'ō', 'ó', 'ǒ', 'ò':
			pys[i] = 'o'
		case 'ū', 'ú', 'ǔ', 'ù':
			pys[i] = 'u'
		case 'ü', 'ǖ', 'ǘ', 'ǚ', 'ǜ':
			pys[i] = 'v'
		case 'ḿ':
			pys[i] = 'm'
		case 'ń', 'ň', 'ǹ':
			pys[i] = 'n'
		}

@HaukHuang
Copy link

switch c {
		case 'ā', 'á', 'ǎ', 'à':
			pys[i] = 'a'
		case 'ē', 'é', 'ě', 'è':
			pys[i] = 'e'
		case 'ī', 'í', 'ǐ', 'ì':
			pys[i] = 'i'
		case 'ō', 'ó', 'ǒ', 'ò':
			pys[i] = 'o'
		case 'ū', 'ú', 'ǔ', 'ù':
			pys[i] = 'u'
		case 'ü', 'ǖ', 'ǘ', 'ǚ', 'ǜ':
			pys[i] = 'v'
		case 'ḿ':
			pys[i] = 'm'
		case 'ń', 'ň', 'ǹ':
			pys[i] = 'n'
		}

请问这个代码如何使用?我也喜欢有一份不带声调的数据,用来检测用户输入的是否是正确的拼音。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants