mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-01 06:27:54 +00:00
Add tests for querying UCD properties; fix discovered issues.
This commit is contained in:
+2
-2
@@ -26,8 +26,8 @@ ucd_version = ucd_rootdir.split('-')[-1]
|
||||
|
||||
unicode_chars = {}
|
||||
for data in ucd.parse_ucd_data(ucd_rootdir, 'UnicodeData'):
|
||||
if isinstance(data['CodePoint'], ucd.CodePoint):
|
||||
unicode_chars[data['CodePoint']] = data['GeneralCategory']
|
||||
for codepoint in data['CodePoint']:
|
||||
unicode_chars[codepoint] = data['GeneralCategory']
|
||||
|
||||
# This map is a combination of the information in the UnicodeData and Blocks
|
||||
# data files. It is intended to reduce the number of character tables that
|
||||
|
||||
Reference in New Issue
Block a user