{ "info": { "author": "Yichen Huang (Eugene)", "author_email": "yichen0831@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": "# opencc-python \u958b\u653e\u4e2d\u6587\u8f49\u63db Python\n\n## OpenCC made with Python\n\n## Introduction \u7c21\u4ecb\nopencc-python is made by Python with the dictionary files of [OpenCC](https://github.com/BYVoid/OpenCC) which is developed by BYVoid().\n\nopencc-python\u662f\u7528Python\u6240\u5beb, \u4f7f\u7528\u7531BYVoid()\u6240\u958b\u767c\u7684[OpenCC](https://github.com/BYVoid/OpenCC)\u4e2d\u7684\u5b57\u5178\u6a94\u6848.\n\nopencc-python can run with Python2.7 and Python3.x\n\nopencc-python\u53ef\u4ee5\u652f\u63f4Python2.7\u53caPython3.x\n\n\n## Installation \u5b89\u88dd\nJust copy the opencc folder to the project you are developing.\n\n\u628aopencc\u9019\u500b\u76ee\u9304\u8907\u88fd\u5230\u4f60\u6b63\u5728\u958b\u767c\u7684\u5c08\u6848\u4e2d\u5373\u53ef.\n\nOr run (require administration privilege)\u6216\u662f\u57f7\u884c(\u9700\u8981\u7ba1\u7406\u8005\u6b0a\u9650):\n\n python setup.py install\n\nThe package can also be instally from pypi by issuing:\n\n\u5957\u4ef6\u4e5f\u53ef\u5f9epypi\u5b89\u88dd, \u4f7f\u7528\u6307\u4ee4:\n\n pip install opencc-python-reimplemented\n\n\n## Usage \u4f7f\u7528\u65b9\u5f0f\n\n from opencc import OpenCC \n \n openCC = OpenCC('s2t') # convert from Simplified Chinese to Traditional Chinese\n # can also set conversion by calling set_conversion\n # openCC.set_conversion('s2tw')\n to_convert = '\u5f00\u653e\u4e2d\u6587\u8f6c\u6362'\n converted = openCC.convert(to_convert)\n\nConversions include \u8f49\u63db\u5305\u542b:\n\n'hk2s': Traditional Chinese (Hong Kong standard) to Simplified Chinese\n\n's2hk': Simplified Chinese to Traditional Chinese (Hong Kong standard)\n\n's2t': Simplified Chinese to Traditional Chinese\n\n's2tw': Simplified Chinese to Traditional Chinese (Taiwan standard)\n\n's2twp': Simplified Chinese to Traditional Chinese (Taiwan standard, with phrases)\n\n't2hk': Traditional Chinese to Traditional Chinese (Hong Kong standard)\n\n't2s': Traditional Chinese to Simplified Chinese\n\n't2tw': Traditional Chinese to Traditional Chinese (Taiwan standard)\n\n'tw2s': Traditional Chinese (Taiwan standard) to Simplified Chinese\n\n'tw2sp': Traditional Chinese (Taiwan standard) to Simplified Chinese (with phrases)\n\n## Issues \u554f\u984c\nWhen there are more than one conversion avaiable, only the first one is taken.\n\n\u7576\u8f49\u63db\u6709\u5169\u500b\u4ee5\u4e0a\u7684\u5b57\u8a5e\u53ef\u80fd\u6642, \u7a0b\u5f0f\u53ea\u6703\u4f7f\u7528\u7b2c\u4e00\u500b.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yichen0831/opencc-python", "keywords": "chinese conversion", "license": "Apache License", "maintainer": "", "maintainer_email": "", "name": "opencc-test", "package_url": "https://pypi.org/project/opencc-test/", "platform": "", "project_url": "https://pypi.org/project/opencc-test/", "project_urls": { "Homepage": "https://github.com/yichen0831/opencc-python" }, "release_url": "https://pypi.org/project/opencc-test/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "OpenCC made with Python", "version": "0.1.1" }, "last_serial": 3671070, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "9b0c0cbec8ba5de0761877dfe0ef2e1b", "sha256": "6c283c41de88882f9b400f476ec9c936c1f269376e583f73248a0404ccecc5cc" }, "downloads": -1, "filename": "opencc-test-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9b0c0cbec8ba5de0761877dfe0ef2e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 481171, "upload_time": "2018-03-15T02:08:07", "url": "https://files.pythonhosted.org/packages/e3/f8/cbc66f08d1cf434c34c0df2c8818a184885cecb0bee4f5bfef96ae6a0749/opencc-test-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9b0c0cbec8ba5de0761877dfe0ef2e1b", "sha256": "6c283c41de88882f9b400f476ec9c936c1f269376e583f73248a0404ccecc5cc" }, "downloads": -1, "filename": "opencc-test-0.1.1.tar.gz", "has_sig": false, "md5_digest": "9b0c0cbec8ba5de0761877dfe0ef2e1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 481171, "upload_time": "2018-03-15T02:08:07", "url": "https://files.pythonhosted.org/packages/e3/f8/cbc66f08d1cf434c34c0df2c8818a184885cecb0bee4f5bfef96ae6a0749/opencc-test-0.1.1.tar.gz" } ] }