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

多音字转换 #39

Open
why2 opened this issue Dec 19, 2018 · 3 comments
Open

多音字转换 #39

why2 opened this issue Dec 19, 2018 · 3 comments

Comments

@why2
Copy link

why2 commented Dec 19, 2018

哦,转换成e

@MisterBowie
Copy link

我也遇到了

@why2
Copy link
Author

why2 commented Nov 5, 2020

我也遇到了
是有这个问题的

@MisterBowie
Copy link

我是这样解决的
Pinyin.init(Pinyin.newConfig()
.with(new PinyinMapDict() {
@OverRide
public Map<String, String[]> mapping() {
HashMap<String, String[]> map = new HashMap<String, String[]>();
map.put("哦", new String[]{"O"});
return map;
}
}));
关键再这里
Pinyin.toPinyin(src, "");

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