diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-15 11:15:07 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-15 11:15:07 +0100 |
commit | a036ac2dd19b592316e1b479360e9e6c6700e935 (patch) | |
tree | 321156a4e2af995a7f401e1b773fd8813e3928da /doc/context/sources/general/manuals/luatex | |
parent | d73f5987ca04dbdf0a134236c3314dadd7a73565 (diff) | |
download | context-a036ac2dd19b592316e1b479360e9e6c6700e935.tar.gz |
2016-02-15 10:29:00
Diffstat (limited to 'doc/context/sources/general/manuals/luatex')
-rw-r--r-- | doc/context/sources/general/manuals/luatex/luatex-languages.tex | 4 | ||||
-rw-r--r-- | doc/context/sources/general/manuals/luatex/luatex-libraries.tex | 25 |
2 files changed, 28 insertions, 1 deletions
diff --git a/doc/context/sources/general/manuals/luatex/luatex-languages.tex b/doc/context/sources/general/manuals/luatex/luatex-languages.tex index 773cbdf81..bfcfbd878 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-languages.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-languages.tex @@ -111,7 +111,9 @@ fields, and the new special fields like \quote {attr} \stopitemize Incidentally, \LUATEX\ allows 16383 separate languages, and words can be 256 -characters long. +characters long. The language is stored with each character. You can set +\type {\firstvalidlanguage} to for instance~1 and make thereby language~0 +an ignored hyphenation language. The new primitive \type {\hyphenationmin} can be used to signal the minimal length of a word. This value stored with the (current) language. diff --git a/doc/context/sources/general/manuals/luatex/luatex-libraries.tex b/doc/context/sources/general/manuals/luatex/luatex-libraries.tex index be4052637..79fd0c44a 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-libraries.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-libraries.tex @@ -5459,6 +5459,15 @@ unknown): local w, h, d = tex.getboxresourcedimensions(n) \stoptyping +You can split a box: + +\starttyping +local vlist = tex.splitbox(n,height) +\stoptyping + +The remainder is kept in the original box and a packaged vlist is returned. This +operation is comparable to the \type {\vsplit} operation. + \subsection{Math parameters} It is possible to set and query the internal math parameters using: @@ -6479,6 +6488,22 @@ The results are like: \def\csname{} \stoptyping +There is a (for now) experimental putter: + +\starttyping +local t1 = token.get_next() +local t2 = token.get_next() +local t3 = token.get_next() +local t4 = token.get_next() +-- watch out, we flush in sequence +token.put_next { t1, t2 } +-- but this one gets pushed in front +token.put_next ( t3, t4 ) +\stoptyping + +When we scan \type {wxyz!} we get \type {yzwx!} back. The argument is either a table +with tokens or a list of tokens. + \stopchapter \stopcomponent |