emojis - localbin - leot's localbin (~/bin)
(HTM) hg clone https://bitbucket.org/iamleot/localbin
(DIR) Log
(DIR) Files
(DIR) Refs
---
emojis
---
1 #!/bin/sh
2
3 #
4 # Generate a TSV of all emojis by parsing emoji-test.txt:
5 #
6 # <https://unicode.org/Public/emoji/5.0/emoji-test.txt>
7 #
8 # The fields are:
9 # codepoint, emoji, description
10 #
11 # All emojis with multiple codepoint are ignored.
12 #
13
14 curl -s https://unicode.org/Public/emoji/5.0/emoji-test.txt |
15 sed -e '/^#/d' -e '/^[[:blank:]]*$/d' -e 's/;/ /' -e 's/# / /' |
16 cut -f 1,3 |
17 sed -e 's/[[:blank:]]* / /' -e '/ .* /d' -e 's/ / /'