Skip to content
convert chinese to pinyin
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
.gitignore
Gemfile
README
Rakefile
toPinyin.gemspec

README

require 'toPinyin'

words = "
人
没有
理想
跟
咸鱼
有
什么
区别
".split("\n")

words.sort! {|a ,b|   a.pinyin.join <=> b.pinyin.join }


<b>see ./lib/toPinyin/test.rb for more usage. </b>
Something went wrong with that request. Please try again.