{ "info": { "author": "Leonardo Boiko", "author_email": "leoboiko@namakajiri.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Topic :: Software Development :: Internationalization", "Topic :: Software Development :: Localization", "Topic :: Text Processing", "Topic :: Text Processing :: Linguistic" ], "description": "Simple Python 3 module to query Unicode UCD script metadata (see UAX\n#24).\n\n| This module is useful for querying if a text is made of Latin\ncharacters,\n| Arabic, hiragana, kanji (han), and so on. It works for all scripts\nsupported\n| by the Unicode character database.\n\n| This module is dumb and slow. If you need speed, you probably want to\n| implement your own functions.\n\nSample usage:\n\n::\n\n >>> import uniscripts\n >>> uniscripts.is_script('A', 'Latin')\n True\n\n # if you pass it a string, all characters must match\n >>> uniscripts.is_script('\u306f\u308b\u306f\u3042\u3051\u307c\u306e', 'Hiragana')\n True\n\n >>> uniscripts.is_script('\u306f\u308b\u306fAkebono', 'Hiragana')\n False\n\n # ...but by default, it ignores 'Common' characters, such as punctuation.\n >>> uniscripts.is_script('\u306f\u308b\u306f:\u3042\u3051\u307c\u306e', 'Hiragana')\n True\n\n >>> uniscripts.is_script('\u4e2d\u83ef\u4eba\u6c11\u5171\u548c\u56fd', 'Han') # 'Han' = kanji or h\u00e0nz\u00ec\n True\n\n >>> uniscripts.which_scripts('z')\n ['Latin']\n\n >>> uniscripts.which_scripts('\u306f')\n ['Hiragana']\n\n >>> uniscripts.which_scripts('\u30fc') # U+30FC\n ['Common', 'Katakana', 'Hiragana', 'Hangul', 'Han', 'Bopomofo', 'Yi']\n\nSee docstrings for ``is_script()``, ``which_scripts()``.", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/leoboiko/uniscripts", "keywords": "unicode script scripts uax24 hiragana katakana kanji han", "license": "CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", "maintainer": null, "maintainer_email": null, "name": "uniscripts", "package_url": "https://pypi.org/project/uniscripts/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/uniscripts/", "project_urls": { "Homepage": "https://github.com/leoboiko/uniscripts" }, "release_url": "https://pypi.org/project/uniscripts/1.0.5/", "requires_dist": null, "requires_python": null, "summary": "query Unicode script metadata", "version": "1.0.5" }, "last_serial": 1540614, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "660a0dad2723e116255bdd1ea730cdca", "sha256": "38a1620f171b4d95d9935bbf4bcd403c1257e692b31e7f66be07204d50567ce9" }, "downloads": -1, "filename": "uniscripts-1.0.0.tar.gz", "has_sig": false, "md5_digest": "660a0dad2723e116255bdd1ea730cdca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1629, "upload_time": "2015-05-10T04:08:02", "url": "https://files.pythonhosted.org/packages/53/b1/9523f1f625448c39626d08a23d2dc3926d84b6f48bd0e573a411a97ab8e0/uniscripts-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "7bda21354ddca5b9cd13278e7f9947ef", "sha256": "4e6424c54ec37234d95cd6a70037203d5fef926baf693072251a70f91f5d649e" }, "downloads": -1, "filename": "uniscripts-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7bda21354ddca5b9cd13278e7f9947ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15621, "upload_time": "2015-05-10T04:15:05", "url": "https://files.pythonhosted.org/packages/a0/ee/cccb3cab2d71423f0205a5318e2f5650ba2bced2dd920c56fc1e9d5793e3/uniscripts-1.0.1.tar.gz" } ], "1.0.2": [], "1.0.3": [ { "comment_text": "", "digests": { "md5": "e5423283c051a3dca3fd6492c67f1b6a", "sha256": "fb296b3a50b65d3abe6141e485a5b54c399c40c404fc9349776064e10e889fa6" }, "downloads": -1, "filename": "uniscripts-1.0.3.tar.gz", "has_sig": false, "md5_digest": "e5423283c051a3dca3fd6492c67f1b6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15629, "upload_time": "2015-05-10T04:37:33", "url": "https://files.pythonhosted.org/packages/be/56/435eeb28a287267b061ff818e39cd2d89128316683274d764b437e3e31d1/uniscripts-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "9597127c766f23a085fd3167f6000718", "sha256": "bf1aa60184efca6b452ba3dabda68802c9d547e99fc3fcf07d702583dcd4c866" }, "downloads": -1, "filename": "uniscripts-1.0.4.tar.gz", "has_sig": false, "md5_digest": "9597127c766f23a085fd3167f6000718", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16040, "upload_time": "2015-05-10T04:47:59", "url": "https://files.pythonhosted.org/packages/7e/80/7e5e5a76b44b56821fd57ea6e5e065cbc30f9bec7136f53a18b53f25e846/uniscripts-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "2c563c18afdaa96516292a2a984978e3", "sha256": "ac2e3fab0db570466958eb759d4143b67cae12766484ea98aef8911b31d2e309" }, "downloads": -1, "filename": "uniscripts-1.0.5.tar.gz", "has_sig": false, "md5_digest": "2c563c18afdaa96516292a2a984978e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16062, "upload_time": "2015-05-10T04:52:53", "url": "https://files.pythonhosted.org/packages/83/af/61a5d4ca443e0bac1ffc11481abdf486f5d1ddba4f665e1e5ab0a091debc/uniscripts-1.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2c563c18afdaa96516292a2a984978e3", "sha256": "ac2e3fab0db570466958eb759d4143b67cae12766484ea98aef8911b31d2e309" }, "downloads": -1, "filename": "uniscripts-1.0.5.tar.gz", "has_sig": false, "md5_digest": "2c563c18afdaa96516292a2a984978e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16062, "upload_time": "2015-05-10T04:52:53", "url": "https://files.pythonhosted.org/packages/83/af/61a5d4ca443e0bac1ffc11481abdf486f5d1ddba4f665e1e5ab0a091debc/uniscripts-1.0.5.tar.gz" } ] }