-
Notifications
You must be signed in to change notification settings - Fork 4
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not support certain emoji modifiers #1
Comments
Is the information somewhere in emoji.json in the repository? |
It doesn't seem to be in the Edit: It seems that the Makefile will throw out all fields from gemoji's |
It's a bit unclear how to get a list of all emoji from gemoji's library, as a simple boolean flag stating that it ‘accepts skin tones’ doesn't actually tell you in what position it accepts skin tones or how many. As far as I know, only the unicode spec is definitive. https://unicode.org/Public/emoji/14.0/emoji-sequences.txt |
The main use I make of this library is to support pandoc's handling of GitHub emoji aliases, so if there aren't aliases for the skin tone variants, it may be out of scope. |
The reason I'm interested is that we're looking for a library code to properly calculate the widths of text in monospace font, including wide characters, combining characters, and emoji. If it's out of scope for this library, perhaps that functionality can be broken out into a separate library. |
I'm open to extending the functionality of this library. That seems better than yet another emoji library. |
Perhaps we could generate data from the unicode emoji tables, and use gemoji's emoji.json just for the GitHub aliases. |
That sounds like a good idea. |
Emoji can have various modifiers, for example the skin tone modifier. The
gemoji
library for example includes theninja
emoji, with a note that in can take skin tone modifiers. There are more complicated examples: thekiss: man, man
emoji can take two different skin tone modifiers, one for each participant in the kiss.This information seems to be lost when importing here, and skin tone modifiers are not included in the listed emoji.
The text was updated successfully, but these errors were encountered: