Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update README

  • Loading branch information...
commit 6c520548dfeefbf59ab358ef437dbe612007e082 1 parent ac6843b
@flyerhzm authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.md
View
7 README.md
@@ -17,9 +17,10 @@ Usage
require 'chinese_pinyin'
Pinyin.t('中国') => "zhong guo"
- Pinyin.t('中国', '-') => "zhong-guo"
- Pinyin.t('中国', '') => "zhongguo"
Pinyin.t('你好world') => "ni hao world"
+ Pinyin.t('中国', splitter: '-') => "zhong-guo"
+ Pinyin.t('中国', splitter: '') => "zhongguo"
+ Pinyin.t('中国', tone: true) => "zhong1 guo2"
Polyphone Issue
---------------
@@ -32,7 +33,7 @@ by default
add file Words.dat
- 广州|guang zhou
+ 广州|guang3 zhou1
set ENV['WORDS_FILE'] for Words.dat
Please sign in to comment.
Something went wrong with that request. Please try again.