summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/amiri/tools/runtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/amiri/tools/runtest.py')
-rwxr-xr-xMaster/texmf-dist/doc/fonts/amiri/tools/runtest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/fonts/amiri/tools/runtest.py b/Master/texmf-dist/doc/fonts/amiri/tools/runtest.py
index 4ea7ff34076..3b4f24f6e18 100755
--- a/Master/texmf-dist/doc/fonts/amiri/tools/runtest.py
+++ b/Master/texmf-dist/doc/fonts/amiri/tools/runtest.py
@@ -36,8 +36,10 @@ def runTest(test, font):
def initTest(test, font):
out = ""
for row in test:
+ text = row[4]
+ row[4] = ('\\' in row[4]) and row[4].decode('unicode-escape') or row[4]
result = runHB(row, font)
- out += "%s;%s\n" %(";".join(row), result)
+ out += "%s;%s;%s\n" %(";".join(row[:4]), text, result)
return out
@@ -59,9 +61,9 @@ if __name__ == '__main__':
test.append(row)
if init:
+ fontname = 'amiri-regular.ttf'
outname = testname+".test"
outfd = open(outname, "w")
- outfd.write("# %s\n" %fontname)
outfd.write(initTest(test, fontname))
outfd.close()
sys.exit(0)