Translate chinese chars to pinyin based on Mandarin.dat
Project description
Translate chinese chars to pinyin based on Mandarin.dat
Usage
Input unicode string
>>> import pinyin >>> pinyin.get_pinyin(u'你好') 'nihao' >>> pinyin.get_initial(u'你好') 'n h'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pinyin-0.1.2.tar.gz
(125.4 kB
view hashes)