mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 05:35:35 +00:00
printdata: create an isspace helper function
This commit is contained in:
+4
-1
@@ -41,6 +41,9 @@ if '--with-csur' in sys.argv:
|
||||
for codepoint in data['CodePoint']:
|
||||
unicode_chars[codepoint] = data
|
||||
|
||||
def isspace(data):
|
||||
return data.get('White_Space', 0)
|
||||
|
||||
null = ucd.CodePoint('0000')
|
||||
if __name__ == '__main__':
|
||||
for codepoint in ucd.CodeRange('000000..10FFFF'):
|
||||
@@ -59,4 +62,4 @@ if __name__ == '__main__':
|
||||
codepoint, script,
|
||||
data.get('GeneralCategory', 'Cn')[0], data.get('GeneralCategory', 'Cn'),
|
||||
upper, lower, title,
|
||||
data.get('White_Space', 0)))
|
||||
isspace(data)))
|
||||
|
||||
Reference in New Issue
Block a user