|
|
|
@ -77,15 +77,13 @@ if __name__ == '__main__': |
|
|
|
|
if qualification != 'fully-qualified': |
|
|
|
|
continue |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char, name = re.match(r'^(\S+) E\d+\.\d+ (.*)$', charAndName).groups() |
|
|
|
|
shortname = name |
|
|
|
|
# until skin tone is handled, keep them around |
|
|
|
|
# discard skin tone variants for sanity |
|
|
|
|
# __contains__ is so stupid i hate prototype languages |
|
|
|
|
# if name.__contains__("skin tone") and qualification != 'component': |
|
|
|
|
## discard skin tone variants for sanity |
|
|
|
|
# if "skin tone" in name and qualification != 'component': |
|
|
|
|
# continue |
|
|
|
|
# if qualification == 'component' and not name.__contains__("skin tone"): |
|
|
|
|
# if qualification == 'component' and not "skin tone" in name: |
|
|
|
|
# continue |
|
|
|
|
#TODO: Handle skintone modifiers in a sane way |
|
|
|
|
basicallyTheSame = False |
|
|
|
@ -133,6 +131,6 @@ if __name__ == '__main__': |
|
|
|
|
categories[current_category].append(Emoji(code, shortname, name)) |
|
|
|
|
|
|
|
|
|
# Use xclip to pipe the output to clipboard. |
|
|
|
|
# e.g ./codegen.py emoji.json | xclip -sel clip |
|
|
|
|
# alternatively - delete the var from src/emoji/Provider.cpp, and do ./codegen.py emojis shortcodes >> src/emoji/Provider.cpp |
|
|
|
|
# e.g ./emoji_codegen.py emoji.json | xclip -sel clip |
|
|
|
|
# alternatively - delete the var from src/emoji/Provider.cpp, and do ./codegen.sh emojis shortcodes >> ../src/emoji/Provider.cpp |
|
|
|
|
generate_qml_list(people=people, nature=nature, food=food, activity=activity, travel=travel, objects=objects, symbols=symbols, flags=flags) |
|
|
|
|