mirror of https://github.com/zulip/zulip.git
emoji: Use lower-case hex letters in iamcal data.
This commit is contained in:
parent
5d6724345a
commit
b9cb6199cf
|
@ -270,10 +270,11 @@ def dump_emojis(cache_path):
|
||||||
emoji_positions = ""
|
emoji_positions = ""
|
||||||
for emoji in emoji_data:
|
for emoji in emoji_data:
|
||||||
if emoji["has_img_google"]:
|
if emoji["has_img_google"]:
|
||||||
emoji_positions += EMOJI_POS_INFO_TEMPLATE % {'codepoint': emoji['unified'],
|
emoji_positions += EMOJI_POS_INFO_TEMPLATE % {
|
||||||
'pos_x': (emoji["sheet_x"] * 100) / 40,
|
'codepoint': emoji['unified'].lower(),
|
||||||
'pos_y': (emoji["sheet_y"] * 100) / 40,
|
'pos_x': (emoji["sheet_x"] * 100) / 40,
|
||||||
}
|
'pos_y': (emoji["sheet_y"] * 100) / 40,
|
||||||
|
}
|
||||||
for emojiset in EMOJISETS:
|
for emojiset in EMOJISETS:
|
||||||
sprite_sheet = os.path.join(EMOJI_DATA_PATH, 'sheet_%s_32.png' % (emojiset,))
|
sprite_sheet = os.path.join(EMOJI_DATA_PATH, 'sheet_%s_32.png' % (emojiset,))
|
||||||
run(['cp', sprite_sheet, cache_path], shell=True)
|
run(['cp', sprite_sheet, cache_path], shell=True)
|
||||||
|
|
|
@ -238,7 +238,7 @@ def generate_emoji_catalog(emoji_data):
|
||||||
if not emoji_is_universal(emoji):
|
if not emoji_is_universal(emoji):
|
||||||
continue
|
continue
|
||||||
category = str(emoji["category"])
|
category = str(emoji["category"])
|
||||||
codepoint = str(emoji["unified"])
|
codepoint = str(emoji["unified"]).lower()
|
||||||
sort_order[codepoint] = emoji["sort_order"]
|
sort_order[codepoint] = emoji["sort_order"]
|
||||||
if category in emoji_catalog:
|
if category in emoji_catalog:
|
||||||
emoji_catalog[category].append(codepoint)
|
emoji_catalog[category].append(codepoint)
|
||||||
|
|
Loading…
Reference in New Issue