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:
Nicolas Werner 2020-06-13 02:19:53 +02:00
parent 3ea5a92b2a
commit a5bf16e9b7
3 changed files with 2128 additions and 1785 deletions

View file

@ -66,6 +66,7 @@ if __name__ == '__main__':
'Flags': flags
}
previous_name = ''
current_category = ''
for line in open(filename, 'r'):
if line.startswith('# group:'):
@ -80,16 +81,17 @@ if __name__ == '__main__':
code, qualification, charAndName = segments
# skip fully qualified versions of same unicode
if code.endswith('FE0F'):
continue
if qualification == 'component':
continue
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))
previous_name = name
# Use xclip to pipe the output to clipboard.
# 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