diff options
author | Mark Shoulson <mark@kli.org> | 2011-12-14 18:45:44 -0500 |
---|---|---|
committer | Mark Shoulson <mark@kli.org> | 2011-12-14 18:45:44 -0500 |
commit | 3b976513ba7b29b4fa03525465de814518d866c4 (patch) | |
tree | 03b7b7472c298fe5a12bbac4e9bb3cf639d8a1a8 /treeprint.py | |
parent | We've had Queens for hearts and clubs instead of Kings all along. Oops. (diff) | |
download | dotXCompose-3b976513ba7b29b4fa03525465de814518d866c4.tar.gz dotXCompose-3b976513ba7b29b4fa03525465de814518d866c4.tar.bz2 dotXCompose-3b976513ba7b29b4fa03525465de814518d866c4.zip |
Added some emoji, clockfaces; fixed typo in /.. expansion.
Added -n option to treeprint.
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={} |