
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
dragonmapper
Advanced tools
.. image:: https://badge.fury.io/py/dragonmapper.svg :target: https://pypi.org/project/dragonmapper
.. image:: https://github.com/tsroten/dragonmapper/actions/workflows/ci.yml/badge.svg :target: https://github.com/tsroten/dragonmapper/actions/workflows/ci.yml
Dragon Mapper is a Python library that provides identification and conversion functions for Chinese text processing.
.. code:: python
>>> s = '我是一个美国人。'
>>> dragonmapper.hanzi.is_simplified(s)
True
>>> dragonmapper.hanzi.to_pinyin(s)
'wǒshìyīgèměiguórén。'
>>> dragonmapper.hanzi.to_pinyin(s, all_readings=True)
'[wǒ][shì/shi/tí][yī][gè/ge/gě/gàn][měi][guó][rén/ren]。'
.. code:: python
>>> s = 'Wǒ shì yīgè měiguórén.'
>>> dragonmapper.transcriptions.is_pinyin(s)
True
>>> dragonmapper.transcriptions.pinyin_to_zhuyin(s)
'ㄨㄛˇ ㄕˋ ㄧ ㄍㄜˋ ㄇㄟˇ ㄍㄨㄛˊ ㄖㄣˊ.'
>>> dragonmapper.transcriptions.pinyin_to_ipa(s)
'wɔ˧˩˧ ʂɨ˥˩ i˥ kɤ˥˩ meɪ˧˩˧ kwɔ˧˥ ʐən˧˥.'
Install Dragon Mapper <https://tsroten.github.io/dragonmapper/installation.html>_Dragon Mapper's tutorial <https://tsroten.github.io/dragonmapper/tutorial.html>_GitHub Issues <https://github.com/tsroten/dragonmapper>_API documentation <https://tsroten.github.io/dragonmapper/api.html>_ when you need more technical informationContribute <https://tsroten.github.io/dragonmapper/contributing.html>_ documentation, code, or feedbackFAQs
Identification and conversion functions for Chinese text processing
We found that dragonmapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.