summaryrefslogtreecommitdiff
path: root/tools/fonts
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2016-06-15 13:23:01 -0700
committerRoozbeh Pournader <roozbeh@google.com>2016-06-15 13:23:01 -0700
commit8566f96668a61f5944b9e30a1cf247920f54a843 (patch)
tree4ef8709967bee8b3969e0d21280fbf5440ae0269 /tools/fonts
parent16075e160b82398d0daa71dc531f7b78ed37c5cf (diff)
Remove modifications to emoji data
The previous two changes, I60097cd78f28764d83abe0d12b53e2a7e6c974dc and Idcc8f1b66014b25758c163d908d34f06011d9927, added code to filter out two characters that were getting removed from the emoji set. Now that the upstream Unicode data file removes them (see Ibfea01280d08df34dcdd03f5121aabd532a6eecc), we can remove the code. Bug: 26187231 Change-Id: Ib849917d8978da1b24fe5fff17d62ad7c2de963a
Diffstat (limited to 'tools/fonts')
-rwxr-xr-xtools/fonts/fontchain_lint.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/fonts/fontchain_lint.py b/tools/fonts/fontchain_lint.py
index ea36e2cb0d6a..2e717a60f24c 100755
--- a/tools/fonts/fontchain_lint.py
+++ b/tools/fonts/fontchain_lint.py
@@ -411,21 +411,6 @@ 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))
def flag_sequence(territory_code):
return tuple(0x1F1E6 + ord(ch) - ord('A') for ch in territory_code)