Cbdy
V2EX  ›  问与答

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

  •  
  •   Cbdy · Jun 16, 2021 via Android · 1864 views
    This topic created in 1821 days ago, the information mentioned may be changed or developed.

    不限语言

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

    当然了这个还是太复杂了,如果就是为了生成 slug 的话,其实没啥必要
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   919 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 21:08 · PVG 05:08 · LAX 14:08 · JFK 17:08
    ♥ Do have faith in what you're doing.