emoji: Use lower-case hex letters in iamcal data.

This commit is contained in:
Tim Abbott 2017-05-03 13:01:53 -07:00
parent 5d6724345a
commit b9cb6199cf
2 changed files with 6 additions and 5 deletions

View File

@ -270,10 +270,11 @@ def dump_emojis(cache_path):
emoji_positions = ""
for emoji in emoji_data:
if emoji["has_img_google"]:
emoji_positions += EMOJI_POS_INFO_TEMPLATE % {'codepoint': emoji['unified'],
'pos_x': (emoji["sheet_x"] * 100) / 40,
'pos_y': (emoji["sheet_y"] * 100) / 40,
}
emoji_positions += EMOJI_POS_INFO_TEMPLATE % {
'codepoint': emoji['unified'].lower(),
'pos_x': (emoji["sheet_x"] * 100) / 40,
'pos_y': (emoji["sheet_y"] * 100) / 40,
}
for emojiset in EMOJISETS:
sprite_sheet = os.path.join(EMOJI_DATA_PATH, 'sheet_%s_32.png' % (emojiset,))
run(['cp', sprite_sheet, cache_path], shell=True)

View File

@ -238,7 +238,7 @@ def generate_emoji_catalog(emoji_data):
if not emoji_is_universal(emoji):
continue
category = str(emoji["category"])
codepoint = str(emoji["unified"])
codepoint = str(emoji["unified"]).lower()
sort_order[codepoint] = emoji["sort_order"]
if category in emoji_catalog:
emoji_catalog[category].append(codepoint)