gpy icon indicating copy to clipboard operation
gpy copied to clipboard

Heteronym mode

Open suntong opened this issue 3 years ago • 3 comments

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

suntong avatar Oct 09 '20 00:10 suntong

Use pinyin -p 银行.

vcaesar avatar Oct 09 '20 02:10 vcaesar

Use pinyin -p 银行.

Not working:

$ pinyin -p 银行
yin xing

$ pinyin -e -p 银行
yin xing

suntong avatar Oct 09 '20 02:10 suntong

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 多音字模式 .

suntong avatar Oct 13 '20 13:10 suntong