skip to navigation
skip to content

dragonmapper 0.2

Identification and conversion functions for Chinese text processing

Latest Version: 0.2.6

Dragon Mapper is a Python library that provides identification and conversion functions for Chinese text processing.

  • Convert between Chinese characters, Pinyin, Zhuyin, and the International Phonetic Alphabet.
  • Identify a string as Traditional or Simplified Chinese, Pinyin, Zhuyin, or the International Phonetic Alphabet.
>>> s = '我是一个美国人。'
>>> dragonmapper.hanzi.is_simplified(s)
>>> dragonmapper.hanzi.to_pinyin(s)
>>> dragonmapper.hanzi.to_pinyin(s, all_readings=True)
>>> s = 'Wǒ shì yīgè měiguórén.'
>>> dragonmapper.transcriptions.is_pinyin(s)
>>> dragonmapper.transcriptions.pinyin_to_zhuyin(s)
'ㄨㄛˇ ㄕˋ ㄧ ㄍㄜˋ ㄇㄟˇ ㄍㄨㄛˊ ㄖㄣˊ.'
>>> dragonmapper.transcriptions.pinyin_to_ipa(s)
'wɔ˧˩˧ ʂɨ˥˩ i˥ kɤ˥˩ meɪ˧˩˧ kwɔ˧˥ ʐən˧˥.'


Dragon Mapper supports Python 2.7 and 3. Zhon and Hanzi Identifier are also required.

Just use pip:

$ pip install dragonmapper


Dragon Mapper includes complete and easy-to-read documentation. Check it out for a gentle introduction or the full API details.

Bugs/Feature Requests

Dragon Mapper uses its GitHub Issues page to track bugs, feature requests, and support questions.


Dragon Mapper is released under the OSI-approved MIT License. See the file LICENSE.txt for more information.

File Type Py Version Uploaded on Size
dragonmapper-0.2.tar.gz (md5, pgp) Source 2014-04-14 1MB