gtk2/gtk/emoji
Matthias Clasen 452c909b64 Redo the handling of Emoji data
Use the data files from https://github.com/milesj/emojibase.git
as source for our Emoji data. Slightly change our data format by
adding a group to each item, in both the Emoji data and in the
setting for recent-emoji.

Install translated versions of the data as separate resource
bundles in $prefix/gtk-4.0/emoji, and load them when appropriate.

Currently, we have data for de, en, es, fr, zh, with data taken
from Unicode 13 and CLDR 13.

Fixes: #950 #1511
2020-10-04 01:14:42 -04:00
..
convert-emoji.c Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
de.data Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
en.data Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
es.data Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
fr.data Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
gresource.xml.in Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
README.md Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
zh.data Redo the handling of Emoji data 2020-10-04 01:14:42 -04: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