diff options
Diffstat (limited to 'tex/context/base/mkxl/node-par.lmt')
-rw-r--r-- | tex/context/base/mkxl/node-par.lmt | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/tex/context/base/mkxl/node-par.lmt b/tex/context/base/mkxl/node-par.lmt index 9354d769f..125c1b687 100644 --- a/tex/context/base/mkxl/node-par.lmt +++ b/tex/context/base/mkxl/node-par.lmt @@ -11,7 +11,10 @@ local stoptiming = statistics.stoptiming local sequencers = utilities.sequencers --- This are called a lot! +-- This is called a lot! I'm a bit reluctant with this one because it is +-- sensitive for order. In many other callbacks ther eis no action at the +-- tex end but here ... Anyway, it has been around for a while now (2019) +-- and so far I had no need for extensive usage so we're okay. do @@ -28,6 +31,10 @@ do end +-- Originally this one was meant to deal with the indentation (like turn a box into +-- a skip or prevent it) but that never really was used. The return value still +-- detemines if an indentation box or skip is injected. Will I change that? + do local actions = sequencers.new { @@ -41,11 +48,11 @@ do sequencers.appendgroup(actions,"system") -- private sequencers.appendgroup(actions,"after" ) -- user - local function paragraph(mode,indented) + local function paragraph(mode,indented,context) -- context used to be the cmd code local runner = actions.runner if runner then starttiming(builders) - indented = runner(mode,indented) + indented = runner(mode,indented,context) stoptiming(builders) end return indented @@ -58,7 +65,8 @@ end -- This one is a playground for some old metafun gimmicks that I want to improve -- while I'm updating the manual to lmtx. but it might also be useful for other -- purposes. It fits in the category obscure and probably takes while to stabelize --- (if it stays at all). +-- (if it stays at all). Again, this is one that has the danger of interference, +-- so when it finally got an action handler it only got a system one. do @@ -86,3 +94,8 @@ do callbacks.register("paragraph_context",parcontext,"when the context is dealt with") end + +-- This means that we now have most callbacks in use, even the ones that I'm not sure +-- about. It also means that with the above enabled we might have performance now at +-- its worst. I can optimize this a little but it's not worth the effort (and added +-- complication). |