Translate chinese word to bopomofo
Project description
Translate 漢字 to ㄅㄆㄇㄈ, based on lxneng/xpinyin.
Install
pip install bopomofo
Usage
>>> from bopomofo import to_bopomofo
>>> to_bopomofo(u'注音')
'ㄓㄨˋ ㄧㄣ'
>>> to_bopomofo(u'注音', tones=False)
'ㄓㄨ ㄧㄣ'
>>> to_bopomofo(u'注音', '、')
'ㄓㄨˋ、ㄧㄣ'
>>> bopomofo.to_bopomofo(u'注音', first_tone_symbol=True)
'ㄓㄨˋ ㄧㄣˉ'
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
bopomofo-0.1.0.zip
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for bopomofo-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9704e004b8abaca105b9ff422cb1ab512d23ae5a200904354ecf57cbd962db9 |
|
MD5 | 61fc527c5a6449ec2af0c78045ead595 |
|
BLAKE2b-256 | 6028ca9ff791cdfdc1d77744e05ad5f190506e108e48f5ed9d15cce0703a7712 |