def generate_ttc_zips_with_7za():

    # The font family code skips the ttc files, but we want them in the
    # package directory. Instead of mucking with the family code to add the ttcs
    # and then exclude them from the other handling, we'll just handle them
    # separately.
    # For now at least, the only .ttc fonts are the CJK fonts

    pkg_dir = path.join(OUTPUT_DIR, 'pkgs')
    tool_utils.ensure_dir_exists(pkg_dir)
    filenames = [path.basename(f) for f in os.listdir(CJK_DIR) if f.endswith('.ttc')]
    for filename in filenames:
        zip_basename = filename + '.zip'
        zip_path = path.join(pkg_dir, zip_basename)
        if path.isfile(zip_path):
            print("Continue: assuming built %s is valid." % zip_basename)
            continue
        oldsize = os.stat(path.join(CJK_DIR, filename)).st_size
        pairs = [(path.join(CJK_DIR, filename), filename),
                 (SIL_LICENSE_LOC, 'LICENSE_CJK.txt')]
        tool_utils.generate_zip_with_7za_from_filepairs(pairs, zip_path)
        newsize = os.stat(zip_path).st_size
        print "Wrote " + zip_path
        print 'Compressed from {0:,}B to {1:,}B.'.format(oldsize, newsize)
    shutil.copy2(path.join(CJK_DIR, 'NotoSansCJK.ttc.zip'),
                 path.join(pkg_dir, 'NotoSansCJK.ttc.zip'))
Columns from the alternatives table that are used for filtering.
dataset/ETHPy150Open googlei18n/nototools/nototools/generate_website_data.py/generate_ttc_zips_with_7za--crossover with--dataset/ETHPy150Open UDST/urbansim/urbansim/models/dcm.py/SegmentedMNLDiscreteChoiceModel.alts_columns_used