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

patch: 更新部分字词读音 #252

Merged
merged 2 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions lib/data/dict2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2078,10 +2078,7 @@ const DICT2: { [prop: string]: string } = {
逐一: 'zhú yī',
周一: 'zhōu yī',
初一: 'chū yī',
高一: 'gāo yī',
大一: 'dà yī',
研一: 'yán yī',
守一: 'shǒu yī',
归一: 'guī yī', // 如:归一化、九九归一
假一: 'jiǎ yī', // 假一赔十
闻一: 'wén yī', // 闻一知十、闻一知二
Expand Down Expand Up @@ -2115,11 +2112,8 @@ const DICT2: { [prop: string]: string } = {
一八: 'yī bā',
一九: 'yī jiǔ', // 如:一九天很冷
一又: 'yī yòu', // 如小数:一又二分之一
// TODO: 添加更多为(二声)的词
一更: 'yī gēng', // 古代时间
一饼: 'yī bǐng', // 麻将牌
一楼: 'yī lóu',
一期: 'yī qī',
为例: 'wéi lì',
为准: 'wéi zhǔn',
沧海: 'cāng hǎi', // 加这个词是为了避免匹配成「曾经沧/海难/为水」为变成第四声
Expand All @@ -2146,8 +2140,6 @@ const DICT2: { [prop: string]: string } = {
空难: 'kōng nàn',
喜欢: 'xǐ huan', // 现代汉语词典(第7版)P1405
朝朝: 'zhāo zhāo',
行行: 'háng háng',
哪行: 'nǎ háng',
不行: 'bù xíng',
轧轧: 'yà yà',
弯曲: 'wān qū',
Expand All @@ -2164,6 +2156,8 @@ const DICT2: { [prop: string]: string } = {
曲折: 'qū zhé',
曲肱: 'qū gōng',
曲意: 'qū yì',
仡佬: 'gē lǎo',

};
export default DICT2;
export const Pattern2: Pattern[] = Object.keys(DICT2).map((key) => ({
Expand Down
1 change: 0 additions & 1 deletion lib/data/dict3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const DICT3: { [prop: string]: string } = {
运输量: 'yùn shū liàng',
发脾气: 'fā pí qi',
士大夫: 'shì dà fū',
仡佬族: 'gē lǎo zú',
鸭绿江: 'yā lù jiāng',
压根儿: 'yà gēn er',
对得起: 'duì de qǐ',
Expand Down
3 changes: 2 additions & 1 deletion lib/data/dict4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1593,9 +1593,10 @@ const DICT4: { [prop: string]: string } = {
一路公交: 'yī lù gōng jiāo',
一路汽车: 'yī lù qì chē',
一路巴士: 'yī lù bā shì',
不行一行: 'bù xíng yì háng', // 绕口令
朝朝朝落: 'zhāo cháo zhāo luò',
曲意逢迎: 'qū yì féng yíng',
一行不行: 'yì háng bù xíng',
行行不行: 'háng háng bù xíng'
}
export default DICT4;
export const Pattern4: Pattern[] = Object.keys(DICT4).map((key) => ({
Expand Down
1 change: 1 addition & 0 deletions lib/data/surname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ const Surnames: { [key: string]: string } = {
甯: 'nìng', // 如:周代有甯越,现在用作人名时也读四声,比如:张钧甯
六: 'lù', // https://baike.baidu.com/item/%E5%85%AD%E5%A7%93/9394114
啜: 'chuài', // https://baike.baidu.com/item/%E5%95%9C%E5%A7%93/9563772
行: 'xíng',
};

export default Surnames;
Expand Down
Loading