Ignore:
Timestamp:
Dec 30, 2014, 12:06:48 PM (4 years ago)
Author:
cameron
Message:

Update to UCD 7.0.0, have UCD parsers return totally-defined value maps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/charsetcompiler/UCD/UCD_properties.py

    r4368 r4375  
    111111 
    112112    def generate_property_value_file(self, filename_root, property_code, default_value = None):
    113        canonical_property_value_map = self.property_value_lookup_map[property_code]
    114        (prop_values, value_map) = parse_UCD_enumerated_property_map(property_code, filename_root + '.txt', canonical_property_value_map, default_value)
    115        for v in self.property_value_list[property_code]:
    116           if not v in prop_values:
    117              #raise Exception("Property %s value %s missing" % (self.full_name_map[property_code], v))
    118              print("Warning: property %s has no instance of value %s" % (self.full_name_map[property_code], v))
    119              value_map[v] = empty_uset()
     113       vlist = self.property_value_list[property_code]
     114       canon_map = self.property_value_lookup_map[property_code]
     115       (prop_values, value_map) = parse_UCD_enumerated_property_map(property_code, vlist, canon_map, filename_root + '.txt', default_value)
    120116       basename = os.path.basename(filename_root)
    121117       f = cformat.open_header_file_for_write(os.path.basename(filename_root))
     
    142138       filename_root = 'ScriptExtensions'
    143139       property_code = 'scx'
    144        (prop_values, value_map) = parse_ScriptExtensions_txt(self.property_value_lookup_map['sc'])
     140       (prop_values, value_map) = parse_ScriptExtensions_txt(self.property_value_list['sc'], self.property_value_lookup_map['sc'])
    145141       basename = os.path.basename(filename_root)
    146142       f = cformat.open_header_file_for_write(basename)
Note: See TracChangeset for help on using the changeset viewer.