diff options
author | BulbyVR <26726264+TheDrawingCoder-Gamer@users.noreply.github.com> | 2022-04-23 13:22:42 -0400 |
---|---|---|
committer | BulbyVR <26726264+TheDrawingCoder-Gamer@users.noreply.github.com> | 2022-04-24 12:25:01 -0400 |
commit | b629882793e6bce84965692b7e1d96f86539ca59 (patch) | |
tree | 4abef066285381ba992b1804d076d04e72b66c23 /scripts | |
parent | Add more aliases, start on regional indicators (diff) | |
download | nheko-b629882793e6bce84965692b7e1d96f86539ca59.tar.xz |
Properly add regional indicators, with ZWNJ
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/codegen.sh | 4 | ||||
-rwxr-xr-x | scripts/emoji_codegen.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/codegen.sh b/scripts/codegen.sh index 24fbc6be..9ba5c5df 100644 --- a/scripts/codegen.sh +++ b/scripts/codegen.sh @@ -2,6 +2,6 @@ ROOT=$(realpath "$PWD/$(dirname "$0")/..") cd $ROOT cat resources/provider-header.txt > src/emoji/Provider.cpp -# cat resources/extra_emoji.txt resources/emoji-test.txt > resources/complete-emoji.txt -scripts/emoji_codegen.py resources/emoji-test.txt resources/shortcodes.txt >> src/emoji/Provider.cpp +cat resources/extra_emoji.txt resources/emoji-test.txt > resources/complete-emoji.txt +scripts/emoji_codegen.py resources/complete-emoji.txt resources/shortcodes.txt >> src/emoji/Provider.cpp cd - > /dev/null diff --git a/scripts/emoji_codegen.py b/scripts/emoji_codegen.py index 05b1d764..9dae1544 100755 --- a/scripts/emoji_codegen.py +++ b/scripts/emoji_codegen.py @@ -78,7 +78,7 @@ if __name__ == '__main__': continue - char, name = re.match(r'^(\S+) E\d+\.\d+ (.*)$', charAndName.strip()).groups() + char, name = re.match(r'^(\S+) E\d+\.\d+ (.*)$', charAndName).groups() shortname = name #TODO: Handle skintone modifiers in a sane way |