{ "info": { "author": "Jason Kirtland", "author_email": "jek@discorporate.us", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "This package contains codecs for transliterating ISO 10646 texts into\r\nbest-effort representations using smaller coded character sets (ASCII,\r\nISO 8859, etc.). The translation tables used by the codecs are from\r\nthe ``transtab`` collection by Markus Kuhn.\r\n\r\nThree types of transliterating codecs are provided:\r\n\r\n \"long\", using as many characters as needed to make a natural\r\n replacement. For example, \\u00e4 LATIN SMALL LETTER A WITH\r\n DIAERESIS ``\u00e4`` will be replaced with ``ae``.\r\n\r\n \"short\", using the minimum number of characters to make a\r\n replacement. For example, \\u00e4 LATIN SMALL LETTER A WITH\r\n DIAERESIS ``\u00e4`` will be replaced with ``a``.\r\n\r\n \"one\", only performing single character replacements. Characters\r\n that can not be transliterated with a single character are passed\r\n through unchanged. For example, \\u2639 WHITE FROWNING FACE ``\u2639``\r\n will be passed through unchanged.\r\n\r\nUsing the codecs is simple::\r\n\r\n >>> import translitcodec\r\n >>> import codecs\r\n >>> codecs.encode(u'f\u00e1cil \u20ac \u263a', 'translit/long')\r\n u'facil EUR :-)'\r\n >>> codecs.encode(u'f\u00e1cil \u20ac \u263a', 'translit/short')\r\n u'facil E :-)'\r\n\r\nThe codecs return Unicode by default. To receive a bytestring back,\r\neither chain the output of encode() to another codec, or append the\r\nname of the desired byte encoding to the codec name::\r\n\r\n >>> codecs.encode(u'f\u00e1cil \u20ac \u263a', 'translit/one').encode('ascii', 'replace')\r\n 'facil E ?'\r\n >>> u'f\u00e1cil \u20ac \u263a'.encode('translit/one/ascii', 'replace')\r\n 'facil E ?'\r\n\r\nThe package also supplies a 'transliterate' codec, an alias for\r\n'translit/long'.\r\n\r\ntranslitcodec Changes\r\n=====================\r\n0.4\r\n---\r\nReleased on May 11, 2015\r\n\r\n- Added Python 3 compatibility\r\n\r\n0.3\r\n---\r\n\r\nReleased on February 14, 2011\r\n\r\n- Fixes to the transtab table rebuilding tool.\r\n\r\n- Added translitcodec.__version__\r\n\r\n0.2\r\n---\r\n\r\nReleased on January 27, 2011\r\n\r\n- Resolves issue of \"TypeError: character mapping must return integer,\r\n None or unicode\" when a blank value (eg: \\N{ZERO WIDTH SPACE} \\u200B)\r\n was encoded. Unicode blanks are now returned.\r\n\r\n- Characters in the ASCII range are no longer included in the translation\r\n tables.\r\n\r\n0.1\r\n---\r\n\r\nReleased on December 28, 2008\r\n\r\n- Initial packaged release.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/claudep/translitcodec", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "translitcodec", "package_url": "https://pypi.org/project/translitcodec/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/translitcodec/", "project_urls": { "Homepage": "https://github.com/claudep/translitcodec" }, "release_url": "https://pypi.org/project/translitcodec/0.4.0/", "requires_dist": null, "requires_python": null, "summary": "Unicode to 8-bit charset transliteration codec", "version": "0.4.0" }, "last_serial": 1542349, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d1cfe258a77371d2fd4e5db9d16f973e", "sha256": "160f7257dc102711ba20951844c59c77ab9f951488183b66483f5fe64a42dcb7" }, "downloads": -1, "filename": "translitcodec-0.1.zip", "has_sig": false, "md5_digest": "d1cfe258a77371d2fd4e5db9d16f973e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 51106, "upload_time": "2008-12-28T20:15:18", "url": "https://files.pythonhosted.org/packages/71/f2/021ce28454ed02543c01f5c58bb450d3882816fdf4fa0e33cd1ae6d8b10d/translitcodec-0.1.zip" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "37bf6635275d4d45c26ece6e3b5b33bd", "sha256": "bccba9bf795cc644d7e7d09e4dfc081656aa357712f94c9881ea8aba69544b01" }, "downloads": -1, "filename": "translitcodec-0.2.tar.gz", "has_sig": false, "md5_digest": "37bf6635275d4d45c26ece6e3b5b33bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47267, "upload_time": "2011-01-28T01:16:39", "url": "https://files.pythonhosted.org/packages/de/30/e8bbf80b6e1a5f05c1669eb39a717c35036d185e71570e85216f82af26f1/translitcodec-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "2227e9f79fd3c570d49f8c5cc5db5812", "sha256": "7a088bc99a0654d5061416e61650c194472ea8d7e9f7395f2772dfa5a7f28499" }, "downloads": -1, "filename": "translitcodec-0.3.tar.gz", "has_sig": false, "md5_digest": "2227e9f79fd3c570d49f8c5cc5db5812", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 48357, "upload_time": "2012-02-13T15:40:37", "url": "https://files.pythonhosted.org/packages/9c/9a/ff88e7aad6062b9988911b383143f332687fef45f033fea35bff9ced5360/translitcodec-0.3.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "7fd31bd3f792982a7919ab131ac848cf", "sha256": "715a8995f84482cd23c1b02fd254ff4da66589e9d5222de10f7efe49d7bea683" }, "downloads": -1, "filename": "translitcodec-0.4.0.tar.gz", "has_sig": true, "md5_digest": "7fd31bd3f792982a7919ab131ac848cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49751, "upload_time": "2015-05-11T17:31:15", "url": "https://files.pythonhosted.org/packages/c8/86/8a1dc0f89d1fe20517ce5e91400c027faee8c97ea1fd18aa94f4c2babb76/translitcodec-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7fd31bd3f792982a7919ab131ac848cf", "sha256": "715a8995f84482cd23c1b02fd254ff4da66589e9d5222de10f7efe49d7bea683" }, "downloads": -1, "filename": "translitcodec-0.4.0.tar.gz", "has_sig": true, "md5_digest": "7fd31bd3f792982a7919ab131ac848cf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 49751, "upload_time": "2015-05-11T17:31:15", "url": "https://files.pythonhosted.org/packages/c8/86/8a1dc0f89d1fe20517ce5e91400c027faee8c97ea1fd18aa94f4c2babb76/translitcodec-0.4.0.tar.gz" } ] }