# GitHub - flyerhzm/chinese_pinyin: translate chinese hanzi to pinyin # https://github.com/flyerhzm/chinese_pinyin gem 'chinese_pinyin', '1.1.0'
Then, run bundle install.
1
$ bundle install
Usage
By CLI
1 2 3 4 5 6 7 8 9 10 11 12 13 14
$ ch2py -h Usage: ch2py [opts] -c, --camelcase Camelcase of each word -i, --stdin Read from stdard input -t, --tone Show tone at end of word -m, --tonemarks Show tone at top of letter, this would cover -t option -s, --splitter <splitter> Splitter of each word, use a space by default -v, --version Show version -h, --help Show this help $ ch2py 中文 zhong wen