Normalize emojis to a smaller namespace. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit b921b64837ddfe812eb2c35cfa19832a695ce484
(DIR) parent 62cfc632853c126969512f59776683bf21da7e98
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
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(-)
---
(DIR) 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(" ", "-"))