File tree Expand file tree Collapse file tree 2 files changed +1926
-3571
lines changed Expand file tree Collapse file tree 2 files changed +1926
-3571
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments