Adding more emoji

main
Bob Mottram 2022-03-29 20:34:03 +01:00
parent 8c18912a4c
commit 1d0963980e
533 changed files with 1352 additions and 785 deletions

View File

@ -1387,3 +1387,29 @@ def bold_reading_string(text: str) -> str:
new_text += '<p>' + new_parag + '</p>'
return new_text
def import_emoji(base_dir: str, import_filename: str, session) -> None:
"""Imports emoji from the given filename
"""
if not os.path.isfile(import_filename):
return
emoji_dict = load_json(base_dir + '/emoji/default_emoji.json', 0, 1)
added = 0
with open(import_filename, "r") as fp_emoji:
lines = fp_emoji.readlines()
for line in lines:
url = line.split(', ')[0]
tag = line.split(', ')[1].strip()
tag = tag.split(':')[1]
if emoji_dict.get(tag):
continue
emoji_image_filename = base_dir + '/emoji/' + tag + '.png'
if os.path.isfile(emoji_image_filename):
continue
if download_image(session, base_dir, url,
emoji_image_filename, True, False):
emoji_dict[tag] = tag
added += 1
save_json(emoji_dict, base_dir + '/emoji/default_emoji.json')
print(str(added) + ' custom emoji added')

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
emoji/Clojure.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
emoji/ac_amazed.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
emoji/ac_angry.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
emoji/ac_cry.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

BIN
emoji/ac_dazzle.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

BIN
emoji/ac_dozing.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
emoji/ac_happy.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
emoji/ac_heart.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
emoji/ac_joy.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
emoji/ac_music.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
emoji/ac_pride.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
emoji/ac_sad.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

BIN
emoji/ac_shock.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
emoji/ac_shy.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
emoji/ac_sigh.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
emoji/ac_sleepy.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
emoji/ac_smirk.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
emoji/ac_sneeze.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
emoji/ac_worry.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
emoji/almalinux.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
emoji/alpine.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
emoji/angular.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
emoji/antix.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
emoji/apple_inc.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
emoji/archlabs.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
emoji/arcolinux.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
emoji/arduino.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
emoji/artix.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
emoji/babyyoda.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
emoji/bash.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
emoji/bear_flag.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

BIN
emoji/bedrock.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

BIN
emoji/bitcoin.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
emoji/blabs_d.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
emoji/blabs_l.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
emoji/blabs_m.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
emoji/blender.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
emoji/blobcatOh.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Some files were not shown because too many files have changed in this diff Show More