node-pag.lua /size: 1027 b    last modification: 2020-07-01 14:35
1
if
not
modules
then
modules
=
{
}
end
modules
[
'
node-pag
'
]
=
{
2
version
=
1
.
001
,
3
comment
=
"
companion to node-pag.mkiv
"
,
4
author
=
"
Hans Hagen, PRAGMA-ADE, Hasselt NL
"
,
5
copyright
=
"
PRAGMA ADE / ConTeXt Development Team
"
,
6
license
=
"
see context related readme files
"
7
}
8 9
-- this callback might disappear and come back in the same way
10
-- as par builders
11 12
pagebuilders
=
pagebuilders
or
{
}
13 14
local
starttiming
,
stoptiming
=
statistics
.
starttiming
,
statistics
.
stoptiming
15 16
local
actions
=
nodes
.
tasks
.
actions
(
"
pagebuilders
"
)
17 18
local
function
processor
(
head
,
groupcode
,
size
,
packtype
,
maxdepth
,
direction
)
19
starttiming
(
pagebuilders
)
20
local
_
,
done
=
actions
(
head
,
groupcode
,
size
,
packtype
,
maxdepth
,
direction
)
21
stoptiming
(
pagebuilders
)
22
return
(
done
and
head
)
or
true
23
-- return vpack(head)
24
end
25 26
--~ callbacks.register('pre_output_filter', processor, "preparing output box")
27 28
--~ statistics.register("output preparation time", function()
29
--~ return statistics.elapsedseconds(pagebuilders)
30
--~ end)
31