Try to use the FE0F variant of emoji

That should always render the image variant instead of the black and
white variant.
bw-emoji-fixes
Nicolas Werner 5 years ago
parent 3ea5a92b2a
commit a5bf16e9b7
  1. 12
      scripts/emoji_codegen.py
  2. 1951
      src/emoji/Provider.cpp
  3. 1950
      src/emoji/Provider_new.cpp

@ -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
@ -101,4 +103,4 @@ if __name__ == '__main__':
generate_code(objects, 'objects')
generate_code(symbols, 'symbols')
generate_code(flags, 'flags')
generate_qml_list(people=people, nature=nature, food=food, activity=activity, travel=travel, objects=objects, symbols=symbols, flags=flags)
generate_qml_list(people=people, nature=nature, food=food, activity=activity, travel=travel, objects=objects, symbols=symbols, flags=flags)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save