andyhu
V2EX  ›  Node.js

node 有没有比较好的可以对中文做 transliteration 的包?

  •  2
     
  •   andyhu · May 5, 2014 · 2889 views
    This topic created in 4416 days ago, the information mentioned may be changed or developed.
    比如说可以把文章标题转换为拼音,支持多语言的。
    试了下slug好像不支持中文。以前记得有一个模块,是从ruby一个包转过来的,忘了叫什么了
    1 replies    2014-05-05 06:18:26 +08:00
    andyhu
        1
    andyhu  
    OP
       May 5, 2014
    自问自答了,好像是stringex这个包,另外node-iconv也有translit选项,貌似可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2940 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:47 · PVG 20:47 · LAX 05:47 · JFK 08:47
    ♥ Do have faith in what you're doing.