GTK emoji picker generates invalid emoji presentation sequences
Steps to reproduce
- Pick an emoji for example
📯 - GTK adds a emoji variant selector behind this emoji, producing an invalid emoji presentation sequence
Current behavior
GTK adds an emoji variant selector to all emojis, this trips up other standard compliant libraries, which would not detect the above example as a valid emoji sequence.
Expected outcome
The GTK emoji picker should only generate valid emoji sequences
Version information
Gtk 3.24.38
Additional information
See the implementation notes in the unicode standard https://www.unicode.org/reports/tr51/proposed.html#Emoji_Implementation_Notes
emoji character | may have an emoji or text presentation selector added if the result is a valid emoji presentation sequence or text presentation sequence
You can find the definition of a emoji presentation sequence here
https://www.unicode.org/reports/tr51/proposed.html#def_emoji_presentation_sequence
Here the list of all valid sequences
https://www.unicode.org/Public/draft/UCD/ucd/emoji/emoji-variation-sequences.txt