gpy
gpy copied to clipboard
Heteronym mode
Question
What does the Heteronym
(多音字模式) do?
$ pinyin 银行
yin xing
$ pinyin -e 银行
yin xing
I was hoping that when the Heteronym
(多音字模式) is on, the second output would be
yin hang
Use pinyin -p 银行
.
Use
pinyin -p 银行
.
Not working:
$ pinyin -p 银行
yin xing
$ pinyin -e -p 银行
yin xing
I now have a feeling that the Heteronym (多音字模式) mode is broken.
Take a look at https://github.com/go-cc/cc2py#examples
The output of its 多音字模式 is:
$ echo "中国人的〖中国银行〗,很.行.。" | cc2py -i -p -t 3 zhōng/zhòng guó rén de/dì/dí 〖zhōng/zhòng guó yín xíng/háng/xìng/hàng/héng 〗,hěn .xíng/háng/xìng/hàng/héng .。
I was wondering what this line does https://github.com/go-ego/gpy/blob/c1449e7fdd8b997614b054e0ec19af5977df538f/tools/pinyin/main.go#L84
and now I think it should be for the 多音字模式 .