summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/typo-bld.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-12-28 11:57:23 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-12-28 11:57:23 +0100
commit2f8058544f8a3fead8186bdcb3835f1f67416cc3 (patch)
tree499caa2670374128935c3e4ef663a6a578703df1 /tex/context/base/mkiv/typo-bld.lua
parent979450762f4ef3b885fd63984c91165726494564 (diff)
downloadcontext-2f8058544f8a3fead8186bdcb3835f1f67416cc3.tar.gz
2018-12-28 11:09:00
Diffstat (limited to 'tex/context/base/mkiv/typo-bld.lua')
-rw-r--r--tex/context/base/mkiv/typo-bld.lua53
1 files changed, 0 insertions, 53 deletions
diff --git a/tex/context/base/mkiv/typo-bld.lua b/tex/context/base/mkiv/typo-bld.lua
index 1c96947db..4c2f7f2a5 100644
--- a/tex/context/base/mkiv/typo-bld.lua
+++ b/tex/context/base/mkiv/typo-bld.lua
@@ -257,61 +257,8 @@ function builders.buildpage_filter(groupcode)
end
end
-------------------------
-
--- do
---
--- local nuts = nodes.nuts
--- local getglue = tex.getglue
--- local getwhd = nuts.getwhd
--- local new_b_skip = nuts.pool.baselineskip
--- local new_l_skip = nuts.pool.lineskip
--- local find_tail = nuts.tail
--- local setlink = nuts.setlink
--- local is_mirrored = nodes.is_mirrored
---
--- function nuts.setprevdepth(head,prevdepth) -- this will become a helper
--- local wd, ht, dp = getwhd(head)
--- local mirrored = false -- getid(box) == hlist_code and is_mirrored(getdir(box)) -- never mirrored
--- if prevdepth > -65536000 then
--- local b_width, b_stretch, b_shrink = getglue("baselineskip")
--- local l_width, l_stretch, l_shrink = getglue("lineskip")
--- local correction = b_width - prevdepth - (mirrored and dp or ht)
--- if correction < l_width then
--- head = setlink(new_l_skip(l_width,l_stretch,l_shrink),head)
--- else
--- head = setlink(new_b_skip(correction,b_stretch,b_shrink),head)
--- end
--- end
--- return head, mirrored and ht or dp
--- end
---
--- function nodes.setprevdepth(box,prevdepth)
--- local h, p = nodes.prepend_prevdepth(box,prevdepth)
--- if h then
--- return h, p
--- else
--- return head, prevdepth
--- end
--- end
---
--- end
---
--- local setprevdepth = nodes.setprevdepth
--- local appendactions = nodes.tasks.actions("listbuilders")
---
--- function builders.append_filter(box,location,prevdepth,mirrored)
--- starttiming(builders)
--- box, prevdepth = appendactions(box,location,prevdepth,mirrored)
--- box, prevdepth = setprevdepth(box,prevdepth)
--- stoptiming(builders)
--- return box, prevdepth
--- end
-
registercallback('vpack_filter', builders.vpack_filter, "vertical spacing etc")
registercallback('buildpage_filter', builders.buildpage_filter, "vertical spacing etc (mvl)")
-----------------("append_to_vlist_filter",builders.append_filter, "add content to the vlist")
-----------------('contribute_filter', builders.contribute_filter, "adding content to lists")
statistics.register("v-node processing time", function()
return statistics.elapsedseconds(builders)