Cbdy
V2EX  ›  问与答

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

  •  
  •   Cbdy · Jun 16, 2021 via Android · 2179 views
    This topic created in 1967 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
    noea
    Jun 16, 2021
    1
    https://github.com/overtrue/pinyin
    超哥出品,必属精品!
    AoEiuV020
    AoEiuV020
    Jun 16, 2021
    2
    我这边 java 用的是老掉牙的 pinyin4j,
    https://sourceforge.net/projects/pinyin4j/
    aristolochic
    aristolochic
    Jun 16, 2021
    3
    不限语言的话,基本组件 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   ·   Privacy   ·   Solana   ·   4861 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:15 · PVG 09:15 · LAX 17:15 · JFK 20:15
    ♥ Do have faith in what you're doing.