aboutsummaryrefslogtreecommitdiff
path: root/checklines.py3
diff options
context:
space:
mode:
authorMark E. Shoulson <mark@kli.org>2019-05-30 09:25:00 -0400
committerMark E. Shoulson <mark@kli.org>2019-05-30 09:25:00 -0400
commitc8800eadf3392aa902cef871bbdb7e388d08a881 (patch)
tree5d000dfe890fc30e20069a6b0d2f9545b5c4d47e /checklines.py3
parentTypos in ⟪⟫, oops. And ⬳ ⟿ added. (diff)
downloaddotXCompose-c8800eadf3392aa902cef871bbdb7e388d08a881.tar.gz
dotXCompose-c8800eadf3392aa902cef871bbdb7e388d08a881.tar.bz2
dotXCompose-c8800eadf3392aa902cef871bbdb7e388d08a881.zip
More emoji, and also math-base and tags-base
Changes languished in my working dir for months, might as well commit & push.
Diffstat (limited to 'checklines.py3')
-rwxr-xr-xchecklines.py34
1 files changed, 3 insertions, 1 deletions
diff --git a/checklines.py3 b/checklines.py3
index e38bba1..dcc88e9 100755
--- a/checklines.py3
+++ b/checklines.py3
@@ -16,8 +16,10 @@ for line in sys.stdin:
continue
(keystrokes, char, num, comments)=match.groups()
nummatch=re.match(r'^U([0-9A-Fa-f]+)$', num)
+ # There's no number for multichar strings
if not nummatch:
- print("Number not parsed: {0}".format(line))
+ if len(char) == 1:
+ print("Number not parsed: {0}".format(line))
continue
x=int(nummatch.group(1),0x10)
c=chr(x)