=============
Dragon Mapper
=============
.. 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.
* Documentation: https://tsroten.github.io/dragonmapper/
* GitHub: https://github.com/tsroten/dragonmapper
* Free software: MIT license
Features
--------
* 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.
.. 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˧˥.'
Getting Started
---------------
* `Install Dragon Mapper <https://tsroten.github.io/dragonmapper/installation.html>`_
* Read `Dragon Mapper's tutorial <https://tsroten.github.io/dragonmapper/tutorial.html>`_
* Report bugs and ask questions via `GitHub Issues <https://github.com/tsroten/dragonmapper>`_
* Refer to the `API documentation <https://tsroten.github.io/dragonmapper/api.html>`_ when you need more technical information
* `Contribute <https://tsroten.github.io/dragonmapper/contributing.html>`_ documentation, code, or feedback
Raw data
{
"_id": null,
"home_page": null,
"name": "dragonmapper",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "bopomofo, characters, chinese, convert, hanzi, ipa, mandarin, pinyin, readings, transcription, zhuyin",
"author": "Thomas Roten",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/44/56/7740952e75a1e6dae78a9695fdad901f98c8fe0acc8d68fd391e267e6323/dragonmapper-0.3.0.tar.gz",
"platform": null,
"description": "=============\nDragon Mapper\n=============\n\n.. image:: https://badge.fury.io/py/dragonmapper.svg\n :target: https://pypi.org/project/dragonmapper\n\n.. image:: https://github.com/tsroten/dragonmapper/actions/workflows/ci.yml/badge.svg\n :target: https://github.com/tsroten/dragonmapper/actions/workflows/ci.yml\n\nDragon Mapper is a Python library that provides identification and conversion\nfunctions for Chinese text processing.\n\n* Documentation: https://tsroten.github.io/dragonmapper/\n* GitHub: https://github.com/tsroten/dragonmapper\n* Free software: MIT license\n\nFeatures\n--------\n\n* Convert between Chinese characters, Pinyin, Zhuyin, and the International\n Phonetic Alphabet.\n* Identify a string as Traditional or Simplified Chinese, Pinyin, Zhuyin, or\n the International Phonetic Alphabet.\n\n.. code:: python\n\n >>> s = '\u6211\u662f\u4e00\u4e2a\u7f8e\u56fd\u4eba\u3002'\n >>> dragonmapper.hanzi.is_simplified(s)\n True\n >>> dragonmapper.hanzi.to_pinyin(s)\n 'w\u01d2sh\u00ecy\u012bg\u00e8m\u011bigu\u00f3r\u00e9n\u3002'\n >>> dragonmapper.hanzi.to_pinyin(s, all_readings=True)\n '[w\u01d2][sh\u00ec/shi/t\u00ed][y\u012b][g\u00e8/ge/g\u011b/g\u00e0n][m\u011bi][gu\u00f3][r\u00e9n/ren]\u3002'\n\n.. code:: python\n\n >>> s = 'W\u01d2 sh\u00ec y\u012bg\u00e8 m\u011bigu\u00f3r\u00e9n.'\n >>> dragonmapper.transcriptions.is_pinyin(s)\n True\n >>> dragonmapper.transcriptions.pinyin_to_zhuyin(s)\n '\u3128\u311b\u02c7 \u3115\u02cb \u3127 \u310d\u311c\u02cb \u3107\u311f\u02c7 \u310d\u3128\u311b\u02ca \u3116\u3123\u02ca.'\n >>> dragonmapper.transcriptions.pinyin_to_ipa(s)\n 'w\u0254\u02e7\u02e9\u02e7 \u0282\u0268\u02e5\u02e9 i\u02e5 k\u0264\u02e5\u02e9 me\u026a\u02e7\u02e9\u02e7 kw\u0254\u02e7\u02e5 \u0290\u0259n\u02e7\u02e5.'\n\nGetting Started\n---------------\n* `Install Dragon Mapper <https://tsroten.github.io/dragonmapper/installation.html>`_\n* Read `Dragon Mapper's tutorial <https://tsroten.github.io/dragonmapper/tutorial.html>`_\n* Report bugs and ask questions via `GitHub Issues <https://github.com/tsroten/dragonmapper>`_\n* Refer to the `API documentation <https://tsroten.github.io/dragonmapper/api.html>`_ when you need more technical information\n* `Contribute <https://tsroten.github.io/dragonmapper/contributing.html>`_ documentation, code, or feedback\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Identification and conversion functions for Chinese text processing",
"version": "0.3.0",
"project_urls": {
"Documentation": "https://tsroten.github.io/dragonmapper",
"Source code": "https://github.com/tsroten/dragonmapper"
},
"split_keywords": [
"bopomofo",
" characters",
" chinese",
" convert",
" hanzi",
" ipa",
" mandarin",
" pinyin",
" readings",
" transcription",
" zhuyin"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "113aa906236c0fd25c0c9e25684d17643b72c01031ae5bdcd20e03d91e4c70ff",
"md5": "4d77b4cc737155553d82a8f594cec550",
"sha256": "7b9f4503963e5e016bfcdfc4d58d73fc029214f54d643880fab834e51ec55f6a"
},
"downloads": -1,
"filename": "dragonmapper-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4d77b4cc737155553d82a8f594cec550",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 1384600,
"upload_time": "2024-11-19T23:59:00",
"upload_time_iso_8601": "2024-11-19T23:59:00.692733Z",
"url": "https://files.pythonhosted.org/packages/11/3a/a906236c0fd25c0c9e25684d17643b72c01031ae5bdcd20e03d91e4c70ff/dragonmapper-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "44567740952e75a1e6dae78a9695fdad901f98c8fe0acc8d68fd391e267e6323",
"md5": "ae23e3c85c8046f2d2c3710a25ff3933",
"sha256": "17b6a33ad98ed3d6cd2392bd41613bd57279e84ffb96fb4a5bda336f9fe0572e"
},
"downloads": -1,
"filename": "dragonmapper-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "ae23e3c85c8046f2d2c3710a25ff3933",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 1384307,
"upload_time": "2024-11-19T23:59:04",
"upload_time_iso_8601": "2024-11-19T23:59:04.417393Z",
"url": "https://files.pythonhosted.org/packages/44/56/7740952e75a1e6dae78a9695fdad901f98c8fe0acc8d68fd391e267e6323/dragonmapper-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-19 23:59:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tsroten",
"github_project": "dragonmapper",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "dragonmapper"
}