Skip to content

Conversation

@shane-tw
Copy link

@shane-tw shane-tw commented Mar 22, 2025

This upgrades to Unicode 16.0, using this Unicode 16.0 gemoji PR as a base.

There wasn't much documentation explaining how emojis.json was originally generated for this repo, so I wrote a Python script to merge vdurmont/emoji-java's emojis.json file with github/gemoji's emoji.json, preserving any of this repo's aliases.

Anyway, any aliases e.g. :like:, etc. which were a thing for this repo remain a thing after this PR.
It's mostly backward compatible, main notable differences (matching github/gemoji behaviour):

  • Many emojis had FE0F added to them (just makes the emoji render as a picture, safe).
  • :jar: now maps to 🫙 , not 🏺 (:amphora:).
  • :beetle: now maps to 🪲 , not 🐞 (:lady_beetle:).
  • :satellite: now maps to 📡 , not 🛰️ (:artificial_satellite:).

To maintain backwards compatibility, the below differ from gemoji:

  • :ng maps to 🇳🇬 , not 🆖 (:squared_ng:).
  • :om: maps to 🇴🇲 , not 🕉️ (:om_symbol:).

If you want a diff, I recommend reviewing individual commits, as the sort commit otherwise makes it hard to review.

EDIT: I added a hack to strip FE0F on all inputs prior to converting from emojis to aliases, as otherwise this repo would no longer map some emojis if people entered them without the FE0F. Commit here. I'll revert that if wanted.

@shane-tw shane-tw changed the title Upgrade to Unicode 16.0 Upgrade to Unicode 16.0 and add support for almost all gemoji aliases Mar 24, 2025
@shane-tw shane-tw force-pushed the master branch 2 times, most recently from c68250d to 3678bbd Compare March 24, 2025 11:17
`:ng:` and `:om:` were already used by the Nigerian flag and Oman flag.
Otherwise every other emoji's gemoji alias is supported.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants