V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Cbdy
V2EX  ›  问与答

有什么好用的汉字转拼音方案推荐?

  •  
  •   Cbdy · 2021-06-16 10:30:38 +08:00 via Android · 981 次点击
    这是一个创建于 1045 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不限语言

    第 1 条附言  ·  2021-07-06 21:19:02 +08:00
    最后我用了这个
    https://github.com/houbb/pinyin
    3 条回复    2021-06-16 20:24:24 +08:00
    noea
        1
    noea  
       2021-06-16 10:32:27 +08:00
    https://github.com/overtrue/pinyin
    超哥出品,必属精品!
    AoEiuV020
        2
    AoEiuV020  
       2021-06-16 10:52:50 +08:00
    我这边 java 用的是老掉牙的 pinyin4j,
    https://sourceforge.net/projects/pinyin4j/
    aristolochic
        3
    aristolochic  
       2021-06-16 20:24:24 +08:00
    不限语言的话,基本组件 ICU 里面的 Transliteration 相关
    有 ICU 绑定就能用
    这个是 Java 的例子: http://www.avajava.com/tutorials/lessons/how-do-i-convert-chinese-characters-to-their-latin-equivalents.html

    当然了这个还是太复杂了,如果就是为了生成 slug 的话,其实没啥必要
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2526 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:53 · PVG 23:53 · LAX 08:53 · JFK 11:53
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.