diff options
Diffstat (limited to 'tex/context/base/mkiv/anch-pgr.lua')
-rw-r--r-- | tex/context/base/mkiv/anch-pgr.lua | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/tex/context/base/mkiv/anch-pgr.lua b/tex/context/base/mkiv/anch-pgr.lua index 5e111fcdf..8a63c5b54 100644 --- a/tex/context/base/mkiv/anch-pgr.lua +++ b/tex/context/base/mkiv/anch-pgr.lua @@ -188,7 +188,7 @@ local function registerbackground(name) } texsetattribute(a_textbackground,n) if not enabled then - nodes.tasks.enableaction("contributers", "nodes.handlers.bck") + nodes.tasks.enableaction("contributers", "nodes.handlers.textbackgrounds") enabled = true end else @@ -196,24 +196,22 @@ local function registerbackground(name) end end -local function collectbackgrounds(r,n) +-- local function collectbackgrounds(r,n) -- if enabled then -- local parent = getbox(n) -- local head = getlist(parent) -- realpage = r -- processranges(a_textbackground,flush,head) -- ,parent) -- end -end - -interfaces.implement { - name = "collectbackgrounds", - actions = collectbackgrounds, - arguments = { "integer", "integer" } -} - ----------------------------------------------------------------------------------------- +-- end +-- +-- interfaces.implement { +-- name = "collectbackgrounds", +-- actions = collectbackgrounds, +-- arguments = { "integer", "integer" } +-- } -nodes.handlers.bck = function(head,where,parent) -- we have hlistdir and local dir +nodes.handlers.textbackgrounds = function(head,where,parent) -- we have hlistdir and local dir -- todo enable action in register head = tonut(head) index = index + 1 @@ -221,11 +219,6 @@ nodes.handlers.bck = function(head,where,parent) -- we have hlistdir and local d return tonode(head), done end -nodes.tasks.appendaction("contributers", "normalizers", "nodes.handlers.bck") -nodes.tasks.disableaction("contributers", "nodes.handlers.bck") - ----------------------------------------------------------------------------------------- - interfaces.implement { name = "registerbackground", actions = registerbackground, |