mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
tools/emoji: ignore U+FE0F emoji indicator characters when looking up translations
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ for filename in filenames:
|
||||
|
||||
for entry in read_emoji(emoji_dict):
|
||||
if isinstance(entry, Emoji):
|
||||
translation = annotations.get(entry.emoji, None)
|
||||
translation = annotations.get(entry.emoji.replace("\uFE0F", ""), None)
|
||||
if translation:
|
||||
length = len(entry.pronunciation.strip())
|
||||
tabs = entry.pronunciation.count('\t') - 1
|
||||
|
||||
Reference in New Issue
Block a user