Announcing Pinyin for Ruby
This is a little library I wrote to convert between various romanization systems for Chinese. It currently supports Hanyu pinyin, Wade Giles, Zhuyin Fuhao (BoPoMoFo) and IPA (international phonetic alphabet).
A number of different systems to represent tones are supported : numbers, stand alone tone marks, accents or no tones. Take note that not all combinations make sense. E.g. ipa + accents will not yield useful results. However, numbers and standalone marks can be used with any system.
To get it do this
$ gem instal pinyin --source http://gems.arnebrasseur.net
Alternatively download the tarbal here.










Comments
Post new comment