Add tests for querying UCD properties; fix discovered issues.

This commit is contained in:
Reece H. Dunn
2012-12-22 12:18:49 +00:00
parent 9c3a87dbeb
commit ea09eb5c45
9 changed files with 7213 additions and 368 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ ucd_version = ucd_rootdir.split('-')[-1]
unicode_chars = {}
for data in ucd.parse_ucd_data(ucd_rootdir, 'UnicodeData'):
if isinstance(data['CodePoint'], ucd.CodePoint):
unicode_chars[data['CodePoint']] = data['GeneralCategory']
for codepoint in data['CodePoint']:
unicode_chars[codepoint] = data['GeneralCategory']
# This map is a combination of the information in the UnicodeData and Blocks
# data files. It is intended to reduce the number of character tables that