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

Heteronym mode #15

Open
suntong opened this issue Oct 9, 2020 · 3 comments
Open

Heteronym mode #15

suntong opened this issue Oct 9, 2020 · 3 comments

Comments

@suntong
Copy link
Contributor

suntong commented Oct 9, 2020

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

@vcaesar
Copy link
Member

vcaesar commented Oct 9, 2020

Use pinyin -p 银行.

@suntong
Copy link
Contributor Author

suntong commented Oct 9, 2020

Use pinyin -p 银行.

Not working:

$ pinyin -p 银行
yin xing

$ pinyin -e -p 银行
yin xing

@suntong
Copy link
Contributor Author

suntong commented Oct 13, 2020

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

j := strings.Join(s, ",")

and now I think it should be for the 多音字模式 .

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

No branches or pull requests

2 participants