diff options
author | Marius <mariausol@gmail.com> | 2011-11-14 17:20:14 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-11-14 17:20:14 +0200 |
commit | 6a3e98888c40dceb7b66c71f0804c1294c3d254a (patch) | |
tree | 54ace0130a827ef1e752d8ba615115a4934f183e /tex | |
parent | 76fc10b7a163b01e548aba40b0509d3a7d657a41 (diff) | |
download | context-6a3e98888c40dceb7b66c71f0804c1294c3d254a.tar.gz |
beta 2011.11.14 16:17
Diffstat (limited to 'tex')
-rw-r--r-- | tex/context/base/back-exp.lua | 2 | ||||
-rw-r--r-- | tex/context/base/cont-new.mkii | 2 | ||||
-rw-r--r-- | tex/context/base/cont-new.mkiv | 2 | ||||
-rw-r--r-- | tex/context/base/context-version.pdf | bin | 4114 -> 4118 bytes | |||
-rw-r--r-- | tex/context/base/context-version.png | bin | 105939 -> 106296 bytes | |||
-rw-r--r-- | tex/context/base/context.mkii | 2 | ||||
-rw-r--r-- | tex/context/base/context.mkiv | 2 | ||||
-rw-r--r-- | tex/context/base/data-tex.lua | 12 | ||||
-rw-r--r-- | tex/context/base/file-job.mkvi | 2 | ||||
-rw-r--r-- | tex/context/base/status-files.pdf | bin | 24141 -> 24136 bytes | |||
-rw-r--r-- | tex/context/base/status-lua.pdf | bin | 168962 -> 168962 bytes | |||
-rw-r--r-- | tex/context/base/util-seq.lua | 13 | ||||
-rw-r--r-- | tex/generic/context/luatex/luatex-fonts-merged.lua | 2 |
13 files changed, 23 insertions, 16 deletions
diff --git a/tex/context/base/back-exp.lua b/tex/context/base/back-exp.lua index 98d87b1ee..6a05889c3 100644 --- a/tex/context/base/back-exp.lua +++ b/tex/context/base/back-exp.lua @@ -348,7 +348,7 @@ local function allusedstyles(xmlfile) -- result[#result+1] = format(documenttemplate,bodyfont,width,align,hyphen) -- - local colorspecification = xml.css.fontspecification + local colorspecification = xml.css.colorspecification local fontspecification = xml.css.fontspecification for element, details in sortedhash(usedstyles) do for detail, data in sortedhash(details) do diff --git a/tex/context/base/cont-new.mkii b/tex/context/base/cont-new.mkii index 566cae1f7..c23e3b4bf 100644 --- a/tex/context/base/cont-new.mkii +++ b/tex/context/base/cont-new.mkii @@ -11,7 +11,7 @@ %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. -\newcontextversion{2011.11.14 09:19} +\newcontextversion{2011.11.14 16:17} %D This file is loaded at runtime, thereby providing an %D excellent place for hacks, patches, extensions and new diff --git a/tex/context/base/cont-new.mkiv b/tex/context/base/cont-new.mkiv index 604a5ef3a..73c1f07fa 100644 --- a/tex/context/base/cont-new.mkiv +++ b/tex/context/base/cont-new.mkiv @@ -11,7 +11,7 @@ %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. -\newcontextversion{2011.11.14 09:19} +\newcontextversion{2011.11.14 16:17} %D This file is loaded at runtime, thereby providing an %D excellent place for hacks, patches, extensions and new diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf Binary files differindex 802c3ea9a..2f9f24c95 100644 --- a/tex/context/base/context-version.pdf +++ b/tex/context/base/context-version.pdf diff --git a/tex/context/base/context-version.png b/tex/context/base/context-version.png Binary files differindex 727bfaf25..2429baea6 100644 --- a/tex/context/base/context-version.png +++ b/tex/context/base/context-version.png diff --git a/tex/context/base/context.mkii b/tex/context/base/context.mkii index 9610d96ef..65bbc7e9a 100644 --- a/tex/context/base/context.mkii +++ b/tex/context/base/context.mkii @@ -20,7 +20,7 @@ %D your styles an modules. \edef\contextformat {\jobname} -\edef\contextversion{2011.11.14 09:19} +\edef\contextversion{2011.11.14 16:17} %D For those who want to use this: diff --git a/tex/context/base/context.mkiv b/tex/context/base/context.mkiv index e636dfa15..54a178193 100644 --- a/tex/context/base/context.mkiv +++ b/tex/context/base/context.mkiv @@ -20,7 +20,7 @@ %D your styles an modules. \edef\contextformat {\jobname} -\edef\contextversion{2011.11.14 09:19} +\edef\contextversion{2011.11.14 16:17} %D For those who want to use this: diff --git a/tex/context/base/data-tex.lua b/tex/context/base/data-tex.lua index bf4e30413..c2257296c 100644 --- a/tex/context/base/data-tex.lua +++ b/tex/context/base/data-tex.lua @@ -79,7 +79,7 @@ function helpers.textopener(tag,filename,filehandle,coding) lines = unicode.utf32_to_utf8_le(lines) else -- utf8 or unknown (could be a mkvi file) if textfileactions.dirty then -- maybe use autocompile - fileprocessor = sequencers.compile(textfileactions) + fileprocessor = sequencers.compile(textfileactions) -- no need for dummy test .. always one end lines = fileprocessor(lines,filename,coding) or lines lines = splitlines(lines) @@ -119,10 +119,14 @@ function helpers.textopener(tag,filename,filehandle,coding) -- elseif content == ctrl_d or ctrl_z then -- return nil -- we need this as \endinput does not work in prints else - if textlineactions.dirty then - lineprocessor = sequencers.compile(textlineactions) -- maybe use autocompile + if textlineactions.dirty then -- no dummy + lineprocessor = sequencers.compile(textlineactions,false,true) -- maybe use autocompile + end + if lineprocessor then + return lineprocessor(content,filename,currentline,noflines,coding) or content + else + return content end - return lineprocessor(content,filename,currentline,noflines,coding) or content end end end diff --git a/tex/context/base/file-job.mkvi b/tex/context/base/file-job.mkvi index a1a44608b..7f2c5b2fa 100644 --- a/tex/context/base/file-job.mkvi +++ b/tex/context/base/file-job.mkvi @@ -83,7 +83,7 @@ % document structure -\ifdefined\else \newcount\textlevel \fi % might go away +\ifdefined\textlevel\else \newcount\textlevel \fi % might go away \def\dostarttext {\glet\dostarttext\relax diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf Binary files differindex a2a2bc19b..08d46ae7d 100644 --- a/tex/context/base/status-files.pdf +++ b/tex/context/base/status-files.pdf diff --git a/tex/context/base/status-lua.pdf b/tex/context/base/status-lua.pdf Binary files differindex af6a60d9a..b889cde03 100644 --- a/tex/context/base/status-lua.pdf +++ b/tex/context/base/status-lua.pdf diff --git a/tex/context/base/util-seq.lua b/tex/context/base/util-seq.lua index 22733b022..3c5dc8ebb 100644 --- a/tex/context/base/util-seq.lua +++ b/tex/context/base/util-seq.lua @@ -176,9 +176,10 @@ local function construct(t,nodummy) end end t.dirty = false - if nodummy and #calls == 0 then + if nodummy and n == 0 then return nil else + -- n == 0 we could just return the variables variables = concat(variables,"\n") calls = concat(calls,"\n") if results then @@ -190,19 +191,21 @@ local function construct(t,nodummy) end end -sequencers.tostring = construct +sequencers.tostring = function(s) return construct(s,true) end sequencers.localize = localize local function compile(t,compiler,n) + local compiled if not t or type(t) == "string" then -- weird ... t.compiled = t .. so return false elseif compiler then - t.compiled = compiler(t,n) + compiled = compiler(t,n) else - t.compiled = construct(t) + compiled = construct(t,n) end - local runner = loadstring(t.compiled)() + local runner = compiled and loadstring(compiled)() + t.compiled = compiled t.runner = runner return runner -- faster end diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua index b55a7ba4d..f55ca3ce1 100644 --- a/tex/generic/context/luatex/luatex-fonts-merged.lua +++ b/tex/generic/context/luatex/luatex-fonts-merged.lua @@ -1,6 +1,6 @@ -- merged file : luatex-fonts-merged.lua -- parent file : luatex-fonts.lua --- merge date : 11/14/11 09:19:24 +-- merge date : 11/14/11 16:17:52 do -- begin closure to overcome local limits and interference |