isupper: include the Other_Uppercase characters.

This commit is contained in:
Reece H. Dunn
2017-02-12 14:51:24 +00:00
parent d956501863
commit 1fc20f39f5
2 changed files with 20 additions and 4 deletions
+4 -2
View File
@@ -100,9 +100,11 @@ def isalpha(data):
return 0
def isupper(data):
if data.get('LowerCase', null) != null:
if data.get('GeneralCategory', 'Cn') == 'Lu':
return 1
elif data.get('GeneralCategory', 'Cn') == 'Lu':
elif data.get('Other_Uppercase', 0):
return 1
elif data.get('LowerCase', null) != null: # Some Lt characters have lowercase forms.
return 1
else:
return 0