Support enabling the CSUR data.

This commit is contained in:
Reece H. Dunn
2014-11-08 11:11:19 +00:00
parent 4bfa9e5cf6
commit bcf8be59b3
6 changed files with 45 additions and 5 deletions
+5
View File
@@ -28,6 +28,11 @@ unicode_chars = {}
for data in ucd.parse_ucd_data(ucd_rootdir, 'Scripts'):
for codepoint in data['Range']:
unicode_chars[codepoint] = data['Script']
if '--with-csur' in sys.argv:
for csur in ['Klingon']:
for data in ucd.parse_ucd_data('data/csur', csur):
for codepoint in data['CodePoint']:
unicode_chars[codepoint] = data['Script']
# 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