-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to the latest emoji database, including searchable keywords, and the bin/emoji-menu-download script.
- Loading branch information
Showing
2 changed files
with
1,926 additions
and
3,571 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# Download emoji database | ||
|
||
# Old version, direct from unicode.org, without keywords: | ||
# curl "https://unicode.org/Public/emoji/11.0/emoji-test.txt" \ | ||
# | grep -Po '(?<= # ).*' \ | ||
# | grep -v 'skin tone' | ||
|
||
# New version, including keywords: | ||
curl 'https://raw.githubusercontent.com/muan/emojilib/main/dist/emoji-en-US.json' \ | ||
| jq -r ' | ||
to_entries | | ||
map( | ||
"\(.key) \( | ||
(.value | map(gsub("_"; " ")) | reduce .[] as $item ([]; if index($item) == null then . + [$item] else . end) | join(" ")) | ||
)" | ||
) | .[] | ||
' \ | ||
| grep -v 'skin tone' | ||
|
||
# Some extra non-emjoi strings: | ||
echo "∃ exists existential quantification" | ||
echo "∀ for all universal quantification" | ||
echo "¯\_(ツ)_/¯ shrug" | ||
|
Oops, something went wrong.