gtk2/gtk/emoji
Kévin Commaille d8c79e91a2
emoji: Add more locales
Based on the locales that are at least 85% translated in Damned Lies:
https://l10n.gnome.org/releases/gnome-41/
Limited by the locales available in emojibase

Closes #4568
2022-02-22 11:28:15 +01:00
..
convert-emoji.c emoji: Fix the convert-emoji program 2022-02-22 11:28:06 +01:00
da.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
de.data emoji: Update data to CLDR v40 2022-02-22 11:28:15 +01:00
en.data emoji: Update data to CLDR v40 2022-02-22 11:28:15 +01:00
es.data emoji: Update data to CLDR v40 2022-02-22 11:28:15 +01:00
fr.data emoji: Update data to CLDR v40 2022-02-22 11:28:15 +01:00
gresource.xml.in Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
hu.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
it.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
ko.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
lt.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
ms.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
nl.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
pl.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
pt.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
README.md Redo the handling of Emoji data 2020-10-04 01:14:42 -04:00
ru.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
sv.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
uk.data emoji: Add more locales 2022-02-22 11:28:15 +01:00
zh.data emoji: Update data to CLDR v40 2022-02-22 11:28:15 +01: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