mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Try to use the FE0F variant of emoji
That should always render the image variant instead of the black and white variant.
This commit is contained in:
parent
3ea5a92b2a
commit
a5bf16e9b7
3 changed files with 2128 additions and 1785 deletions
|
@ -66,6 +66,7 @@ if __name__ == '__main__':
|
||||||
'Flags': flags
|
'Flags': flags
|
||||||
}
|
}
|
||||||
|
|
||||||
|
previous_name = ''
|
||||||
current_category = ''
|
current_category = ''
|
||||||
for line in open(filename, 'r'):
|
for line in open(filename, 'r'):
|
||||||
if line.startswith('# group:'):
|
if line.startswith('# group:'):
|
||||||
|
@ -80,16 +81,17 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
code, qualification, charAndName = segments
|
code, qualification, charAndName = segments
|
||||||
|
|
||||||
# skip fully qualified versions of same unicode
|
|
||||||
if code.endswith('FE0F'):
|
|
||||||
continue
|
|
||||||
|
|
||||||
if qualification == 'component':
|
if qualification == 'component':
|
||||||
continue
|
continue
|
||||||
|
|
||||||
char, name = re.match(r'^(\S+) E\d+\.\d+ (.*)$', charAndName).groups()
|
char, name = re.match(r'^(\S+) E\d+\.\d+ (.*)$', charAndName).groups()
|
||||||
|
|
||||||
|
# skip less fully qualified versions of same unicode
|
||||||
|
if name == previous_name:
|
||||||
|
continue
|
||||||
|
|
||||||
categories[current_category].append(Emoji(char, name))
|
categories[current_category].append(Emoji(char, name))
|
||||||
|
previous_name = name
|
||||||
|
|
||||||
# Use xclip to pipe the output to clipboard.
|
# Use xclip to pipe the output to clipboard.
|
||||||
# e.g ./codegen.py emoji.json | xclip -sel clip
|
# e.g ./codegen.py emoji.json | xclip -sel clip
|
||||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue