Skip to content

Commit d8e7854

Browse files
committed
fix "吒" in trans_word.txt
1 parent 3924631 commit d8e7854

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

res/dict/mandarin/trans_word.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,6 @@
11321132
嚀:咛
11331133
賀:贺
11341134
惱:恼
1135-
吒:咤
11361135
慣:惯
11371136
鐸:铎
11381137
幀:帧

tests/ManTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ namespace Test
4646
if (g2p_zh->hanziToPinyin("hao de", Pinyin::ManTone::Style::TONE3, Pinyin::Error::Default, true,
4747
false, true).toStdStr() != u8"hao de")
4848
std::cerr << "Hanzi to Pinyin test failed." << std::endl;
49+
if (g2p_zh->hanziToPinyin("哪吒", Pinyin::ManTone::Style::TONE3, Pinyin::Error::Default, true,
50+
false, true).toStdStr() != u8"ne2 zha1")
51+
std::cerr << "Hanzi to Pinyin test failed." << std::endl;
4952
return true;
5053
}
5154

0 commit comments

Comments
 (0)