mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-01 22:36:14 +00:00
Merge commit 'df247b7cab6e28e691e1db5b4abe7f0649e3b339'
This commit is contained in:
@@ -79,10 +79,7 @@ def isblank(data): # word separator
|
||||
return 0
|
||||
|
||||
def ispunct(data):
|
||||
if data.get('GeneralCategory', 'Cn')[0] in 'P':
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
return 1 if isgraph(data) and not isalnum(data) else 0
|
||||
|
||||
def isprint(data):
|
||||
if data.get('GeneralCategory', 'Cn')[0] in 'LMNPSZ': # not in 'CI'
|
||||
|
||||
Reference in New Issue
Block a user