diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/context/sources/general/manuals/luatex/luatex-libraries.tex | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/doc/context/sources/general/manuals/luatex/luatex-libraries.tex b/doc/context/sources/general/manuals/luatex/luatex-libraries.tex index cab0210c9..e03d875f9 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-libraries.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-libraries.tex @@ -428,6 +428,27 @@ This callback does not replace any internal code. The description of nodes and node lists is in~\in{chapter}[nodes]. +\subsubsection{\type {contribute_filter}} + +This callback is called when \LUATEX\ adds contents to list: + +\startfunctioncall +function(<string> extrainfo) +end +\stopfunctioncall + +The string reports the group code. From this you can deduce from +what list you can give a treat. + +\starttabulate +\NC \bf group codes \NC \bf pointer \NC \NR +\HL +\NC\type {pre_box} \NC \type {contrib_head} \NC \NR +\NC\type {pre_adjust_tail} \NC \type {pre_adjust_head} \NC \NR +\NC\type {just} \NC \type {just_box} \NC \NR +\NC\type {adjust_tail} \NC \type {adjust_head} \NC \NR +\stoptabulate + \subsubsection{\type {buildpage_filter}} This callback is called whenever \LUATEX\ is ready to move stuff to the main @@ -574,7 +595,7 @@ material. Math items and line boxes are ignored at the moment. \startfunctioncall function(<node> head, <string> groupcode, <number> size, - <string> packtype [, <string> direction]) + <string> packtype [, <string> direction] [, <node> attributelist]) return true | false | <node> newhead end \stopfunctioncall @@ -599,8 +620,8 @@ that it is called at different moments, there is an extra variable that matches \TEX's \type {\maxdepth} setting. \startfunctioncall -function(<node> head, <string> groupcode, <number> size, <string> - packtype, <number> maxdepth [, <string> direction]) +function(<node> head, <string> groupcode, <number> size, <string> packtype, + <number> maxdepth [, <string> direction] [, <node> attributelist])) return true | false | <node> newhead end \stopfunctioncall @@ -721,6 +742,19 @@ pass. You must not ruin the node list. For instance, the head normally is a local par node, and the tail a glue. Messing too much can push \LUATEX\ into panic mode. +\subsubsection{\type {insert_local_par}} + +Each paragraph starts with a local par node that keeps track of for instance +the direction. You can hook a callback into the creator: + +\startfunctioncall +function(<node> local_par, <string> location) +end +\stopfunctioncall + +There is no return value and you should make sure that the node stays valid +as otherwise \TEX\ can get confused. + \subsubsection{\type {mlist_to_hlist}} This callback replaces \LUATEX's math list to node list conversion algorithm. @@ -1840,6 +1874,8 @@ the documentation are not yet finished): \NC glyphcnt \NC number \NC number of included glyphs\NC \NR \NC glyphmax \NC number \NC maximum used index the glyphs array\NC \NR \NC glyphmin \NC number \NC minimum used index the glyphs array\NC \NR +\NC notdef_loc \NC number \NC location of the \type {.notdef} glyph + or \type {-1} when not present \NC \NR \NC hasvmetrics \NC number \NC \NC \NR \NC onlybitmaps \NC number \NC \NC \NR \NC serifcheck \NC number \NC \NC \NR @@ -1893,6 +1929,7 @@ the documentation are not yet finished): \NC horiz_base \NC table \NC \NC \NR \NC vert_base \NC table \NC \NC \NR \NC extrema_bound \NC number \NC \NC \NR +\NC truetype \NC boolean \NC signals a \TRUETYPE\ font \NC \NR \stoptabulate \subsubsubsection{Glyph items} @@ -5975,6 +6012,11 @@ This helper function is useful during linebreak calculations. \type {t} and \typ is supposed to be made from amounts that sum to \type {s}. The returned number is a reasonable approximation of $100(t/s)^3$; +\subsubsection{\type {tex.resetparagraph}} + +This function resets the parameters that \TEX\ normally resets when a new paragraph +is seen. + \subsubsection{\type {tex.linebreak}} \startfunctioncall |