mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-05 08:00:36 +00:00
Display the Unicode Character Database version in the generated file.
This commit is contained in:
+4
-1
@@ -22,6 +22,7 @@ import sys
|
||||
import ucd
|
||||
|
||||
ucd_rootdir = sys.argv[1]
|
||||
ucd_version = ucd_rootdir.split('-')[-1]
|
||||
|
||||
unicode_chars = {}
|
||||
for data in ucd.parse_ucd_data(ucd_rootdir, 'UnicodeData'):
|
||||
@@ -104,7 +105,9 @@ if __name__ == '__main__':
|
||||
#include <stddef.h>
|
||||
|
||||
using namespace ucd;
|
||||
""")
|
||||
|
||||
// Unicode Character Data %s
|
||||
""" % ucd_version)
|
||||
|
||||
for codepoints, category, comment in category_sets:
|
||||
if not category:
|
||||
|
||||
Reference in New Issue
Block a user