{ "info": { "author": "Dingyuan Wang", "author_email": "abcdoyle888@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: Chinese (Simplified)", "Natural Language :: Chinese (Traditional)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Text Processing :: Linguistic" ], "description": "\n\u7b80\u6613\u4e2d\u6587\u7b80\u7e41\u8f6c\u6362\n==================================\n\n**zhconv** \u63d0\u4f9b\u57fa\u4e8e MediaWiki \u8bcd\u6c47\u8868\u7684\u6700\u5927\u6b63\u5411\u5339\u914d\u7b80\u7e41\u8f6c\u6362\u3002Python 2, 3 \u901a\u7528\u3002\u652f\u6301\u4ee5\u4e0b\u5730\u533a\u8bcd\u8f6c\u6362\uff1a\n\n* ``zh-cn`` \u5927\u9646\u7b80\u4f53\n* ``zh-tw`` \u53f0\u7063\u6b63\u9ad4\n* ``zh-hk`` \u9999\u6e2f\u7e41\u9ad4\n* ``zh-sg`` \u9a6c\u65b0\u7b80\u4f53\uff08\u65e0\u8bcd\u6c47\u8868\uff0c\u9700\u8981\u624b\u5de5\u6307\u5b9a\uff09\n* ``zh-hans`` \u7b80\u4f53\n* ``zh-hant`` \u7e41\u9ad4\n\n\u793a\u4f8b\n----\n\n.. code-block:: pycon\n\n >>> print(convert(u'\u6211\u5e79\u4ec0\u9ebc\u4e0d\u5e72\u4f60\u4e8b\u3002', 'zh-cn'))\n \u6211\u5e72\u4ec0\u4e48\u4e0d\u5e72\u4f60\u4e8b\u3002\n >>> print(convert(u'\u4eba\u4f53\u5185\u5b58\u5728\u5f88\u591a\u5fae\u751f\u7269', 'zh-tw'))\n \u4eba\u9ad4\u5167\u5b58\u5728\u5f88\u591a\u5fae\u751f\u7269\n\n\u5b8c\u6574\u652f\u6301 MediaWiki \u4eba\u5de5\u8f6c\u6362\u8bed\u6cd5\uff1a\n\n.. code-block:: pycon\n\n >>> print(convert_for_mw(u'\u5728\u73b0\u4ee3\uff0c\u673a\u68b0\u8ba1\u7b97-{}-\u673a\u7684\u5e94\u7528\u5df2\u7ecf\u5b8c\u5168\u88ab\u7535\u5b50\u8ba1\u7b97-{}-\u673a\u6240\u53d6\u4ee3', 'zh-hk'))\n \u5728\u73fe\u4ee3\uff0c\u6a5f\u68b0\u8a08\u7b97\u6a5f\u7684\u61c9\u7528\u5df2\u7d93\u5b8c\u5168\u88ab\u96fb\u5b50\u8a08\u7b97\u6a5f\u6240\u53d6\u4ee3\n >>> print(convert_for_mw(u'-{zh-hant:\u8cc7\u8a0a\u5de5\u7a0b;zh-hans:\u8ba1\u7b97\u673a\u5de5\u7a0b\u5b66;}-\u662f\u7535\u5b50\u5de5\u7a0b\u7684\u4e00\u4e2a\u5206\u652f\uff0c\u4e3b\u8981\u7814\u7a76\u8ba1\u7b97\u673a\u8f6f\u786c\u4ef6\u548c\u4e8c\u8005\u95f4\u7684\u5f7c\u6b64\u8054\u7cfb\u3002', 'zh-tw'))\n \u8cc7\u8a0a\u5de5\u7a0b\u662f\u96fb\u5b50\u5de5\u7a0b\u7684\u4e00\u500b\u5206\u652f\uff0c\u4e3b\u8981\u7814\u7a76\u8a08\u7b97\u6a5f\u8edf\u786c\u9ad4\u548c\u4e8c\u8005\u9593\u7684\u5f7c\u6b64\u806f\u7e6b\u3002\n >>> print(convert_for_mw(u'\u5f35\u570b\u69ae\u66fe\u5728\u82f1\u570b-{zh:\u5229\u5179;zh-hans:\u5229\u5179;zh-hk:\u5217\u65af;zh-tw:\u91cc\u8332}-\u5927\u5b66\u5b78\u7fd2\u3002', 'zh-sg'))\n \u5f20\u56fd\u8363\u66fe\u5728\u82f1\u56fd\u5229\u5179\u5927\u5b66\u5b66\u4e60\u3002\n >>> print(convert_for_mw('\u6beb\u7c73(\u6beb\u516c\u5206)\uff0c\u7b26\u865fmm\uff0c\u662f\u9577\u5ea6\u55ae\u4f4d\u548c\u964d\u96e8\u91cf\u55ae\u4f4d\uff0c-{zh-hans:\u53f0\u6e7e\u4f5c-{\u516c\u91d0}-\u6216-{\u516c\u5398}-;zh-hant:\u6e2f\u6fb3\u548c\u5927\u9678\u7a31\u70ba-{\u6beb\u7c73}-\uff08\u53f0\u7063\u4ea6\u6709\u4f7f\u7528\uff0c\u4f46\u8f03\u5e38\u4f7f\u7528\u540d\u7a31\u70ba\u6beb\u516c\u5206\uff09;zh-mo:\u53f0\u7063\u4f5c-{\u516c\u91d0}-\u6216-{\u516c\u5398}-;zh-hk:\u53f0\u7063\u4f5c-{\u516c\u91d0}-\u6216-{\u516c\u5398}-;}-\u3002', 'zh-cn'))\n \u6beb\u7c73(\u6beb\u516c\u5206)\uff0c\u7b26\u53f7mm\uff0c\u662f\u957f\u5ea6\u5355\u4f4d\u548c\u964d\u96e8\u91cf\u5355\u4f4d\uff0c\u53f0\u6e7e\u4f5c\u516c\u91d0\u6216\u516c\u5398\u3002\n\n\u548c\u5176\u4ed6 `\u9ad8\u7ea7\u5b57\u8bcd\u8f6c\u6362\u8bed\u6cd5 `_\u3002\n\n\u547d\u4ee4\u884c\u5de5\u5177\n----------\n\n::\n\n python -mzhconv [-w] {zh-cn|zh-tw|zh-hk|zh-sg|zh-hans|zh-hant|zh} < input > output\n\n\n", "description_content_type": null, "docs_url": "https://pythonhosted.org/zhconv/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gumblex/zhconv", "keywords": "chinese conversion", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "zhconv", "package_url": "https://pypi.org/project/zhconv/", "platform": "any", "project_url": "https://pypi.org/project/zhconv/", "project_urls": { "Homepage": "https://github.com/gumblex/zhconv" }, "release_url": "https://pypi.org/project/zhconv/1.4.0/", "requires_dist": null, "requires_python": "", "summary": "A simple implementation of Simplified-Traditional Chinese conversion.", "version": "1.4.0" }, "last_serial": 3637648, "releases": { "1.2.2": [ { "comment_text": "", "digests": { "md5": "e191ebd80dc6a7dc167ed60ad6c62333", "sha256": "a05f9acfc3ff7fc39f9e59dfcb02e0158ef50c91fd4b2e1954d5ce84f09dce2b" }, "downloads": -1, "filename": "zhconv-1.2.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e191ebd80dc6a7dc167ed60ad6c62333", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 170251, "upload_time": "2017-01-17T12:31:19", "url": "https://files.pythonhosted.org/packages/22/71/96bd518497cda6c54024e75e97ea035b5c762b813ea49f17f176431ac32b/zhconv-1.2.2-py2.py3-none-any.whl" } ], "1.2.3": [ { "comment_text": "", "digests": { "md5": "db6e8d486461d0762b4289836464e938", "sha256": "d1dbcdc654f3163a08f5b211147ad171a9aa4cae232742325b8e70fced14caea" }, "downloads": -1, "filename": "zhconv-1.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "db6e8d486461d0762b4289836464e938", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 170300, "upload_time": "2017-03-03T15:57:25", "url": "https://files.pythonhosted.org/packages/ae/07/27539d3edbf6d7ba5fa62162655c304b3aca3c38abddaf3ff6dcc6406c32/zhconv-1.2.3-py2.py3-none-any.whl" } ], "1.3.0": [ { "comment_text": "", "digests": { "md5": "8c14cf60807d562b3712809624d10162", "sha256": "3e3cced4bf1ac1dbcac4f150484b424484cddcb244d62a006010401872a6bc8b" }, "downloads": -1, "filename": "zhconv-1.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8c14cf60807d562b3712809624d10162", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 170397, "upload_time": "2017-03-14T14:26:37", "url": "https://files.pythonhosted.org/packages/18/85/9d5ad274f1999f26e231299508541c5d0c5c49ed4f84cbffb8ba4bbc9752/zhconv-1.3.0-py2.py3-none-any.whl" } ], "1.3.1": [ { "comment_text": "", "digests": { "md5": "8869320ddd535d6390d98d2a34bbbc74", "sha256": "06ef4b4b869573e00c8e15bb68237d4db973d3a89585a508911602e1476a686d" }, "downloads": -1, "filename": "zhconv-1.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8869320ddd535d6390d98d2a34bbbc74", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 170402, "upload_time": "2017-09-15T16:34:57", "url": "https://files.pythonhosted.org/packages/20/f3/f4f4830b72c41257a97448bebaf3309f2cf09d7875055a5351b1fd00411d/zhconv-1.3.1-py2.py3-none-any.whl" } ], "1.3.2": [ { "comment_text": "", "digests": { "md5": "320341716adf59ca084817e72957bfbd", "sha256": "92566ad50975be13bab88dfb224e79dfea71d9e3ca39bf3a19a895725b77cbbe" }, "downloads": -1, "filename": "zhconv-1.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "320341716adf59ca084817e72957bfbd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 166461, "upload_time": "2017-09-15T16:36:45", "url": "https://files.pythonhosted.org/packages/21/11/5a10a4f7c14bdc3f52f3919df4fb440f34c8ffabee92caf5f47897bf4f45/zhconv-1.3.2-py2.py3-none-any.whl" } ], "1.4.0": [ { "comment_text": "", "digests": { "md5": "0ba00b9cc2b7965bb5f7de2a4c1a4155", "sha256": "dc1c8e0fe4b772f02a30db0c2125d3b2df413e989e39e91a66f4dba534d01edb" }, "downloads": -1, "filename": "zhconv-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0ba00b9cc2b7965bb5f7de2a4c1a4155", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 179521, "upload_time": "2018-01-16T10:17:50", "url": "https://files.pythonhosted.org/packages/4b/ff/befc05572aa53eaf542c75a7d7b18d66c24c418ba0cc9202d383e58f6c70/zhconv-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3277fdce05022b37f88143fadbdb6341", "sha256": "ed2f3ebe8a90e9e43bc2e116155f741965aa93adb046fb0b9a2bea487d9385c4" }, "downloads": -1, "filename": "zhconv-1.4.0.tar.gz", "has_sig": false, "md5_digest": "3277fdce05022b37f88143fadbdb6341", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 178407, "upload_time": "2018-03-04T08:13:30", "url": "https://files.pythonhosted.org/packages/bc/e0/dc2ea16c12404774ccfd604403dafc991cd48e12791328219e5afcc0b3df/zhconv-1.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0ba00b9cc2b7965bb5f7de2a4c1a4155", "sha256": "dc1c8e0fe4b772f02a30db0c2125d3b2df413e989e39e91a66f4dba534d01edb" }, "downloads": -1, "filename": "zhconv-1.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0ba00b9cc2b7965bb5f7de2a4c1a4155", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 179521, "upload_time": "2018-01-16T10:17:50", "url": "https://files.pythonhosted.org/packages/4b/ff/befc05572aa53eaf542c75a7d7b18d66c24c418ba0cc9202d383e58f6c70/zhconv-1.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3277fdce05022b37f88143fadbdb6341", "sha256": "ed2f3ebe8a90e9e43bc2e116155f741965aa93adb046fb0b9a2bea487d9385c4" }, "downloads": -1, "filename": "zhconv-1.4.0.tar.gz", "has_sig": false, "md5_digest": "3277fdce05022b37f88143fadbdb6341", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 178407, "upload_time": "2018-03-04T08:13:30", "url": "https://files.pythonhosted.org/packages/bc/e0/dc2ea16c12404774ccfd604403dafc991cd48e12791328219e5afcc0b3df/zhconv-1.4.0.tar.gz" } ] }