Commit 8788a8b 1 parent 148aa64 commit 8788a8b Copy full SHA for 8788a8b
File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 9
9
Some of it can be done automatically but some needs to be done by hand, that
10
10
I can tell.
11
11
"""
12
+ import sys
13
+ import unicodedata
14
+
12
15
__version__ = '1.0.1'
13
16
__author__ = 'Jim Hefferon: ftpmaint at tug.ctan.org'
14
17
__date__ = '2008-July-15'
15
18
__notes__ = """As sources, used effbot's web site, and
16
19
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/251871
17
- and
18
- man uni2ascii
20
+ and man uni2ascii
19
21
"""
20
- import sys
21
- import unicodedata
22
22
23
23
# These characters that are not done automatically by NFKD, and
24
24
# have a name starting with "LATIN". Some of these I found on the interwebs,
@@ -457,7 +457,10 @@ def build_dictionary():
457
457
return d
458
458
459
459
udict = build_dictionary ()
460
- convert = lambda s : s .translate (udict )
460
+
461
+
462
+ def convert (string ):
463
+ return string .translate (udict )
461
464
462
465
463
466
def coroutine (func ):
You can’t perform that action at this time.
0 commit comments