Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 431 Bytes

README.rst

File metadata and controls

25 lines (16 loc) · 431 Bytes

python-jyutping

Python tool to convert Chinese characters to Jyutping.

Install

$ pip install jyutping

Usage

>>> import jyutping

>>> jyutping.get('广东话')  # Python 3
>>> jyutping.get(u'广东话')  # Python 2
['gwong2', 'dung1', 'waa6']

>>> jyutping.get('广东话', multiple=True)
[{'gwong2'}, {'dung1'}, {'waa6', 'waa2'}]