From e819b543f65c17964c36a2371f152b3c5f55d28a Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Thu, 31 Mar 2016 10:13:17 +0200 Subject: 2016-03-31 09:10:00 --- doc/context/documents/general/manuals/luatex.pdf | Bin 1023946 -> 1025727 bytes .../general/manuals/luatex/luatex-libraries.tex | 40 +++++++++++++++++++++ .../general/manuals/luatex/luatex-nodes.tex | 5 ++- 3 files changed, 44 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/context/documents/general/manuals/luatex.pdf b/doc/context/documents/general/manuals/luatex.pdf index 760995ea8..07bd03751 100644 Binary files a/doc/context/documents/general/manuals/luatex.pdf and b/doc/context/documents/general/manuals/luatex.pdf differ diff --git a/doc/context/sources/general/manuals/luatex/luatex-libraries.tex b/doc/context/sources/general/manuals/luatex/luatex-libraries.tex index df81bcea4..93ea85118 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-libraries.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-libraries.tex @@ -4246,6 +4246,7 @@ This is an experimental function that will append a node list to \TEX's \quote either! \subsubsection{\type {node.protrusion_skippable}} + \startfunctioncall skippable = node.protrusion_skippable( n) \stopfunctioncall @@ -4253,6 +4254,45 @@ either! Returns \type {true} if, for the purpose of line boundary discovery when character protrusion is active, this node can be skipped. +\subsection{Glue handling} + +\subsubsection{\type {node.setglue}} + +You can set the properties of a glue in one go. If you pass no values, the glue +will become a zero glue. + +\startfunctioncall +node.setglue( n) +node.setglue( n,width,stretch,shrink,stretch_order,shrink_order) +\stopfunctioncall + +When you pass values, only arguments that are numbers +are assigned so + +\starttyping +node.setglue(n,655360,false,65536) +\stoptyping + +will only adapt the width and shrink. + +\subsubsection{\type {node.getglue}} + +The next call will return 5 values (or northing when no glue is passed). + +\startfunctioncall + width, stretch, shrink, stretch_order, + shrink_order = node.getglue( n) +\stopfunctioncall + +\subsubsection{\type {node.is_zero_glue}} + +This function returns \type {true} when the width, stretch and shrink properties +are zero. + +\startfunctioncall + isglue = node.is_zero_glue( n) +\stopfunctioncall + \subsection{Attribute handling} Attributes appear as linked list of userdata objects in the \type {attr} field of diff --git a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex index a48e2f267..e77590369 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex @@ -1225,7 +1225,7 @@ summarized this: \starttabulate[|T|c|c|] \HL -\NC \bf function \NC \bf node \NC \bf direct \NC \NR +\NC \bf function \NC \bf node \NC \bf direct \NC \NR \HL \NC \type {copy_list} \NC \yes \NC \yes \NC \NR \NC \type {copy} \NC \yes \NC \yes \NC \NR @@ -1305,6 +1305,9 @@ summarized this: \NC \type {whatsits} \NC \yes \NC \nop \NC \NR \NC \type {whatsitsubtypes} \NC \yes \NC \nop \NC \NR \NC \type {write} \NC \yes \NC \yes \NC \NR +\NC \type {setglue} \NC \yes \NC \yes \NC \NR +\NC \type {getglue} \NC \yes \NC \yes \NC \NR +\NC \type {glue_is_zero} \NC \yes \NC \yes \NC \NR \stoptabulate \stop -- cgit v1.2.3