Some emoji has wrong short code
lyrixx opened this issue · 3 comments
Hello,
A bit a context:
I'm working on symfony/symfony#46755 ; And I'm planning to add support for translating emoji in short code too.
AFAIU short codes are not standardized and each platform has their own.
It looks like this repository contains the ones slack supports. Maybe I'm wrong, if you can confirm, it would be awesome. Like that I could re-use your work in Symfony!
So I was playing a bit with https://github.com/iamcal/emoji-data/blob/master/emoji.json and I noticed something strange.
The issue
Some short codes does not work in slack
The message I used:
Hello :wave:
`:women-with-bunny-ears-partying:` => :women-with-bunny-ears-partying:
`:woman-with-bunny-ears-partying:` => :woman-with-bunny-ears-partying:
`:men-with-bunny-ears-partying:` => :men-with-bunny-ears-partying:
`:man-with-bunny-ears-partying:` => :man-with-bunny-ears-partying:
The rendering:
Based on the data sources, I guess the short names in that repo are actually the ones defined in Unicode.
The short names in this repo are a mix of the original short names from Campfire, GitHub and Slack, official Unicode codepoint/sequence names, and invented names based on common suffixes. Slack uses a version of this data, but not usually the latest version, so there will be differences.