mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-15 01:54:46 +00:00
isalpha: use the Alphabetic derived core property to check that the character is in the alpha class.
This commit is contained in:
+1
-4
@@ -95,10 +95,7 @@ def isalnum(data):
|
||||
return 0
|
||||
|
||||
def isalpha(data):
|
||||
if data.get('GeneralCategory', 'Cn')[0] in 'L':
|
||||
return 1
|
||||
else:
|
||||
return 0
|
||||
return data.get('Alphabetic', 0)
|
||||
|
||||
def isupper(data):
|
||||
if data.get('Uppercase', 0):
|
||||
|
||||
Reference in New Issue
Block a user