Skip to content

Commit

Permalink
Updates emoji db
Browse files Browse the repository at this point in the history
Updates to the latest emoji database, including searchable keywords, and
the bin/emoji-menu-download script.
  • Loading branch information
jchook committed May 7, 2024
1 parent e475fa5 commit 9902eb9
Show file tree
Hide file tree
Showing 2 changed files with 1,926 additions and 3,571 deletions.
25 changes: 25 additions & 0 deletions bin/emoji-menu-download
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"

Loading

0 comments on commit 9902eb9

Please sign in to comment.