Skip navigation

Pinyin for Ruby 0.0.1 has been released

Today I released my very first public Ruby project!

Pinyin is a pure Ruby library with a specific focus : converting between various transliteration systems for Mandarin Chinese.

Over time various systems have been devised to capture the phonetics of the Chinese language, often as a teaching aid.

This is the first public release. Pinyin for Ruby can currently convert between five different systems, with more to come.

- Hanyu Pinyin
- Wade-Giles
- Tongyong Pinyin
- Zhuyin Fuhao (BoPoMoFo)
- IPA (International Phonetic Alphabet)

It does this by decomposing each syllable into its three components (initial, final and tone) and then recomposing the syllable in a different system. This approach was chosen over a table based approach because it better captures the way each system works.

Conversion tables are included to test the package.

There’s still plenty to be done, but since it already has some nice capabilities I’m putting this out in the open, to see if there is any interest. Next step is to move from my private SVN repository to the one on Rubyforge. The project also needs a homepage.

Give it a whirl! Simply type

gem install pinyin

(Adding ’sudo’ where necessary.)

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*