diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-04-19 20:58:40 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-04-19 20:58:40 +0200 |
commit | b9a7e870cf47674c90331b41f9267768992b49cb (patch) | |
tree | 7b7bb2ee92af1767712ffcfbec47995c8894e214 /tex/context/base/mkxl/node-tsk.lmt | |
parent | b155eafa1e2d73692eed08ecabeb5ad589ac11dc (diff) | |
download | context-b9a7e870cf47674c90331b41f9267768992b49cb.tar.gz |
2022-04-19 19:52:00
Diffstat (limited to 'tex/context/base/mkxl/node-tsk.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-tsk.lmt | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/tex/context/base/mkxl/node-tsk.lmt b/tex/context/base/mkxl/node-tsk.lmt index 197d28538..ed6b3e13b 100644 --- a/tex/context/base/mkxl/node-tsk.lmt +++ b/tex/context/base/mkxl/node-tsk.lmt @@ -778,6 +778,56 @@ nonut = [[ } +tasks.new { + name = "vboxhandlers", + processor = nodeprocessor, + sequence = { + "before", -- for users + "normalizers", + "after", -- for users + }, + templates = { + +default = [[ +return function(head) + return head +end +]], + +process = [[ +local tonut = nodes.tonut +local tonode = nodes.nuts.tonode + +%localize% + +return function(head,groupcode) + local nuthead = tonut(head) + +%actions% + return tonode(nuthead) +end +]], + +step = [[ + nuthead = tonut((%action%(tonode(nuthead),groupcode))) +]], + +nut = [[ + nuthead = %action%(nuthead,groupcode) +]], + +nohead = [[ + %action%(tonode(nuthead),groupcode) +]], + +nonut = [[ + %action%(nuthead,groupcode) +]], + + } + +} + -- these operate on the content on a line, so no injections tasks.new { |