On GitHub.com, people predominantly use `:octocat:` and `:shipit:`, but
other custom emoji not as much. These two most used custom emoji also
happen to be specific to the GitHub brand, so it makes more sense that
we add them as custom emoji in the app itself rather than shipping them
with the gemoji library.
If a raw representation of emoji includes VARIATION SELECTOR 16, but a
browser would render it as a color emoji even without that character,
drop the VARIATION SELECTOR 16 from the raw representation.
As mentioned by @mislav in github/gemoji#116, too many aliases can be
tricky, but tags don’t need to be unique. Therefore, replace new aliases
with new tags for the recently changed 😄 and 🎉 emoji.
In the GitHub Reactions menu, there are six emoji: 👍, 👎, 😄, 🎉, 😕, and
❤️. However, two out of the six (😄 and 🎉) have descriptions (“Laugh”
and “Hooray”) that do not actually correspond to Gemoji aliases. Add new
aliases to those two Gemoji so that they directly correspond to the
GitHub Reactions.
The use of the term "rage" is not the same semantically, though the Apple implementation of "pouting face" is essentially the "angry face" plus color red. However, other implementations have more "pouting"-like visages, and so use of "pout" would be helpful.
We now operate on a new set of assumptions:
- Characters with VARIATION_SELECTOR_15 shouldn't render as emoji, even
if OS X doesn't respect that currently. This removes explicit aliases
that include VARIATION_SELECTOR_15.
- VARIATION_SELECTOR_16 is optional for most characters to render as
emoji on OS X. For those that *don't* have it optional, we include
VARIATION_SELECTOR_16 in their raw representation in `emoji.json`.
Other characters list their form including VARIATION_SELECTOR_16
implicitly in `unicode_aliases`.
- For emoji that consist of 2 characters + variation selector, we assume
that the selector can come between the 2 characters or *after* them,
so `find_by_unicode` now supports both forms.
- The `db/aliases.html` script ensures that `emoji.json` only contains
characters that Safari on OS X actually renders as emojis.