{ "info": { "author": "Macro Yau", "author_email": "macroyau.development@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "# PyJyutping\n\nChinese text to [Jyutping](https://en.wikipedia.org/wiki/Jyutping) \n(\u7cb5\u62fc; a standard of Cantonese romanization) conversion library in Python. \nConversion is based on an officially published [Cantonese Pronunciation List](http://www.iso10646hk.net/jp/document/jyut_yam_table.jsp). \nThis library performs the conversion using the Jyutping romanization table \nprepared by [Dr. Samuel Cheng](https://www.samuelcheng.info/jyutping.html), \nwhich has been further converted to a [dictionary file in JSON format](pyjyutping/data/jyutping_dictionary.json).\n\n\n## Installation\n\n```shell\npip install pyjyutping\n```\n\n\n## Usage\n\n### Python\n\n```python\n>>> from pyjyutping import jyutping\n>>> jyutping.convert(\"\u6211\u4fc2\u9999\u6e2f\u4eba\")\n'ngo5 hai6 hoeng1 gong2 jan4'\n```\n\nTone number in output can be disabled:\n\n```python\n>>> jyutping.convert(\"\u6211\u4fc2\u9999\u6e2f\u4eba\", tone=False)\n'ngo hai hoeng gong jan'\n```\n\nAlphabets and digits are preserved in the conversion:\n\n```python\n>>> jyutping.convert(\"\u9999\u6e2f\u5605\u82f1\u6587\u4fc2Hong Kong\")\n'hoeng1 gong2 ge3 jing1 man4 hai6 Hong Kong'\n>>> jyutping.convert(\"1841\u5e741\u670825\u865f\u9999\u6e2f\u958b\u57e0\")\n'1841 nin4 1 jyut6 25 hou6 hoeng1 gong2 hoi1 bou6'\n```\n\n### Command-Line Interface Tool\n\n```shell\n$ pyjyutping \u6211\u4fc2\u9999\u6e2f\u4eba\nngo5 hai6 hoeng1 gong2 jan4\n```\n\n\n## License\n\nMIT\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MacroYau/PyJyutping", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pyjyutping", "package_url": "https://pypi.org/project/pyjyutping/", "platform": "", "project_url": "https://pypi.org/project/pyjyutping/", "project_urls": { "Homepage": "https://github.com/MacroYau/PyJyutping" }, "release_url": "https://pypi.org/project/pyjyutping/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Chinese text to Jyutping conversion library in Python", "version": "1.0.0" }, "last_serial": 5297192, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6f158594a7002cdcf288c00485fe8d88", "sha256": "7ff56692f31ac8559445b82d24dce6b2766c7babb288d12af45f628f93055a8a" }, "downloads": -1, "filename": "pyjyutping-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6f158594a7002cdcf288c00485fe8d88", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 143740, "upload_time": "2019-05-21T10:42:50", "url": "https://files.pythonhosted.org/packages/eb/4c/898551213da26d27c0daa5d32dcdc5a6a98ed428ff728b9f97cfdc076aab/pyjyutping-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ae31a4f11d4ba06489353b0f9443119", "sha256": "508ec2ecb494c25c38b8840c3118c402d2dd735afe4d46b41ededac6d06b3762" }, "downloads": -1, "filename": "pyjyutping-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3ae31a4f11d4ba06489353b0f9443119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 140721, "upload_time": "2019-05-21T10:42:53", "url": "https://files.pythonhosted.org/packages/27/a0/ddd4ae0f3f123032c273f3c283d1807aba8e9228471219b0a9258e585b33/pyjyutping-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6f158594a7002cdcf288c00485fe8d88", "sha256": "7ff56692f31ac8559445b82d24dce6b2766c7babb288d12af45f628f93055a8a" }, "downloads": -1, "filename": "pyjyutping-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6f158594a7002cdcf288c00485fe8d88", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 143740, "upload_time": "2019-05-21T10:42:50", "url": "https://files.pythonhosted.org/packages/eb/4c/898551213da26d27c0daa5d32dcdc5a6a98ed428ff728b9f97cfdc076aab/pyjyutping-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ae31a4f11d4ba06489353b0f9443119", "sha256": "508ec2ecb494c25c38b8840c3118c402d2dd735afe4d46b41ededac6d06b3762" }, "downloads": -1, "filename": "pyjyutping-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3ae31a4f11d4ba06489353b0f9443119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 140721, "upload_time": "2019-05-21T10:42:53", "url": "https://files.pythonhosted.org/packages/27/a0/ddd4ae0f3f123032c273f3c283d1807aba8e9228471219b0a9258e585b33/pyjyutping-1.0.0.tar.gz" } ] }