{ "info": { "author": "Guangming Li", "author_email": "leeful@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "======================\r\nWhat is pyOpenCC?\r\n======================\r\n\r\npyOpenCC is a Python wrapper for `Open Chinese Converter`_\r\n\r\n.. _`Open Chinese Converter`: http://code.google.com/p/opencc/\r\n\r\n============\r\nInstallation\r\n============\r\n\r\nYou need to install opencc-dev first, To install OpenCC:\r\n\r\nDebian\r\n::\r\n\r\n apt-get install libopencc-dev -y\r\n\r\nFreeBSD\r\n::\r\n\r\n cd /usr/ports/chinese/opencc\r\n make install clean\r\n\r\n==============\r\nHow to use it?\r\n==============\r\n\r\nFollowing is a simple example\r\n\r\n::\r\n\r\n # -*- coding: utf8 -*-\r\n import opencc\r\n cc = opencc.OpenCC('zht2zhs.ini')\r\n print cc.convert(u'Open Chinese Convert\uff08OpenCC\uff09\u300c\u958b\u653e\u4e2d\u6587\u8f49\u63db\u300d\uff0c\u662f\u4e00\u500b\u81f4\u529b\u65bc\u4e2d\u6587\u7c21\u7e41\u8f49\u63db\u7684\u9805\u76ee\uff0c\u63d0\u4f9b\u9ad8\u8cea\u91cf\u8a5e\u5eab\u548c\u51fd\u6578\u5eab(libopencc)\u3002')\r\n\r\nAnd the output should be\r\n\r\n::\r\n\r\n Open Chinese Convert\uff08OpenCC\uff09\u300c\u5f00\u653e\u4e2d\u6587\u8f6c\u6362\u300d\uff0c\u662f\u4e00\u4e2a\u81f4\u529b\u4e8e\u4e2d\u6587\u7b80\u7e41\u8f6c\u6362\u7684\u9879\u76ee\uff0c\u63d0\u4f9b\u9ad8\u8d28\u91cf\u8bcd\u5e93\u548c\u51fd\u6570\u5e93(libopencc)\u3002\r\n\r\nThere are four convertion in opencc.\r\n\r\n * zht2zhs.ini - Traditional Chinese to Simplified Chinese\r\n * zhs2zht.ini - Simplified Chinese to Traditional Chinese\r\n * mix2zht.ini - Mixed to Traditional Chinese\r\n * mix2zhs.ini - Mixed to Simplified Chinese", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://code.google.com/p/opencc/", "keywords": "", "license": "Apache License", "maintainer": "", "maintainer_email": "", "name": "pyopencc", "package_url": "https://pypi.org/project/pyopencc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyopencc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://code.google.com/p/opencc/" }, "release_url": "https://pypi.org/project/pyopencc/0.4.2.2/", "requires_dist": null, "requires_python": null, "summary": "OpenCC Python binding", "version": "0.4.2.2" }, "last_serial": 797495, "releases": { "0.4.2.2": [ { "comment_text": "", "digests": { "md5": "6aa9ee5d1f376e9b43d5dbf093ac2bf4", "sha256": "1b9f832833106fd1713eecded3641cf4f894102a66fcb543923fc755297105d3" }, "downloads": -1, "filename": "pyopencc-0.4.2.2.zip", "has_sig": false, "md5_digest": "6aa9ee5d1f376e9b43d5dbf093ac2bf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3481, "upload_time": "2013-06-14T07:42:34", "url": "https://files.pythonhosted.org/packages/86/20/86d1300e42436fc53ee77b58d7418211405c25edcda18e0fbbd74a4762c2/pyopencc-0.4.2.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6aa9ee5d1f376e9b43d5dbf093ac2bf4", "sha256": "1b9f832833106fd1713eecded3641cf4f894102a66fcb543923fc755297105d3" }, "downloads": -1, "filename": "pyopencc-0.4.2.2.zip", "has_sig": false, "md5_digest": "6aa9ee5d1f376e9b43d5dbf093ac2bf4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3481, "upload_time": "2013-06-14T07:42:34", "url": "https://files.pythonhosted.org/packages/86/20/86d1300e42436fc53ee77b58d7418211405c25edcda18e0fbbd74a4762c2/pyopencc-0.4.2.2.zip" } ] }