Browse Source

tools/emoji: ignore U+FE0F emoji indicator characters when looking up translations

master
Reece H. Dunn 8 years ago
parent
commit
01a42aa19b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tools/emoji

+ 1
- 1
tools/emoji View File

@@ -66,7 +66,7 @@ for filename in filenames:

for entry in read_emoji(emoji_dict):
if isinstance(entry, Emoji):
translation = annotations.get(entry.emoji, None)
translation = annotations.get(entry.emoji.replace("\uFE0F", ""), None)
if translation:
length = len(entry.pronunciation.strip())
tabs = entry.pronunciation.count('\t') - 1

Loading…
Cancel
Save