Skip to content

Commit 9902eb9

Browse files
committed
Updates emoji db
Updates to the latest emoji database, including searchable keywords, and the bin/emoji-menu-download script.
1 parent e475fa5 commit 9902eb9

File tree

2 files changed

+1926
-3571
lines changed

2 files changed

+1926
-3571
lines changed

bin/emoji-menu-download

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
# Download emoji database
3+
4+
# Old version, direct from unicode.org, without keywords:
5+
# curl "https://unicode.org/Public/emoji/11.0/emoji-test.txt" \
6+
# | grep -Po '(?<= # ).*' \
7+
# | grep -v 'skin tone'
8+
9+
# New version, including keywords:
10+
curl 'https://raw.githubusercontent.com/muan/emojilib/main/dist/emoji-en-US.json' \
11+
| jq -r '
12+
to_entries |
13+
map(
14+
"\(.key) \(
15+
(.value | map(gsub("_"; " ")) | reduce .[] as $item ([]; if index($item) == null then . + [$item] else . end) | join(" "))
16+
)"
17+
) | .[]
18+
' \
19+
| grep -v 'skin tone'
20+
21+
# Some extra non-emjoi strings:
22+
echo "∃ exists existential quantification"
23+
echo "∀ for all universal quantification"
24+
echo "¯\_(ツ)_/¯ shrug"
25+

0 commit comments

Comments
 (0)