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/generate_UCD_property_functions.py

    r4374 r4375  
    4444
    4545    def generate_property_file(self, filename_root, property_code, default_value = None):
    46        canonical_property_value_map = self.property_value_lookup_map[property_code]
    47        (prop_values, value_map) = parse_UCD_enumerated_property_map(property_code, filename_root + '.txt', canonical_property_value_map, default_value)
    48        for v in self.property_value_list[property_code]:
    49           if not v in prop_values:
    50              #raise Exception("Property %s value %s missing" % (self.full_name_map[property_code], v))
    51              print("Warning: property %s has no instance of value %s" % (self.full_name_map[property_code], v))
    52              value_map[v] = empty_uset()
     46       vlist = self.property_value_list[property_code]
     47       canon_map = self.property_value_lookup_map[property_code]
     48       (prop_values, value_map) = parse_UCD_enumerated_property_map(property_code, vlist, canon_map, filename_root + '.txt', default_value)
    5349       basename = os.path.basename(filename_root)
    5450       f = open(basename + ".pablo", "wb")
     
    6460       filename_root = 'ScriptExtensions'
    6561       property_code = 'scx'
    66        (prop_values, value_map) = parse_ScriptExtensions_txt(self.property_value_lookup_map['sc'])
     62       (prop_values, value_map) = parse_ScriptExtensions_txt(self.property_value_list['sc'], self.property_value_lookup_map['sc'])
    6763       basename = os.path.basename(filename_root)
    6864       f = open(basename + ".pablo", "wb")
Note: See TracChangeset for help on using the changeset viewer.