summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-05-17 10:29:20 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-05-17 10:29:20 +0200
commitaf172a8db5f7583d0117635edde17eba5619d883 (patch)
tree50688f3516ce1a3e3d19922666d80101d473f124 /doc
parentb344014638169aad6e5f6d2a9a703cb03a8b5064 (diff)
downloadcontext-af172a8db5f7583d0117635edde17eba5619d883.tar.gz
2016-05-17 10:11:00
Diffstat (limited to 'doc')
-rw-r--r--doc/context/sources/general/manuals/luatex/luatex-nodes.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex
index 03c0774c7..e90813c33 100644
--- a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex
+++ b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex
@@ -995,6 +995,8 @@ this:
\NC \type {getprev} \NC \yes \NC \yes \NC \NR
\NC \type {getsubtype} \NC \yes \NC \yes \NC \NR
\NC \type {has_attribute} \NC \yes \NC \yes \NC \NR
+\NC \type {get_attribute} \NC \yes \NC \yes \NC \NR
+\NC \type {find_attribute} \NC \yes \NC \yes \NC \NR
\NC \type {has_field} \NC \yes \NC \yes \NC \NR
\NC \type {has_glyph} \NC \yes \NC \yes \NC \NR
\NC \type {hpack} \NC \yes \NC \yes \NC \NR
@@ -1777,6 +1779,26 @@ Tests if a node has the attribute with number \type {id} set. If \type {val} is
also supplied, also tests if the value matches \type {val}. It returns the value,
or, if no match is found, \type {nil}.
+\subsubsection{\type {node.get_attribute}}
+
+\startfunctioncall
+<number> v =
+ node.get_attribute(<node> n, <number> id)
+\stopfunctioncall
+
+Tests if a node has an attribute with number \type {id} set. It returns the
+value, or, if no match is found, \type {nil}.
+
+\subsubsection{\type {node.find_attribute}}
+
+\startfunctioncall
+<number> v, <node> n =
+ node.find_attribute(<node> n, <number> id)
+\stopfunctioncall
+
+Finds the first node that has attribute with number \type {id} set. It returns
+the value and the node if there is a match and otherwise nothing.
+
\subsubsection{\type {node.set_attribute}}
\startfunctioncall