summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/strc-reg.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/strc-reg.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/strc-reg.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/context/base/strc-reg.lua b/Master/texmf-dist/tex/context/base/strc-reg.lua
index c19ae12d65c..6da58345bf5 100644
--- a/Master/texmf-dist/tex/context/base/strc-reg.lua
+++ b/Master/texmf-dist/tex/context/base/strc-reg.lua
@@ -7,7 +7,7 @@ if not modules then modules = { } end modules ['strc-reg'] = {
}
local next, type = next, type
-local texwrite, texcount = tex.write, tex.count
+local texcount = tex.count
local format, gmatch = string.format, string.gmatch
local equal, concat, remove = table.are_equal, table.concat, table.remove
local utfchar = utf.char
@@ -24,14 +24,14 @@ local helpers = structures.helpers
local sections = structures.sections
local documents = structures.documents
local pages = structures.pages
-local processors = structures.processors
local references = structures.references
local mappings = sorters.mappings
local entries = sorters.entries
local replacements = sorters.replacements
-local processor_split = processors.split
+local processors = typesetters.processors
+local splitprocessor = processors.split
local variables = interfaces.variables
local context = context
@@ -227,7 +227,7 @@ end
registers.define = allocate
-local entrysplitter = lpeg.Ct(lpeg.splitat('+')) -- & obsolete in mkiv
+local entrysplitter = lpeg.tsplitat('+') -- & obsolete in mkiv
local tagged = { }
@@ -240,13 +240,13 @@ local function preprocessentries(rawdata)
if type(e) == "table" then
et = e
else
- entryproc, e = processor_split(e)
+ entryproc, e = splitprocessor(e)
et = lpegmatch(entrysplitter,e)
end
if type(k) == "table" then
kt = k
else
- pageproc, k = processor_split(k)
+ pageproc, k = splitprocessor(k)
kt = lpegmatch(entrysplitter,k)
end
entries = { }
@@ -276,7 +276,7 @@ function registers.store(rawdata) -- metadata, references, entries
data[#data+1] = rawdata
local label = references.label
if label and label ~= "" then tagged[label] = #data end
- texwrite(#data)
+ context(#data)
end
function registers.enhance(name,n)
@@ -847,7 +847,7 @@ function registers.flush(data,options,prefixspec,pagespec)
end
function registers.analyze(class,options)
- texwrite(registers.analyzed(class,options))
+ context(registers.analyzed(class,options))
end
function registers.process(class,...)