mirror of https://gitlab.com/bashrc2/epicyon
Combine emoji sets one by one
parent
7adcb33d61
commit
f896bef6c6
|
@ -939,10 +939,17 @@ def add_html_tags(base_dir: str, http_prefix: str,
|
||||||
custom_emoji_dict = \
|
custom_emoji_dict = \
|
||||||
load_json(base_dir + '/emojicustom/emoji.json')
|
load_json(base_dir + '/emojicustom/emoji.json')
|
||||||
if custom_emoji_dict:
|
if custom_emoji_dict:
|
||||||
|
emojis_combined = True
|
||||||
try:
|
try:
|
||||||
emoji_dict = dict(emoji_dict, **custom_emoji_dict)
|
emoji_dict = dict(emoji_dict, **custom_emoji_dict)
|
||||||
except BaseException:
|
except BaseException:
|
||||||
pass
|
emojis_combined = False
|
||||||
|
if not emojis_combined:
|
||||||
|
# combine emoji dicts one by one
|
||||||
|
for emoji_name, emoji_item in \
|
||||||
|
custom_emoji_dict.items():
|
||||||
|
if not emoji_dict.get(emoji_name):
|
||||||
|
emoji_dict[emoji_name] = emoji_item
|
||||||
|
|
||||||
# print('TAG: looking up emoji for :' + word_str2 + ':')
|
# print('TAG: looking up emoji for :' + word_str2 + ':')
|
||||||
_add_emoji(base_dir, ':' + word_str2 + ':', http_prefix,
|
_add_emoji(base_dir, ':' + word_str2 + ':', http_prefix,
|
||||||
|
|
Loading…
Reference in New Issue