Fix emojify() by generating a mapping to existing Twemoji files (#5080)

A new rake task emojis:generate downloads a full list of valid
unicode sequences from unicode.org and checks it against existing
Twemoji files, finally generating a map from each sequence to the
existing file (e.g. when there's multiple ways an emoji can be
expressed). The map is dumped into app/javascript/mastodon/emoji_map.json

That file is loaded by emojione_light.js (now a misnomer) which
decorates it further with shortcodes taken from emoji-mart's index.
This commit is contained in:
Eugen Rochko
2017-09-25 18:36:33 +02:00
committed by GitHub
parent 98936bfcdf
commit 510df0ac55
4 changed files with 95 additions and 13 deletions

File diff suppressed because one or more lines are too long