@emoji-platform-data/gnome
v0.7.0
Published
Static export of GNOME emoji picker metadata for unicode emojis. 👣
Readme
Usage
npm i @emoji-platform-data/gnomeimport { byEmoji, byTitle } from "@emoji-platform-data/gnome";
console.log(byEmoji["🐙"]);
/*
{
category: "Animals & Nature",
emoji: "🐙",
keywords: ["animal", "creature", "ocean"],
keywordsByLocale: {
de: ["krake", "meer", "oktopus", "tier", "tintenfisch"],
ja: ["オクトパス", "動物", "軟体動物"],
...
},
name: "octopus",
namesByLocale: { de: "Oktopus", ja: "タコ", ... },
order: 660,
}
*/byEmojitakes a glyph as any platform writes it, with or without its U+FE0F:byEmoji["⚓️"]andbyEmoji["⚓"]are the same entry.byTitletakes a PascalCase Emojipedia title.
Each entry is a GnomeItem describing one emoji as GNOME's emoji picker -GTK's emoji chooser, the one Ctrl + . opens in any GTK text field- knows it:
nameandkeywordsare what the picker shows and searches in English: the Unicode CLDR annotations, by way of Emojibase.namesByLocaleandkeywordsByLocaleare the same for GTK's other locales, keyed by locale, such asdeorja.categoryis the picker's section, named as its heading names it, such asSmileys & People.orderis the emoji's position in the English picker, across all sections.- The hair components, such as 🦰, have no
categoryororder, since the picker doesn't show them. - Emoji new in Emoji 17.0, such as , have no
order, since GTK's English picker doesn't show them yet.
This package is only static JSON and types, with no runtime dependencies, and its data is also in the combined emoji-platform-data.
Where This Data Comes From
This is a snapshot of GTK's per-locale emoji files in gtk/emoji from the newest stable GTK 4 release, and DEVELOPMENT.md explains how to refresh it.
- Skin tone variants are left out, since GTK only marks which emoji have them.
- Some emoji are as GTK's picker inserts them rather than fully qualified, such as 🕵♂️.
The names and keywords are the Unicode CLDR's, under the Unicode License, as converted by Emojibase and GTK, and this package includes no emoji artwork.
