Browse Source

printdata: create an isspace helper function

master
Reece H. Dunn 8 years ago
parent
commit
e77b7c7b49
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      tools/printdata.py

+ 4
- 1
tools/printdata.py View File

@@ -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)))

Loading…
Cancel
Save