dragonmapper


Namedragonmapper JSON
Version 0.2.7 PyPI version JSON
download
home_pageNone
SummaryIdentification and conversion functions for Chinese text processing
upload_time2024-05-25 17:51:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords bopomofo characters chinese convert hanzi ipa mandarin pinyin readings transcription zhuyin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =============
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.8",
    "maintainer_email": null,
    "keywords": "bopomofo, characters, chinese, convert, hanzi, ipa, mandarin, pinyin, readings, transcription, zhuyin",
    "author": null,
    "author_email": "Thomas Roten <thomas@roten.us>",
    "download_url": "https://files.pythonhosted.org/packages/d2/88/66be3e4a1c9bc7d9cbdbc41843ef97ea69e2a79b3822fd4fe5087e22c198/dragonmapper-0.2.7.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": null,
    "summary": "Identification and conversion functions for Chinese text processing",
    "version": "0.2.7",
    "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": "826c635416d3a2dc9426a6368cf326ef1c7e06af79e924ac90b4dd8814bca4f0",
                "md5": "2754d81011167cdb544848172d873c71",
                "sha256": "7f05ab759244f14f393da814a18cae6ac6efea44686a15c208d239e39e91e9c3"
            },
            "downloads": -1,
            "filename": "dragonmapper-0.2.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2754d81011167cdb544848172d873c71",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1384642,
            "upload_time": "2024-05-25T17:51:26",
            "upload_time_iso_8601": "2024-05-25T17:51:26.276546Z",
            "url": "https://files.pythonhosted.org/packages/82/6c/635416d3a2dc9426a6368cf326ef1c7e06af79e924ac90b4dd8814bca4f0/dragonmapper-0.2.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d28866be3e4a1c9bc7d9cbdbc41843ef97ea69e2a79b3822fd4fe5087e22c198",
                "md5": "83c44932ec9f1ccfd25ecfef20da7151",
                "sha256": "9318aecc47afe83b195c2ef5812485b4db86f52e5fe3b1fcb540507bc87f7e80"
            },
            "downloads": -1,
            "filename": "dragonmapper-0.2.7.tar.gz",
            "has_sig": false,
            "md5_digest": "83c44932ec9f1ccfd25ecfef20da7151",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 1384344,
            "upload_time": "2024-05-25T17:51:28",
            "upload_time_iso_8601": "2024-05-25T17:51:28.295706Z",
            "url": "https://files.pythonhosted.org/packages/d2/88/66be3e4a1c9bc7d9cbdbc41843ef97ea69e2a79b3822fd4fe5087e22c198/dragonmapper-0.2.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-25 17:51:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tsroten",
    "github_project": "dragonmapper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dragonmapper"
}
        
Elapsed time: 0.24155s