summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-08 20:55:17 +0000
committerKarl Berry <karl@freefriends.org>2021-08-08 20:55:17 +0000
commitf03a7a678fbbe006c2272f28b48465f049327d40 (patch)
treed65edf6c8010b255ea5163499dd2447c5215fbe4 /Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex
parenta17b01b849389432a2351e5fa26f64a77b87550a (diff)
lua-uni-algos (8aug21)
git-svn-id: svn://tug.org/texlive/trunk@60194 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex')
-rw-r--r--Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex10
1 files changed, 8 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex b/Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex
index 58ae2fabc6f..2b290c7b7c5 100644
--- a/Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex
+++ b/Master/texmf-dist/doc/luatex/lua-uni-algos/lua-uni-algos.tex
@@ -2,7 +2,7 @@
\usepackage{doc, shortvrb, metalogo, hyperref, fontspec}
% \setmainfont{Noto Serif}
% \setmonofont{FreeMono}
-\title{Unicode algorithms for Lua\TeX\thanks{This document corresponds to \pkg{lua-uni-algos} v0.3.}}
+\title{Unicode algorithms for Lua\TeX\thanks{This document corresponds to \pkg{lua-uni-algos} v0.4.}}
\author{Marcel Krüger\thanks{E-Mail: \href{mailto:tex@2krueger.de}{\nolinkurl{tex@2krueger.de}}}}
\MakeShortVerb\|
\newcommand\pkg{\texttt}
@@ -51,12 +51,18 @@ NFKD: Äpfel...
(This example is shown in Latin Modern Mono which has the (for this purpose) very useful property of not handling combining character very well.
In a well-behaving font, the `...C` and `...D` lines should look the same.)
-Additionally for NFC direct normalization of Lua\TeX\ node lists is supported.
+Additionally for direct normalization of Lua\TeX\ node lists is supported.
There are two functions |normalize.node.NFC| and |normalize.direct.NFC| taking upto four parameters: The first parameter is the head of the node list to be converted.
The second parameter is the font id of the affected character nodes. Only non-protected glyph nodes of the specified font will be normalized. Pass |nil| for the font
to normalize without respecting the font in the process. The third parameter is an optional table. If it is not |nil|, normalization is supressed if it might add glyph
which map to |false| (or |nil|) in this table. If the forth argument is |true|, normalization will never join two glyph nodes with different attributes.
+For NFD and NFKD equivalent functions exists without the last parameter (since they never compose nodes, they never have to deal with composing nodes with different
+attributes.
+
+NFKC is not supported for node list normalization since the author is not convinced that there is any usecase for it. (Probably there isn't any usecase for node list
+NFKD normalization either, but that was easy to implement while NFKC would need separate data tables.
+
\section{Case folding}
For case folding load the Lua module |lua-uni-case|.
You can either load it directly with