From f7ee609d470a08a16e5cdaad14582fc8ed993c5e Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Thu, 21 Sep 2017 21:43:12 +0200 Subject: 2017-09-21 21:10:00 --- scripts/context/lua/mtx-context.lua | 9 ++++++- scripts/context/lua/mtx-server-ctx-fonttest.lua | 35 +++++++++++++++++++------ scripts/context/lua/mtxrun.lua | 2 +- scripts/context/stubs/mswin/mtxrun.lua | 2 +- scripts/context/stubs/unix/mtxrun | 2 +- scripts/context/stubs/win64/mtxrun.lua | 2 +- 6 files changed, 39 insertions(+), 13 deletions(-) (limited to 'scripts') diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua index 02d942eb0..c02b1a012 100644 --- a/scripts/context/lua/mtx-context.lua +++ b/scripts/context/lua/mtx-context.lua @@ -755,7 +755,10 @@ function scripts.context.run(ctxdata,filename) if formatfile and scriptfile then local suffix = validstring(getargument("suffix")) local resultname = validstring(getargument("result")) - if suffix then + local resultpath = file.pathpart(resultname) + if resultpath ~= "" then + resultname = nil + elseif suffix then resultname = removesuffix(jobname) .. suffix end local oldbase = "" @@ -962,6 +965,10 @@ function scripts.context.run(ctxdata,filename) result_save_keep(oldbase,newbase) end report("result renamed to: %s",newbase) + elseif resultpath ~= "" then + report() + report("results are to be on the running path, not on %a, ignoring --result",resultpath) + report() end -- -- -- needs checking diff --git a/scripts/context/lua/mtx-server-ctx-fonttest.lua b/scripts/context/lua/mtx-server-ctx-fonttest.lua index ab324d3cb..d5437587b 100644 --- a/scripts/context/lua/mtx-server-ctx-fonttest.lua +++ b/scripts/context/lua/mtx-server-ctx-fonttest.lua @@ -9,17 +9,36 @@ if not modules then modules = { } end modules ['mtx-server-ctx-fonttest'] = { -- probably too much but who cares dofile(resolvers.findfile("trac-lmx.lua","tex")) +dofile(resolvers.findfile("char-def.lua","tex")) + dofile(resolvers.findfile("font-ini.lua","tex")) +dofile(resolvers.findfile("font-log.lua","tex")) dofile(resolvers.findfile("font-con.lua","tex")) --- dofile(resolvers.findfile("font-oti.lua","tex")) --- dofile(resolvers.findfile("font-otf.lua","tex")) --- dofile(resolvers.findfile("font-otp.lua","tex")) +dofile(resolvers.findfile("font-cft.lua","tex")) +dofile(resolvers.findfile("font-enc.lua","tex")) +dofile(resolvers.findfile("font-agl.lua","tex")) +dofile(resolvers.findfile("font-cid.lua","tex")) +dofile(resolvers.findfile("font-map.lua","tex")) dofile(resolvers.findfile("font-otr.lua","tex")) +dofile(resolvers.findfile("font-web.lua","tex")) dofile(resolvers.findfile("font-cff.lua","tex")) --- dofile(resolvers.findfile("font-ttf.lua","tex")) --- dofile(resolvers.findfile("font-ott.lua","tex")) +dofile(resolvers.findfile("font-ttf.lua","tex")) dofile(resolvers.findfile("font-dsp.lua","tex")) +dofile(resolvers.findfile("font-hsh.lua","tex")) +dofile(resolvers.findfile("font-oti.lua","tex")) +dofile(resolvers.findfile("font-ott.lua","tex")) +dofile(resolvers.findfile("font-otl.lua","tex")) +-- dofile(resolvers.findfile("font-oto.lua","tex")) +-- dofile(resolvers.findfile("font-otj.lua","tex")) +dofile(resolvers.findfile("font-oup.lua","tex")) +-- dofile(resolvers.findfile("font-ots.lua","tex")) +-- dofile(resolvers.findfile("font-otd.lua","tex")) +-- dofile(resolvers.findfile("font-otc.lua","tex")) +-- dofile(resolvers.findfile("font-oth.lua","tex")) +-- dofile(resolvers.findfile("font-osd.lua","tex")) +-- dofile(resolvers.findfile("font-ocl.lua","tex")) dofile(resolvers.findfile("font-onr.lua","tex")) + dofile(resolvers.findfile("font-syn.lua","tex")) dofile(resolvers.findfile("font-mis.lua","tex")) @@ -102,7 +121,7 @@ local javascripts = formatters [ [[ function selected_radio(name) { var form = document.forms["main-form"] ; var script = form.elements[name] ; - if (script) { + if (script) { var n = script.length ; if (n) { for (var i=0; i