From f6c0cd1edfdf587b18622145555f13e89d7ef69f Mon Sep 17 00:00:00 2001 From: Tomaz Solc Date: Wed, 21 Jan 2009 10:52:19 +0100 Subject: Documentation --- unidecode/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'unidecode') 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: -- cgit v1.2.1