Pinyin4r is a ruby library supporting convertion between Chinese characters and most popular Pinyin systems.
Shane Xu
MIT