diff options
| author | Hans Hagen <pragma@wxs.nl> | 2009-09-16 20:07:00 +0200 | 
|---|---|---|
| committer | Hans Hagen <pragma@wxs.nl> | 2009-09-16 20:07:00 +0200 | 
| commit | 0c00e8e4486fe1cc526eee6df2e4b9b3ab0ba519 (patch) | |
| tree | 15c8fb964e9f4e860d509acc57e364c57ae584aa /scripts | |
| parent | 2527b228386c22af57e3d72a739c74930fd09eb6 (diff) | |
| download | context-0c00e8e4486fe1cc526eee6df2e4b9b3ab0ba519.tar.gz | |
beta 2009.09.16 20:07
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/context/lua/mtx-modules.lua | 4 | ||||
| -rw-r--r-- | scripts/context/lua/mtx-server-ctx-fonttest.lua | 2 | 
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}  | 
