gemoji icon indicating copy to clipboard operation
gemoji copied to clipboard

Add skin tones support

Open mislav opened this issue 5 years ago • 2 comments

This adds Emoji::Character#skin_tones? which returns true if the emoji supports Fitzpatrick skin tone modifiers (1F3FB-1F3FF).

mislav avatar Jul 03 '19 16:07 mislav

Any reason this isn't merged?

chvp avatar Jan 30 '20 12:01 chvp

:+1: on this, hope this can get attention and get merged

kinduff avatar Oct 26 '21 20:10 kinduff

@chvp Sorry for my late reply. This reason this wasn't merged is because emoji.skin_tones? on its own wasn't very useful to ship. Your application would be able to detect if an emoji supported skin tones, but not much more unless you built up the logic of parsing/inserting the Fitzpatrick modifiers yourself.

I've now added support for skin tones to Emoji.find_by_unicode and the ability to list each skin tone variant for an emoji: Emoji::Character#raw_skin_tone_variants.

mislav avatar Nov 15 '22 19:11 mislav