build_emoji: Migrate to use emoji_names.py file.

This migrates Zulip to use a dramatically better set of names and
aliases for our emoji set, defined in emoji_names.py (which is in turn
manually generated from our hand-curated CSV file).

This should significantly improve the experience of using Zulip's
emoji picker and emoji typeahead for finding what one is looking for.
This commit is contained in:
Harshit Bansal
2017-11-08 18:40:43 +00:00
committed by Tim Abbott
parent 7a86e83a6f
commit f636882e04
9 changed files with 77 additions and 342 deletions

View File

@@ -265,7 +265,7 @@ def generate_sha1sum_emoji(zulip_path):
ZULIP_EMOJI_DIR = os.path.join(zulip_path, 'tools', 'setup', 'emoji')
sha = hashlib.sha1()
filenames = ['emoji_map.json', 'build_emoji', 'emoji_setup_utils.py']
filenames = ['emoji_map.json', 'build_emoji', 'emoji_setup_utils.py', 'emoji_names.py']
for filename in filenames:
file_path = os.path.join(ZULIP_EMOJI_DIR, filename)