Skip to content

Commit

Permalink
More explicitly correct property generation
Browse files Browse the repository at this point in the history
Current generation is 100% correct, but assumes things under the
category will never change. This change simply ensures the entire
category is considered even if things change in the future.
  • Loading branch information
facelessuser committed Dec 31, 2024
1 parent d8518ec commit 146fac0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/unipropgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,9 @@ def gen_binary(table, output, ascii_props=False, append=False, prefix="", aliase
# One off Unicode property found under https://unicode.org/reports/tr18/#Compatibility_Properties
# `Word: [\p{alnum}\p{M}\p{Pc}\p{JoinControl}]`
s = set(binary["alnum"])
s |= set(table['m']['c'])
s |= set(table['m']['e'])
s |= set(table['m']['n'])
for k, v in table['m'].items():
if not k.startswith('^'):
s |= set(v)
s |= set(table["p"]["c"])
s |= set(binary["joincontrol"])
binary["word"] = list(s)
Expand Down

0 comments on commit 146fac0

Please sign in to comment.