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

无声调模式的一个小BUG #4

Closed
neavo opened this issue Apr 13, 2013 · 2 comments
Closed

无声调模式的一个小BUG #4

neavo opened this issue Apr 13, 2013 · 2 comments
Milestone

Comments

@neavo
Copy link

neavo commented Apr 13, 2013

当使用无声调的几种转换模式的时候
[āáǎà] 这几个字符会直接在结果中输出,并不会转化为a
我使用的是压缩过的字典,并工作在NodeJS环境下
这是否是一个BUG呢

@hotoo
Copy link
Owner

hotoo commented Apr 15, 2013

首字母和声母两种风格的是有点问题,会尽快修复。谢谢 :)

如果你遇到的是其他问题,请提供测试代码。

p.s. node 版本可以使用这个 https://github.com/hotoo/node-pinyin

@neavo
Copy link
Author

neavo commented Apr 15, 2013

var PinYin = require("./Module/PinYin");
var StrObject = PinYin("爱", {
        style: PinYin.STYLE_FIRST_LETTER,
});
console.log(StrObject);
// Print [ [ 'à' ] ]

我原以为会输出 [ [ 'a' ] ]

毕竟会用到首字母的大部分时候都是为了索引,索引是不需要声调的

就是这么设计的么,还是一个BUG呢

@hotoo hotoo closed this as completed in b4f3d9a Apr 16, 2013
hotoo added a commit that referenced this issue May 15, 2014
This issue was closed.
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