Skip to main content

US-ASCII transliterations of Unicode text

Project 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 Unihandecode provides is a function, ‘decode(…)’ that takes Unihancode 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.

For example; >>>d = Unidecoder() >>>d.decode(u”u5317u4EB0”) ‘Bei Jing’. d = Unidecoder(lang=’ja’) >>>d.decode(u”u5317u4EB0”) ‘Pe King’

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Unihandecode-0.30-py2.6.egg (3.2 MB view details)

Uploaded Egg

File details

Details for the file Unihandecode-0.30-py2.6.egg.

File metadata

File hashes

Hashes for Unihandecode-0.30-py2.6.egg
Algorithm Hash digest
SHA256 c2b2073477e6133c1d9004b092bd08c4eff8938ace46d1f14edb9a88210b204f
MD5 a836f24e4fd0f08cbe17e3b1aad1f410
BLAKE2b-256 092b4f12bcbc7d178a3183817e6ab41945d4401f82f5c719ee1693616792c5fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page