summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtx-modules.lua4
-rw-r--r--scripts/context/lua/mtx-server-ctx-fonttest.lua2
2 files changed, 4 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-modules.lua b/scripts/context/lua/mtx-modules.lua
index 65d9330ba..1a6593004 100644
--- a/scripts/context/lua/mtx-modules.lua
+++ b/scripts/context/lua/mtx-modules.lua
@@ -40,16 +40,18 @@ local function source_to_ted(inpname,outname,filetype)
local inp = io.open(inpname)
if not inp then
logs.simple("unable to open '%s'",inpname)
+ return
end
local out = io.open(outname,"w")
if not out then
logs.simple("unable to open '%s'",outname)
+ return
end
logs.simple("converting '%s' to '%s'",inpname,outname)
local skiplevel, indocument, indefinition = 0, false, false
out:write(format("\\startmodule[type=%s]\n",filetype or file.suffix(inpname)))
for line in inp:lines() do
- line = strip(line)
+--~ line = strip(line)
if find(line,"^%%D ") or find(line,"^%%D$") then
if skiplevel == 0 then
local someline = (#line < 3 and "") or sub(line,4,#line)
diff --git a/scripts/context/lua/mtx-server-ctx-fonttest.lua b/scripts/context/lua/mtx-server-ctx-fonttest.lua
index f593c2e35..f3a5d7690 100644
--- a/scripts/context/lua/mtx-server-ctx-fonttest.lua
+++ b/scripts/context/lua/mtx-server-ctx-fonttest.lua
@@ -30,7 +30,7 @@ local process_templates = { }
process_templates.default = [[
\starttext
\setcharactermirroring[1]
- \definefontfeature[sample][%s]
+ \definefontfeature[sample][analyse=yes,%s]
\definedfont[name:%s*sample]
\startTEXpage[offset=3pt]
\detokenize{%s}