{ "info": { "author": "Christoph Burgmer", "author_email": "cburgmer@ira.uka.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)", "Natural Language :: Chinese (Simplified)", "Natural Language :: Chinese (Traditional)", "Natural Language :: Japanese", "Natural Language :: Korean", "Natural Language :: Vietnamese", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Text Processing :: Linguistic" ], "description": "===========================\nInstalling and Using Cjklib\n===========================\n\n.. contents::\n\nIntroduction\n============\nCjklib provides language routines related to Han characters (characters based\non Chinese characters named Hanzi, Kanji, Hanja and chu Han respectively) used\nin writing of the Chinese, the Japanese, infrequently the Korean and formerly\nthe Vietnamese language(s). Functionality is included for character\npronunciations, radicals, glyph components, stroke decomposition and variant\ninformation.\n\nDependencies\n============\n- Python_ 2.4 or above (currently no support for Python3)\n- SQLite_ 3+\n- SQLAlchemy_ 0.5+\n- pysqlite2_ (already ships with Python 2.5 and above)\n\nAlternatively for MySQL as backend:\n\n- MySQL_ 5+\n- MySQL-Python_\n\n.. _Python: http://www.python.org/download/\n.. _SQLite: http://www.sqlite.org/download.html\n.. _MySQL: http://www.mysql.com/downloads/mysql/\n.. _SQLAlchemy: http://www.sqlalchemy.org/download.html\n.. _pysqlite2: http://code.google.com/p/pysqlite/downloads/list\n.. _MySQL-Python: http://sourceforge.net/projects/mysql-python/\n\nInstalling\n==========\n\nWindows\n-------\nInstall cjklib using the provided ``.exe`` installer. Make sure above\ndependencies are satisfied.\n\nThree scripts ``cjknife.exe``, ``buildcjkdb.exe``, and ``installcjkdict.exe``\nwill be added to the Python ``Scripts`` sub-directory. Make sure this directory\nis included in your ``PATH`` environment variable to access these programs from\nthe command line.\n\nCJK dictionaries are not included by default. If you want to install any of\nthose run the following (with an Internet connection) from the root directory\nof the source package::\n\n $ installcjkdict CEDICT\n\nThis will download CEDICT, create a SQLite database file and install it under\nthe directory given by the ``APPDATA`` environment variable, e.g.\n``C:\\windows\\profiles\\MY_USER\\Application Data\\cjklib``. Just substitute\n``CEDICT`` for any other supported dictionary (i.e. EDICT, CEDICT, HanDeDict,\nCFDICT, CEDICTGR).\n\nUnix\n----\nIf you are installing from the source package you need to deploy the library on\nyour system::\n\n $ sudo python setup.py install\n\nAlso make sure above dependencies are satisfied. CJK dictionaries are not\nincluded by default. If you want to install any of those run the following\n(with an Internet connection)::\n\n $ sudo installcjkdict CEDICT\n\nThis will download CEDICT, create a SQLite database file and install it to\n``/usr/local/share/cjklib``. Just substitute ``CEDICT`` for any other supported\ndictionary (i.e. EDICT, CEDICT, HanDeDict, CFDICT, CEDICTGR).\n\n\nDocumentation & Usage\n=====================\nDocumentation_ is available online. Also see the `project page`_ and its wiki.\nThere is a small command line tool ``cjknife`` that offers some of the library's\nfunctions. See ``cjknife --help`` for an overview.\n\n.. _Documentation: http://cjklib.org/\n.. _project page: http://code.google.com/p/cjklib/\n\nExamples\n--------\n\n- Get stroke order of characters::\n\n >>> from cjklib import characterlookup\n >>> cjk = characterlookup.CharacterLookup('C')\n >>> cjk.getStrokeOrder(u'\u8bf4')\n [u'\u31d4', u'\u31ca', u'\u31d4', u'\u31d2', u'\u31d1', u'\u31d5', u'\u31d0', u'\u31d3', u'\u31df']\n\n- Access a dictionary (here using Jim Breen's EDICT)::\n\n >>> from cjklib.dictionary import EDICT\n >>> d = EDICT()\n >>> d.getForTranslation('Tokyo')\n [EntryTuple(Headword=u'\u6771\u4eac', Reading=u'\u3068\u3046\u304d\u3087\u3046',\n Translation=u'/(n) Tokyo (current capital of Japan)/(P)/')]\n\n\nDatabase\n========\nPackaged versions of the library will ship with a pre-built SQLite database\nfile. You can however easily rebuild the database yourself.\n\nFirst download the newest Unihan file::\n\n $ wget ftp://ftp.unicode.org/Public/UNIDATA/Unihan.zip\n\nThen start the build process::\n\n $ sudo buildcjkdb -r build cjklibData\n\nSQLite\n------\nSQLite by default has no Unicode support for string operations. Optionally the\nICU library can be compiled in for handling alphabetic non-ASCII characters.\nCjklib can register own Unicode functions if ICU support is missing. Queries\nwith ``LIKE`` will then use function ``lower()``. This compatibility mode has\nnegative impact on performance and as it is not needed for dictionaries like\nEDICT or CEDICT it is disabled by default. See ``cjklib.conf`` for enabling.\n\nMySQL\n-----\nWith MySQL 5 the following ``CREATE`` command creates a database with ``utf8``\nas character set using the general Unicode collation\n(MySQL from 5.5.3 on will support full Unicode given character set\n``utf8mb4`` and collation ``utf8mb4_bin``)::\n\n CREATE DATABASE cjklib DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;\n\nYou might need to set access rights, too (substitute ``user_name`` and\n``host_name``)::\n\n GRANT ALL ON cjklib.* TO 'user_name'@'host_name';\n\nNow update the settings in ``cjklib.conf``.\n\nMySQL < 5.5 doesn't support full UTF-8, and uses a version with max 3 bytes, so\ncharacters outside the Basic Multilingual Plane (BMP) can't be encoded. Building\nthe Unihan database thus might result in warnings, characters above U+FFFF\ncan't be built at all. You need to disable building the full character range\nby setting ``wideBuild`` to ``False`` in ``cjklib.conf`` before building.\nAlternatively pass ``--wideBuild=False`` to ``buildcjkdb``.\n\n\nContact\n=======\nFor help or discussions on cjklib, join `cjklib-devel@googlegroups.com\n`_.\n\nPlease report bugs to the `project's bug tracker\n`_.", "description_content_type": null, "docs_url": "https://pythonhosted.org/cjklib/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://cjklib.org", "keywords": null, "license": "LGPL", "maintainer": null, "maintainer_email": null, "name": "cjklib", "package_url": "https://pypi.org/project/cjklib/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cjklib/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://cjklib.org" }, "release_url": "https://pypi.org/project/cjklib/0.3.2/", "requires_dist": null, "requires_python": null, "summary": "Han character library for CJKV languages", "version": "0.3.2" }, "last_serial": 422286, "releases": { "0.1alpha": [], "0.1alpha-svn20090515": [ { "comment_text": "", "digests": { "md5": "3b37b624124b4d7fa9cef2ef5d4b1f08", "sha256": "045525ce8ffc9ee009eb3fca08d9df270a830333302b2ea7ee392b530ce0297a" }, "downloads": -1, "filename": "cjklib-0.1alpha-svn20090515.tar.gz", "has_sig": false, "md5_digest": "3b37b624124b4d7fa9cef2ef5d4b1f08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 210703, "upload_time": "2009-05-19T16:22:14", "url": "https://files.pythonhosted.org/packages/aa/a8/ae748b0add889f3ce35073221dd993a0e4f412aadea5d7dcc164be4a8f6c/cjklib-0.1alpha-svn20090515.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "e17c1ae148c67b7f7ce31a60d2ba0205", "sha256": "99ab8398d35cbea8946fef7b1e07f195df1159cf4eca32d835987fbea3120ad5" }, "downloads": -1, "filename": "cjklib-0.2-py2.4.egg", "has_sig": false, "md5_digest": "e17c1ae148c67b7f7ce31a60d2ba0205", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 12416162, "upload_time": "2009-11-28T13:16:52", "url": "https://files.pythonhosted.org/packages/fb/17/e356cd062378e1d44644cfed136e5e89a4a31b8d719e406b6762b3053dab/cjklib-0.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "3f62b28ff53913749dac3819af61d917", "sha256": "84180416c3eb1465d3fc358a814f09affd82744360100975ed158b8b34ea396c" }, "downloads": -1, "filename": "cjklib-0.2-py2.5.egg", "has_sig": false, "md5_digest": "3f62b28ff53913749dac3819af61d917", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 12413531, "upload_time": "2009-11-28T13:05:32", "url": "https://files.pythonhosted.org/packages/e7/b3/de9a6a9f4eec4067de3bf4275293b6d3415f8d19799a2b4fb11e7bb55c9c/cjklib-0.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "990308b33c7b2a1504f191ab76b5d140", "sha256": "73d2316740378aec98a8da680a255f672fe4ecba1944fc62fad19d7bd57c3b7d" }, "downloads": -1, "filename": "cjklib-0.2-py2.6.egg", "has_sig": false, "md5_digest": "990308b33c7b2a1504f191ab76b5d140", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 12412940, "upload_time": "2009-11-28T13:10:33", "url": "https://files.pythonhosted.org/packages/04/6c/2b77049f5c3f5f18b5e0f9e378de11c1bb5890a7f4655c1e9c8ec6fa79a3/cjklib-0.2-py2.6.egg" }, { "comment_text": "", "digests": { "md5": "1ecd34297ae8cfe2194ab561c55e76db", "sha256": "f549a99cc8d6db0ed1608f5d44f8830cadd1b4c7e76fa1ae6ef7678a8177ef8a" }, "downloads": -1, "filename": "cjklib-0.2.tar.gz", "has_sig": false, "md5_digest": "1ecd34297ae8cfe2194ab561c55e76db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12326369, "upload_time": "2009-11-28T12:55:09", "url": "https://files.pythonhosted.org/packages/f7/70/43626620bc5f238022bda44e3a0b6def3489eba867f3a1d87488b9c3835c/cjklib-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "e5ea0997fbe0a4398f3693ba3252ebfd", "sha256": "59adfc545d7a5b202b2d031b205fdf5b8527b3f8b5b159241a67c104ae823a38" }, "downloads": -1, "filename": "cjklib-0.3.tar.gz", "has_sig": false, "md5_digest": "e5ea0997fbe0a4398f3693ba3252ebfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13027712, "upload_time": "2010-05-10T11:08:45", "url": "https://files.pythonhosted.org/packages/3e/e6/44c58cf2f217b82e7f8f68f2f35c61b462b4ddb2d816038a91fe8b65ee19/cjklib-0.3.tar.gz" }, { "comment_text": "", "digests": { "md5": "0ff254a79f0987383127a0cf6e6db4fd", "sha256": "755c4d88a1bce22db60aa552f2882ba407f95825579af60eeee079b817125319" }, "downloads": -1, "filename": "cjklib-0.3.win32.exe", "has_sig": false, "md5_digest": "0ff254a79f0987383127a0cf6e6db4fd", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 12865323, "upload_time": "2010-05-10T11:16:36", "url": "https://files.pythonhosted.org/packages/ae/84/ff01a1a8300cab8609ddaef003db110e48c975a46ffb57b31ed2cc7e0017/cjklib-0.3.win32.exe" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "507eb7944d3136bae90ca57cc4a80c38", "sha256": "1cd01bc8dfe541b9f26ac525c9df7c880ad8d1c1618c7317da8fbfb178af2211" }, "downloads": -1, "filename": "cjklib-0.3.1.tar.gz", "has_sig": true, "md5_digest": "507eb7944d3136bae90ca57cc4a80c38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17428237, "upload_time": "2012-05-22T00:15:26", "url": "https://files.pythonhosted.org/packages/9f/bc/9ffa91d379b28d13546d83942442abf774266204c09e79ba9df4b14f0dcc/cjklib-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "32780bc5cc0b132204d1c9b8a1642157", "sha256": "604198c392dd78bc9d1dfdc90d44e9f0ea796ae4d97e8da7af67aef46c13a16e" }, "downloads": -1, "filename": "cjklib-0.3.2.tar.gz", "has_sig": true, "md5_digest": "32780bc5cc0b132204d1c9b8a1642157", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17431505, "upload_time": "2012-05-22T00:39:16", "url": "https://files.pythonhosted.org/packages/05/6c/884b3e557bbdbf3beff896fefab3e8201a5b2a1732650cedaddd20115192/cjklib-0.3.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "32780bc5cc0b132204d1c9b8a1642157", "sha256": "604198c392dd78bc9d1dfdc90d44e9f0ea796ae4d97e8da7af67aef46c13a16e" }, "downloads": -1, "filename": "cjklib-0.3.2.tar.gz", "has_sig": true, "md5_digest": "32780bc5cc0b132204d1c9b8a1642157", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17431505, "upload_time": "2012-05-22T00:39:16", "url": "https://files.pythonhosted.org/packages/05/6c/884b3e557bbdbf3beff896fefab3e8201a5b2a1732650cedaddd20115192/cjklib-0.3.2.tar.gz" } ] }