summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/trac-vis.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2016-10-12 20:30:59 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-10-12 20:30:59 +0200
commit1964c078d21c5f1d19a84fa6ef5c038f8ee80652 (patch)
tree833b3c9c678bcc7043560ab2e83daeeb395d6d7c /tex/context/base/mkiv/trac-vis.lua
parent236690a6367b25187d37013e1e7fc196c5c44eb8 (diff)
downloadcontext-1964c078d21c5f1d19a84fa6ef5c038f8ee80652.tar.gz
2016-10-12 17:32:00
Diffstat (limited to 'tex/context/base/mkiv/trac-vis.lua')
-rw-r--r--tex/context/base/mkiv/trac-vis.lua18
1 files changed, 13 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/trac-vis.lua b/tex/context/base/mkiv/trac-vis.lua
index ef73d2182..27ec38f42 100644
--- a/tex/context/base/mkiv/trac-vis.lua
+++ b/tex/context/base/mkiv/trac-vis.lua
@@ -508,9 +508,13 @@ end)
local function ruledbox(head,current,vertical,layer,what,simple,previous,trace_origin,parent)
local wd = getfield(current,"width")
if wd ~= 0 then
- local ht = getfield(current,"height")
- local dp = getfield(current,"depth")
+ local ht = getfield(current,"height")
+ local dp = getfield(current,"depth")
local shift = getfield(current,"shift")
+ local dir = getfield(current,"dir")
+-- if dir == "LTL" or dir == "RRT" then
+-- wd, ht, dp = ht + dp, wd, 0
+-- end
local next = getnext(current)
local prev = previous
-- local prev = getprev(current) -- prev can be wrong in math mode < 0.78.3
@@ -635,12 +639,16 @@ local function ruledbox(head,current,vertical,layer,what,simple,previous,trace_o
end
end
-local function ruledglyph(head,current,previous)
+local function ruledglyph(head,current,previous) -- wrong for vertical glyphs
local wd = getfield(current,"width")
-- local wd = chardata[getfont(current)][getchar(current)].width
if wd ~= 0 then
- local ht = getfield(current,"height")
- local dp = getfield(current,"depth")
+ local ht = getfield(current,"height")
+ local dp = getfield(current,"depth")
+-- local dir = getfield(current,"dir")
+-- if dir == "LTL" or dir = "RTT" then
+-- wd, ht, dp = ht + dp, wd, 0
+-- end
local next = getnext(current)
local prev = previous
setboth(current)