mozillazg / go-pinyin

汉字转拼音
https://godoc.org/github.com/mozillazg/go-pinyin
MIT License
1.6k stars 194 forks source link

Problem with 声母风格&韵母风格 #29

Open suntong opened 7 years ago

suntong commented 7 years ago

Hi @mozillazg,

I noticed something is wrong with 声母风格&韵母风格 while doing #26. (Ref: https://github.com/go-cc/cc2py/blob/master/cc2py_test.go#L32-L39)

Please take a look at https://github.com/go-cc/cc-table/blob/master/text/tools/go-pinyin.go

You can see that the output for "yín" in 声母风格 is blank and in 韵母风格 it is "iín". I.e., both cases are wrong.

Would you look into it please? Thx.

mozillazg commented 7 years ago

是的,这个地方的韵母风格有问题,声母风格是因为 y 不是声母。当时 https://github.com/mozillazg/go-pinyin/issues/18#issue-212053669 提到了这个问题,暂时还没修复。