Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

turn chinese hanzi to its pronunciation

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 tests
Octocat-spinner-32 .gitignore
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
= Pinyin
Turn chinese to pronunciation

This class enable ruby programs to turn chinese hanzi to its
pronunciation, that is, pinyin. It supports the GB2312 character
set coding table.

== Usage

require "pinyin"

pinyin = Chinese::Pronunciation.to_pinyin("xxx")

== Contribution

Thanks jinzhu( He refactored this gem a lot
and make a 2x faster for the speed.

v0.1.0 July 18
* initial release

Copyright (c) 2007 Dingding Ye <>
Distributed under MIT License
Something went wrong with that request. Please try again.