diff options
Diffstat (limited to 'tools/fonts/fontchain_lint.py')
-rwxr-xr-x | tools/fonts/fontchain_lint.py | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/tools/fonts/fontchain_lint.py b/tools/fonts/fontchain_lint.py index 2956d87f247c..1dd53a908036 100755 --- a/tools/fonts/fontchain_lint.py +++ b/tools/fonts/fontchain_lint.py @@ -423,21 +423,11 @@ def parse_ucd(ucd_path): _emoji_zwj_sequences = parse_unicode_datafile( path.join(ucd_path, 'emoji-zwj-sequences.txt')) - # filter modern pentathlon, as it seems likely to be removed from final spec - # also filter rifle - def is_excluded(n): - return n in [0x1f93b, 0x1f946] - - def contains_excluded(t): - if type(t) == int: - return is_excluded(t) - return any(is_excluded(cp) for cp in t) - - # filter modern pentathlon, as it seems likely to be removed from final spec - _emoji_properties['Emoji'] = set( - t for t in _emoji_properties['Emoji'] if not contains_excluded(t)) - _emoji_sequences = dict( - (t, v) for (t, v) in _emoji_sequences.items() if not contains_excluded(t)) + + # add in UN flag + UN_seq = flag_sequence('UN') + _emoji_sequences[UN_seq] = 'Emoji_Flag_Sequence' + # add in UN flag UN_seq = flag_sequence('UN') |