Changeset 4634 for proto


Ignore:
Timestamp:
Jul 2, 2015, 6:52:46 PM (4 years ago)
Author:
cameron
Message:

Generate code to treat scx as an Extension Property

Location:
proto/charsetcompiler/UCD
Files:
2 edited

Legend:

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

    r4632 r4634  
    5656        for a in prop_aliases: property_lookup_map[canonicalize(a)] = prop_enum
    5757        property_kind_map[prop_enum] = property_kind
     58    #
     59    # Override the property kind for scx
     60    property_kind_map['scx'] = 'Extension'
     61    print property_kind_map
    5862    return (property_enum_name_list, full_name_map, property_lookup_map, property_kind_map)
    5963
  • proto/charsetcompiler/UCD/UCD_properties.py

    r4632 r4634  
    147147            f.write(value_map[v].showC(12) + ";\n")
    148148        set_list = ['&%s_Ext' % v.lower() for v in self.property_value_list['sc']]
    149         f.write("        static EnumeratedPropertyObject property_object\n")
     149        f.write("        static ExtensionPropertyObject property_object\n")
    150150        f.write("       {%s,\n" % property_code)
    151         f.write("        SCX_ns::enum_names,\n")
    152         f.write("        SCX_ns::value_names,\n")
    153         f.write("        SCX_ns::aliases_only_map,\n")
     151        f.write("        UCD::sc,\n")
    154152        f.write("       {")
    155153        f.write(cformat.multiline_fill(set_list, ',', 8))
Note: See TracChangeset for help on using the changeset viewer.