Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for skin-toned emojis #4

Closed
andrrms opened this issue Jan 3, 2022 · 1 comment 路 Fixed by #6
Closed

Add support for skin-toned emojis #4

andrrms opened this issue Jan 3, 2022 · 1 comment 路 Fixed by #6
Labels
feature request A new feature idea todo To be done

Comments

@andrrms
Copy link
Contributor

andrrms commented Jan 3, 2022

This plugin MUST support skin-toned emojis (馃憤馃憤馃徎馃憤馃徏馃憤馃徑馃憤馃従馃憤馃徔) since they're a fundamental part of Unicode emojis.

Quick thoughts:

  • Maybe it can use neutral-toned emojis (馃憤) + Unicode general skin tone codes (馃徎馃徏馃徑馃従馃徔) // Is this possible?
  • It can be accessed like this:
ctx.emoji`${"like:medium-dark"}` // 馃憤馃従
ctx.emoji`${"punch:light"}` // 馃憡馃徎
ctx.emoji`${"raised_hands"}` // 馃檶
@andrrms andrrms added todo To be done feature request A new feature idea labels Jan 3, 2022
@andrrms
Copy link
Contributor Author

andrrms commented Jan 4, 2022

With further investigation, I discovered that it is possible to have emoji modifiers to change it's skin tones. Tone modifier goes from range U+1F3FB to U+1F3FF. The next step now is to split emojis list into two lists, emojis.json and skin-emojis.json. That way, it is possible to apply modifiers in a simple way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new feature idea todo To be done
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant