Ignore:
Timestamp:
Sep 7, 2016, 11:54:14 AM (2 years ago)
Author:
cameron
Message:

Updates for Unicode 9.0; clean-ups

File:
1 edited

Legend:

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

    r4948 r5143  
    99#
    1010import re, string, os.path
     11import UCD_config
    1112from unicode_set import *
    12 
    13 UCD_dir = "8.0.0"
    14 def set_UCD_dir(d):
    15     global UCD_dir
    16     UCD_dir = d
    1713
    1814trivial_name_char_re = re.compile('[-_\s]')
     
    3935    property_kind_map = {}
    4036    property_kind = "unspecified"
    41     f = open(UCD_dir + "/" + 'PropertyAliases.txt')
     37    f = open(UCD_config.UCD_src_dir + "/" + 'PropertyAliases.txt')
    4238    lines = f.readlines()
    4339    for t in lines:
     
    8682    property_value_lookup_map = {}
    8783    missing_specs = {}
    88     f = open(UCD_dir + "/" + 'PropertyValueAliases.txt')
     84    f = open(UCD_config.UCD_src_dir + "/" + 'PropertyValueAliases.txt')
    8985    lines = f.readlines()
    9086    for t in lines:
     
    168164    value_map = {}
    169165    name_list_order = []
    170     f = open(UCD_dir + "/" + mapfile)
     166    f = open(UCD_config.UCD_src_dir + "/" + mapfile)
    171167    lines = f.readlines()
    172168    for t in lines:
     
    256252    value_map = {}
    257253    name_list_order = []
    258     f = open(UCD_dir + "/" + mapfile)
     254    f = open(UCD_config.UCD_src_dir + "/" + mapfile)
    259255    lines = f.readlines()
    260256    for t in lines:
     
    286282def parse_UnicodeData_txt():
    287283   data_records = []
    288    f = open(UCD_dir + "/UnicodeData.txt")
     284   f = open(UCD_config.UCD_src_dir + "/UnicodeData.txt")
    289285   lines = f.readlines()
    290286   for t in lines:
Note: See TracChangeset for help on using the changeset viewer.