diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-31 10:13:17 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-03-31 10:13:17 +0200 |
commit | e819b543f65c17964c36a2371f152b3c5f55d28a (patch) | |
tree | 14b05d0cc09ff0023832aa3723934cb36162e9e9 /doc | |
parent | ed2c824995ef51ddb1dfc1fa2a526933cd377cda (diff) | |
download | context-e819b543f65c17964c36a2371f152b3c5f55d28a.tar.gz |
2016-03-31 09:10:00
Diffstat (limited to 'doc')
-rw-r--r-- | doc/context/documents/general/manuals/luatex.pdf | bin | 1023946 -> 1025727 bytes | |||
-rw-r--r-- | doc/context/sources/general/manuals/luatex/luatex-libraries.tex | 40 | ||||
-rw-r--r-- | doc/context/sources/general/manuals/luatex/luatex-nodes.tex | 5 |
3 files changed, 44 insertions, 1 deletions
diff --git a/doc/context/documents/general/manuals/luatex.pdf b/doc/context/documents/general/manuals/luatex.pdf Binary files differindex 760995ea8..07bd03751 100644 --- a/doc/context/documents/general/manuals/luatex.pdf +++ b/doc/context/documents/general/manuals/luatex.pdf 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 <boolean> skippable = node.protrusion_skippable(<node> 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(<node> n) +node.setglue(<node> 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 +<integer> width, <integer> stretch, <integer> shrink, <integer> stretch_order, + <integer> shrink_order = node.getglue(<node> n) +\stopfunctioncall + +\subsubsection{\type {node.is_zero_glue}} + +This function returns \type {true} when the width, stretch and shrink properties +are zero. + +\startfunctioncall +<boolean> isglue = node.is_zero_glue(<node> 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 |