summaryrefslogtreecommitdiff
path: root/tex/context/base/node-rul.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-03-25 23:12:00 +0100
committerHans Hagen <pragma@wxs.nl>2010-03-25 23:12:00 +0100
commit41bb7ad440ec4b0d5c35e174792e3c4845313e7b (patch)
tree28bbc2b1363523f632f6dcbc8bc096072f77f5de /tex/context/base/node-rul.lua
parent28351dce705d3546bc4a67b554ee474d2f3cce4a (diff)
downloadcontext-41bb7ad440ec4b0d5c35e174792e3c4845313e7b.tar.gz
beta 2010.03.25 23:12
Diffstat (limited to 'tex/context/base/node-rul.lua')
-rw-r--r--tex/context/base/node-rul.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/node-rul.lua b/tex/context/base/node-rul.lua
index 17b7c7658..0ecb7107c 100644
--- a/tex/context/base/node-rul.lua
+++ b/tex/context/base/node-rul.lua
@@ -7,6 +7,7 @@ if not modules then modules = { } end modules ['node-rul'] = {
}
-- this will go to an auxiliary module
+-- beware: rules now have a dir field
local glyph = node.id("glyph")
local disc = node.id("disc")
@@ -85,7 +86,7 @@ local checkdir = true
-- we assume {glyphruns} and no funny extra kerning, ok, maybe we need
-- a dummy character as start and end; anyway we only collect glyphs
-local function process_words(attribute,data,flush,head,parent)
+local function process_words(attribute,data,flush,head,parent) -- we have hlistdir and local dir
local n = head
if n then
local f, l, a, d, i, level
@@ -215,7 +216,9 @@ local function flush_ruled(head,f,l,d,level,parent,strip) -- not that fast but a
insert_after(head,r,k)
end
if trace_ruled then
- logs.report("ruled", "level: %s, width: %s, nodes: %s, text: %s",level,w,n_tostring(f,l),n_tosequence(f,l,true))
+ logs.report("ruled", "level: %s, width: %i, height: %i, depth: %i, nodes: %s, text: %s",
+ level,w,ht,dp,n_tostring(f,l),n_tosequence(f,l,true))
+ -- level,r.width,r.height,r.depth,n_tostring(f,l),n_tosequence(f,l,true))
end
end
return head