Normalize emojis to a smaller namespace. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit b921b64837ddfe812eb2c35cfa19832a695ce484 | |
parent 62cfc632853c126969512f59776683bf21da7e98 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sat, 2 Jul 2022 08:45:03 +0200 | |
Normalize emojis to a smaller namespace. | |
Diffstat: | |
M dalle-gen-emoji | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git a/dalle-gen-emoji b/dalle-gen-emoji | |
@@ -38,6 +38,7 @@ def main(args): | |
emoji = emoji.strip("::") | |
emoji = emoji.replace(":", " ").replace(",", " ").replace("=", " ").\ | |
replace(".", " ").replace("/", " ") | |
+ emoji = emoji.lower() | |
emojifile = "%s.jpg" % (emoji.replace(" ", "-")) | |