Exemplo n.º 1
0
def _gsub(path_a, path_b, out_lines, print_font=False):
    """Do a GSUB table comparison and print results.

    path_a and b refer to plaintext files containing ttxn output. print_font
    is a boolean flag designating whether to print path_a (useful if _gsub is
    being called multiple times in succession).
    """

    if print_font:
        print '-- %s --' % os.path.basename(path_a)
    diff_finder = gsub_diff.GsubDiffFinder(path_a, path_b, out_lines)
    print diff_finder.find_gsub_diffs()
    print
Exemplo n.º 2
0
def _gsub(path_a, path_b, out_lines, print_font=False):
    """Do a GSUB table comparison and print results.

    path_a and b refer to binaries from which ttxn output is made. print_font
    is a boolean flag designating whether to print path_a (useful if _gsub is
    being called multiple times in succession).
    """

    if print_font:
        print("-- %s --" % os.path.basename(path_a))
    diff_finder = gsub_diff.GsubDiffFinder(path_a, path_b, out_lines)
    print(diff_finder.find_gsub_diffs())
    print()