diff options
Diffstat (limited to 'treeprint.py')
-rw-r--r-- | treeprint.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/treeprint.py b/treeprint.py index 2f75f4d..0168912 100644 --- a/treeprint.py +++ b/treeprint.py @@ -2,6 +2,10 @@ import sys import re +try: + import unicodedata +except: + pass """ This program slurps in a .XCompose file on standard input (or several @@ -47,6 +51,11 @@ def showdict(data, indent): showdict(value, -abs(indent+4)), else: print " "+value, + if "-n" in sys.argv: + try: + print unicodedata.name(value.decode('utf-8')), + except: + pass print ")", listing={} |