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’
Metadata
Release files for unihandecode 0.31
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Unihandecode-0.31-py2.6.egg | Legacy Egg format | - | - | Details |
Release files / Unihandecode-0.31-py2.6.egg
| Download URL | Unihandecode-0.31-py2.6.egg |
|---|---|
| Size | 3.2 MB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
f7cdfd8f81dba8e48e0d622a973192d2d9e3dc851f317c3fc69fab835c94697b
|
|
BLAKE2b-256 checksum How to use checksums |
0802b752dc5ee6973d15c7068ea36b2cdf07da05fc81faacb775e9e254d3ac80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |