summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/typo-bld.lmt
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-04-19 20:58:40 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-04-19 20:58:40 +0200
commitb9a7e870cf47674c90331b41f9267768992b49cb (patch)
tree7b7bb2ee92af1767712ffcfbec47995c8894e214 /tex/context/base/mkxl/typo-bld.lmt
parentb155eafa1e2d73692eed08ecabeb5ad589ac11dc (diff)
downloadcontext-b9a7e870cf47674c90331b41f9267768992b49cb.tar.gz
2022-04-19 19:52:00
Diffstat (limited to 'tex/context/base/mkxl/typo-bld.lmt')
-rw-r--r--tex/context/base/mkxl/typo-bld.lmt17
1 files changed, 15 insertions, 2 deletions
diff --git a/tex/context/base/mkxl/typo-bld.lmt b/tex/context/base/mkxl/typo-bld.lmt
index ae644d297..1a581e118 100644
--- a/tex/context/base/mkxl/typo-bld.lmt
+++ b/tex/context/base/mkxl/typo-bld.lmt
@@ -199,13 +199,13 @@ end)
nodes.builders = nodes.builder or { }
local builders = nodes.builders
-local vboxactions = nodes.tasks.actions("vboxbuilders")
+local vpackactions = nodes.tasks.actions("vboxbuilders")
function builders.vpack_filter(head,groupcode,size,packtype,maxdepth,direction)
local done = false
if head then
starttiming(builders)
- head, done = vboxactions(head,groupcode)
+ head, done = vpackactions(head,groupcode)
stoptiming(builders)
end
return head, done
@@ -249,6 +249,19 @@ end
registercallback('vpack_filter', builders.vpack_filter, "vertical spacing etc")
registercallback('buildpage_filter', builders.buildpage_filter, "vertical spacing etc (mvl)")
+local vboxactions = nodes.tasks.actions("vboxhandlers")
+
+function builders.vbox_filter(head,groupcode)
+ if head then
+ starttiming(builders)
+ head = vboxactions(head,groupcode)
+ stoptiming(builders)
+ end
+ return head
+end
+
+registercallback('packed_vbox_filter', builders.vbox_filter, "packed vbox treatments")
+
statistics.register("v-node processing time", function()
return statistics.elapsedseconds(builders)
end)