mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
7b589f991d
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. |
||
---|---|---|
.. | ||
bn.data | ||
convert-emoji.c | ||
da.data | ||
de.data | ||
en.data | ||
es.data | ||
et.data | ||
fi.data | ||
fr.data | ||
gresource.xml.in | ||
hi.data | ||
hu.data | ||
it.data | ||
ja.data | ||
ko.data | ||
lt.data | ||
ms.data | ||
nb.data | ||
nl.data | ||
pl.data | ||
pt.data | ||
README.md | ||
ru.data | ||
sv.data | ||
th.data | ||
uk.data | ||
zh.data |
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