{"id":16444923,"url":"https://github.com/jaymon/unidefy","last_synced_at":"2026-05-13T08:05:59.848Z","repository":{"id":8241001,"uuid":"9684708","full_name":"Jaymon/unidefy","owner":"Jaymon","description":"Python module to substitute recognized unicode characters with ascii characters","archived":false,"fork":false,"pushed_at":"2013-06-27T01:53:17.000Z","size":150,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-08T22:38:18.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jaymon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-26T00:55:43.000Z","updated_at":"2014-02-12T02:19:19.000Z","dependencies_parsed_at":"2022-08-06T23:15:24.533Z","dependency_job_id":null,"html_url":"https://github.com/Jaymon/unidefy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Funidefy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Funidefy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Funidefy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jaymon%2Funidefy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jaymon","download_url":"https://codeload.github.com/Jaymon/unidefy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240816545,"owners_count":19862307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T09:42:38.558Z","updated_at":"2026-05-13T08:05:59.819Z","avatar_url":"https://github.com/Jaymon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unidefy -- substitute unicode for ascii equivalents, if available\n\nI wrote this primarily to normalize certain data for searching, the problem is that\ncertain characters, like the `umlat`, are hard to do on a normal keyboard, and so most\npeople don't bother, so this module can be used on the indexed strings to allow\neither a `u` or an `umlat` to be used (since the `u` wouldn't be changed and the `umlat` would\nbe changed to the `u`) so you can search both ways but only have to store one version.\n\nThere are other modules that help with this, but python's builtin `unicodedata` didn't quite\ndo what I needed since it only uses defined [unicode normalizations](http://en.wikipedia.org/wiki/Unicode_normalization),\nand something like [unidecode](https://pypi.python.org/pypi/Unidecode) works\nbut it's a little too eager, getting rid of unicode chars it doesn't recognize. I wanted to keep unicode that there wasn't\na good substitution for, likewise, I didn't really want to turn chinese characters into english\neither (something `unidecode` does), it's definitely worth a look if you want more aggressive substitution.\n\nTo install, use Pip:\n\n    pip install git+https://github.com/Jaymon/unidefy#egg=unidefy\n\n## More reading, if you're interested\n\nThis is a dump of all the links I had open/used while I wrote this module\n\nhttp://stackoverflow.com/questions/12944678/using-unicodedata-normalize-in-python-2-7\n\nhttp://code.activestate.com/recipes/251871/\n\nhttp://stackoverflow.com/questions/816285/where-is-pythons-best-ascii-for-this-unicode-database\n\n\nhttp://lexsrv3.nlm.nih.gov/LexSysGroup/Projects/lvg/current/docs/designDoc/UDF/unicode/unicode.html\n\nhttp://lexsrv3.nlm.nih.gov/LexSysGroup/Projects/lvg/current/docs/designDoc/UserContribution/index.html\n\nhttp://lexsrv3.nlm.nih.gov/LexSysGroup/Projects/lvg/current/docs/designDoc/UDF/unicode/\n\nhttp://search.cpan.org/~sburke/Text-Unidecode-0.04/lib/Text/Unidecode.pm\n\n\nhttp://www.tablix.org/~avian/blog/archives/2009/01/unicode_transliteration_in_python/\n\nhttp://stackoverflow.com/questions/4808967/replacing-unicode-punctuation-with-ascii-approximations\n\nhttp://stackoverflow.com/questions/138449/how-to-convert-a-unicode-character-to-its-ascii-equivalent\n\nhttp://stackoverflow.com/questions/5651124/is-there-a-way-to-dumb-down-text-from-unicode-to-ascii\n\n## I got the data for the substitution table from these locations\n\nhttp://lexsrv3.nlm.nih.gov/LexSysGroup/Projects/lvg/current/docs/designDoc/UserContribution/asciiConversion.html\n\nhttp://unicode.org/repos/cldr/trunk/common/transforms/Latin-ASCII.xml\n\nhttp://lexsrv3.nlm.nih.gov/LexSysGroup/Projects/lvg/current/docs/designDoc/UDF/unicode/MapTables/CoreNormResults.html\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Funidefy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaymon%2Funidefy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaymon%2Funidefy/lists"}