diff options
| author | Tomaz Solc <avian@toybox.zemanta.com> | 2009-01-21 10:52:19 +0100 |
|---|---|---|
| committer | Tomaz Solc <avian@toybox.zemanta.com> | 2009-01-21 10:52:19 +0100 |
| commit | f6c0cd1edfdf587b18622145555f13e89d7ef69f (patch) | |
| tree | c235a4ac82a395ebfc23750867dd7b7ee3aa8827 /unidecode | |
| parent | 9b254a2dbd24146e266e61386b0cfafd29cc532e (diff) | |
| download | unidecode-f6c0cd1edfdf587b18622145555f13e89d7ef69f.tar.gz | |
Documentation
Diffstat (limited to 'unidecode')
| -rw-r--r-- | unidecode/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unidecode/__init__.py b/unidecode/__init__.py index 7b914ba..d52679b 100644 --- a/unidecode/__init__.py +++ b/unidecode/__init__.py @@ -1,8 +1,16 @@ +"""ASCII transliterations of Unicode text +""" Char = {} NULLMAP = [ '' * 0x100 ] def unidecode(string): + """Transliterate an Unicode object into an ASCII string + + >>> unidecode(u"\u5317\u4EB0") + "Bei Jing " + """ + retval = [] for char in string: |
