aboutsummaryrefslogtreecommitdiff
path: root/checklines.py3
diff options
context:
space:
mode:
authorMark E. Shoulson <mark@kli.org>2020-06-01 11:26:44 -0400
committerMark E. Shoulson <mark@kli.org>2020-06-01 11:26:44 -0400
commit260998464bdda4627a15d1b40e2a9460c990f1dd (patch)
tree73bd75103ed3a5517a381096b7d7dffbb2043d80 /checklines.py3
parentAdded half-stars; fixed some mistakes in comments. (diff)
downloaddotXCompose-260998464bdda4627a15d1b40e2a9460c990f1dd.tar.gz
dotXCompose-260998464bdda4627a15d1b40e2a9460c990f1dd.tar.bz2
dotXCompose-260998464bdda4627a15d1b40e2a9460c990f1dd.zip
Added entries for new emoji in emoji-base
Not necessarily key sequences for all that could have them.
Diffstat (limited to 'checklines.py3')
-rwxr-xr-xchecklines.py34
1 files changed, 4 insertions, 0 deletions
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)