From c8800eadf3392aa902cef871bbdb7e388d08a881 Mon Sep 17 00:00:00 2001 From: "Mark E. Shoulson" Date: Thu, 30 May 2019 09:25:00 -0400 Subject: More emoji, and also math-base and tags-base Changes languished in my working dir for months, might as well commit & push. --- checklines.py3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'checklines.py3') 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) -- cgit v1.2.3 From 260998464bdda4627a15d1b40e2a9460c990f1dd Mon Sep 17 00:00:00 2001 From: "Mark E. Shoulson" Date: Mon, 1 Jun 2020 11:26:44 -0400 Subject: Added entries for new emoji in emoji-base Not necessarily key sequences for all that could have them. --- checklines.py3 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'checklines.py3') diff --git a/checklines.py3 b/checklines.py3 index dcc88e9..4551f0d 100755 --- a/checklines.py3 +++ b/checklines.py3 @@ -6,10 +6,12 @@ from unicodedata import name import re import sys +linecount = 0 for line in sys.stdin: line=line.strip() if not line or line[0]=="#": continue + linecount += 1 match=re.match(r'\s*(.*):\s*"(.*?)"\s*(\S*)\s*(#.*)?', line) if not match: print("({0})".format(line)) @@ -32,3 +34,5 @@ for line in sys.stdin: print("\tNumber gives character: {0} ({1})".format(c, name(c))) except Exception as e: print("{0}\n\t{1}".format(line, e)) + +print("Done. Checked %d lines."%linecount) -- cgit v1.2.3