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 = ""
|
||||
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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue