summaryrefslogtreecommitdiff
path: root/tex/context/base/node-pro.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/node-pro.lua')
-rw-r--r--tex/context/base/node-pro.lua30
1 files changed, 3 insertions, 27 deletions
diff --git a/tex/context/base/node-pro.lua b/tex/context/base/node-pro.lua
index b98292abb..aa6692d7b 100644
--- a/tex/context/base/node-pro.lua
+++ b/tex/context/base/node-pro.lua
@@ -66,36 +66,12 @@ processors.tracer = tracer
processors.enabled = true -- this will become a proper state (like trackers)
--- function processors.pre_linebreak_filter(head,groupcode,size,packtype,direction)
--- local first, found = first_glyph(head) -- they really need to be glyphs
--- if found then
--- if trace_callbacks then
--- local before = nodes.count(head,true)
--- local head, done = actions(head,groupcode,size,packtype,direction) -- todo : pass first
--- local after = nodes.count(head,true)
--- if done then
--- tracer("pre_linebreak","changed",head,groupcode,before,after,true)
--- else
--- tracer("pre_linebreak","unchanged",head,groupcode,before,after,true)
--- end
--- return done and head or true
--- else
--- local head, done = actions(head,groupcode,size,packtype,direction) -- todo : pass first
--- return done and head or true
--- end
--- elseif trace_callbacks then
--- local n = nodes.count(head,false)
--- tracer("pre_linebreak","no chars",head,groupcode,n,n)
--- end
--- return true
--- end
-
-function processors.pre_linebreak_filter(head,groupcode)
+function processors.pre_linebreak_filter(head,groupcode) -- ,size,packtype,direction
local first, found = first_glyph(head) -- they really need to be glyphs
if found then
if trace_callbacks then
local before = nodes.count(head,true)
- local head, done = actions(head,groupcode)
+ local head, done = actions(head,groupcode) -- ,size,packtype,direction
local after = nodes.count(head,true)
if done then
tracer("pre_linebreak","changed",head,groupcode,before,after,true)
@@ -104,7 +80,7 @@ function processors.pre_linebreak_filter(head,groupcode)
end
return done and head or true
else
- local head, done = actions(head,groupcode)
+ local head, done = actions(head,groupcode) -- ,size,packtype,direction
return done and head or true
end
elseif trace_callbacks then