README.rdoc in hanzi_to_pinyin-0.7.0 vs README.rdoc in hanzi_to_pinyin-0.8.0

- old
+ new

@@ -1,18 +1,18 @@ = hanzi_to_pinyin -translate chinese to pinyin , fetch first letter OR full pinyin +translate chinese to pinyin, fetch first letter OR full pinyin == Install rails3 - $ gem 'hanzi_to_pinyin' , '0.6.1' , require: 'hanzi_to_pinyin' + $ gem 'hanzi_to_pinyin', '0.8.0', require: 'hanzi_to_pinyin' or latest develop version - $ gem 'hanzi_to_pinyin' , git: 'git://github.com/wxianfeng/hanzi_to_pinyin.git' + $ gem 'hanzi_to_pinyin', git: 'git://github.com/wxianfeng/hanzi_to_pinyin.git' or freeze ref version - $ gem 'hanzi_to_pinyin' , git: 'git://github.com/wxianfeng/hanzi_to_pinyin.git' , ref: 5fa43b0 + $ gem 'hanzi_to_pinyin', git: 'git://github.com/wxianfeng/hanzi_to_pinyin.git', ref: 5fa43b0 == Usage $ HanziToPinyin.hanzi_to_pinyin("中华人民共和国") => "zhrmghg" $ HanziToPinyin.hanzi_2_pinyin("中华人民共和国") => "zhrmghg" @@ -20,10 +20,10 @@ $ HanziToPinyin.hanzi_2_pinyin("喜欢Ruby") => "xhruby" $ HanziToPinyin.is_hanzi?("你") => true $ HanziToPinyin.is_hanzi?("a") => false - # 只处理汉字和数字 多音字,分隔 字字之间;分隔 + # 多音字,分隔 字字之间;分隔,字母丢弃 $ HanziToPinyin.hanzi_2_py("我们") => "wo;men" $ HanziToPinyin.hanzi_2_py("查理Smith") => "cha,zha;li" $ HanziToPinyin.hanzi_2_py("测试1") => "ce;shi;1" $ HanziToPinyin.hanzi_2_py("测_试") => "ce;_;shi" $ HanziToPinyin.hanzi_2_py("测-试").should == "ce;-;shi" \ No newline at end of file