gtk/gtk/emoji
Josh Brobst 7b589f991d emoji: Fix presentation selector handling
The emoji presentation selector (FE0F) was being appended to every emoji
sequence inserted by GtkEmojiChooser and GtkEmojiCompletion, often
leading to invalid sequences. Modify the emoji data to include FE0F
only when necessary, and change skin tone handling to account for cases
where the generic (no tone) variation needs a presentation selector.
2024-03-05 18:44:55 -05:00
..
bn.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
convert-emoji.c emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
da.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
de.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
en.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
es.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
et.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
fi.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
fr.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
gresource.xml.in Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
hi.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
hu.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
it.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
ja.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
ko.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
lt.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
ms.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
nb.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
nl.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
pl.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
pt.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
README.md Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
ru.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
sv.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
th.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
uk.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00
zh.data emoji: Fix presentation selector handling 2024-03-05 18:44:55 -05:00

Emoji data

We use Emoji data from Unicode and the CLDR, stored in a GVariant. The immediate source for our data is the json files from

https://github.com/milesj/emojibase.git

To convert the data from that repository to a GVariant that GTK can use, the convert-emoji tool can be used:

convert-emoji $emojibase/packages/data/de/data.raw.json de.data

for example (for German).

To make these usable by GTK, we wrap them in a resource bundle that has the GVariant as

/org/gtk/libgtk/emoji/de.data

and install the resulting resource bundle at this location:

/usr/share/gtk-4.0/emoji/de.gresource