mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
tools: support espeak-ng based annotations files
This commit is contained in:
+5
-3
@@ -76,13 +76,15 @@ cldr_path = sys.argv[3]
|
|||||||
|
|
||||||
filenames = [
|
filenames = [
|
||||||
os.path.join(cldr_path, "common", "annotations", "{0}.xml".format(lang)),
|
os.path.join(cldr_path, "common", "annotations", "{0}.xml".format(lang)),
|
||||||
os.path.join(cldr_path, "common", "annotationsDerived", "{0}.xml".format(lang))
|
os.path.join(cldr_path, "common", "annotationsDerived", "{0}.xml".format(lang)),
|
||||||
|
os.path.join("data", "annotationsEspeak", "{0}.xml".format(lang))
|
||||||
]
|
]
|
||||||
|
|
||||||
annotations = {}
|
annotations = {}
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
for cp, name in read_annotations(filename):
|
if os.path.exists(filename):
|
||||||
annotations[cp] = name
|
for cp, name in read_annotations(filename):
|
||||||
|
annotations[cp] = name
|
||||||
|
|
||||||
for entry in read_emoji(emoji_dict):
|
for entry in read_emoji(emoji_dict):
|
||||||
if isinstance(entry, Emoji):
|
if isinstance(entry, Emoji):
|
||||||
|
|||||||
Reference in New Issue
Block a user