promeG / TinyPinyin

适用于Java和Android的快速、低内存占用的汉字转拼音库。
Apache License 2.0
3.82k stars 476 forks source link

翻译不准确 #32

Open qsjh898 opened 6 years ago

qsjh898 commented 6 years ago

1幢翻译结果为"1CHUANG",版本2.0.3

alx696 commented 6 years ago

的拼音错误翻为ju, 正确为gui. 版本com.github.promeg:tinypinyin:2.0.3

alx696 commented 6 years ago

暂时可以这样解决 @qsjh898

    Pinyin.init(Pinyin.newConfig()
        .with(new PinyinMapDict() {
          @Override
          public Map<String, String[]> mapping() {
            HashMap<String, String[]> map = new HashMap<>();
            map.put("柜", new String[]{"GUI"});
            return map;
          }
        }));
LeonHover commented 5 years ago

“哦”错误翻译为 "E",正确为 "O" ,版本com.github.promeg:tinypinyin:2.0.3