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.
parent
98936bfc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/javascript/mastodon/emoji_map.json 1 ajout, 0 suppressionapp/javascript/mastodon/emoji_map.json
- app/javascript/mastodon/emojione_light.js 34 ajouts, 9 suppressionsapp/javascript/mastodon/emojione_light.js
- lib/tasks/emojis.rake 56 ajouts, 0 suppressionlib/tasks/emojis.rake
- spec/javascript/components/emojify.test.js 4 ajouts, 4 suppressionsspec/javascript/components/emojify.test.js
Chargement en cours
Veuillez vous inscrire ou vous se connecter pour commenter