US-ASCII transliterations of Unicode text
Project description
ASCII transliterations of Unicode text
Example Use
from unidecode import unidecode print unidecode(u"\u5317\u4EB0") # That prints: Bei Jing
Description
It often happens that you have non-Roman text data in Unicode, but you can’t display it – usually because you’re trying to show it to a user via an application that doesn’t support Unicode, or because the fonts you need aren’t accessible. You could represent the Unicode characters as “???????” or ” BA A0q0…”, but that’s nearly useless to the user who actually wants to read what the text says.
What Unidecode provides is a function, ‘unidecode(…)’ that takes Unicode data and tries to represent it in ASCII characters (i.e., the universally displayable characters between 0x00 and 0x7F). The representation is almost always an attempt at transliteration – i.e., conveying, in Roman letters, the pronunciation expressed by the text in some other writing system. (See the example above)
This is a Python port of Text::Unidecode Perl module by Sean M. Burke <sburke@cpan.org>.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file Unidecode-0.04.5.tar.gz
.
File metadata
- Download URL: Unidecode-0.04.5.tar.gz
- Upload date:
- Size: 186.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50729029478df1199034ea9afc832e75d8d0989df87e4cd73596def9dad2d5a3 |
|
MD5 | ccfd7281fff1c9fd2ebdec8be59673b8 |
|
BLAKE2b-256 | 92a874ec4a74c52aa909c32abc2b04c7dce42a53f69b5ff75f991f7fbdb1bf2a |
Provenance
File details
Details for the file Unidecode-0.04.1.tar.gz
.
File metadata
- Download URL: Unidecode-0.04.1.tar.gz
- Upload date:
- Size: 167.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3687492791cf9088fb17ac69b3d77223eeb13107fa6eff1806d6b63f9306343 |
|
MD5 | c4c9ed8d40cff25c390ff5d5112b9308 |
|
BLAKE2b-256 | d2c0fd82d57ad948f005c8d96211249d3cb34ee57289d8e9eecf6bdda70b4bd6 |
Provenance
File details
Details for the file Unidecode-0.04.1-py2.6.egg
.
File metadata
- Download URL: Unidecode-0.04.1-py2.6.egg
- Upload date:
- Size: 397.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccb0e0fedc8cb25f8c6475af0f0a6e59126ac3a22281a5805be030d112a82d78 |
|
MD5 | 853ca8bc15fad39d0024f6c669188af6 |
|
BLAKE2b-256 | a9d8de6df0427e853a2db7d33967b01d1dd087e6450842e1a041ecb565035956 |