summaryrefslogtreecommitdiff
path: root/macros/luatex/generic/luavlna/luavlna-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/luatex/generic/luavlna/luavlna-doc.tex')
-rw-r--r--macros/luatex/generic/luavlna/luavlna-doc.tex34
1 files changed, 32 insertions, 2 deletions
diff --git a/macros/luatex/generic/luavlna/luavlna-doc.tex b/macros/luatex/generic/luavlna/luavlna-doc.tex
index 1519d7fe9f..f8c95a291c 100644
--- a/macros/luatex/generic/luavlna/luavlna-doc.tex
+++ b/macros/luatex/generic/luavlna/luavlna-doc.tex
@@ -44,7 +44,7 @@ for enc\TeX, \verb!xevlna! for Xe\TeX,
\verb!impnattypo! for Lua\LaTeX). %This package is for plain
%lua\TeX and for lua\LaTeX.
-Other feature of this package is including of non-breakable space after
+Another feature is inclusion of a non-breakable space after
initials, like in personal names, after or before academic degrees
and between numbers and units (SI and others).
@@ -52,10 +52,11 @@ The code is modified version of Patrick Gundlach's answer on
TeX.sx\footnote{\url{http://tex.stackexchange.com/a/28128/2891}}.
The difference is that it is possible to specify which single letters
should be taken into account for different languages.
-The support for degrees and units was added as well.
+% The support for degrees and units was added as well.
% The code works also for single letters at the beginning of the brackets.
+
\section{Usage}
The usage is simple:
@@ -169,6 +170,35 @@ Default values:
\end{verbatim}
\end{mycode}
+
+\subsection{Split hyphens}
+
+The hyphenated words like ``je-li'' should be be hyphenated as ``je-/-li``
+according to the Czech typesetting rules. This behaviour can be enabled or disabled for a particular
+language using the following commands:
+
+\begin{mycode}
+ \cmd{\enablesplithyphens}\marg{language name}\\
+ \cmd{\disablesplithyphens}\marg{language name}
+\end{mycode}
+
+By default, it is enabled for the Czech language.
+
+Example in action:
+
+\begin{minipage}{3in}
+ \selectlanguage{czech}
+ Sedlec-Prčice, modro-zelený, překladatel-tlumočník, kuchař-číšník, propan-butan,
+ Otýlie Sklenářová-Malá, František Jílek-Oberpfalcer.
+ \selectlanguage{english}
+\end{minipage}
+
+The similar behaviour can be achieved using the \verb|\splithyphens| command
+provided by Czech langauge definitions for the Babel package, but it's use is
+discouraged. It prevents use ot the hyphen character in many situations. The
+solution provided by Luavlna should be safe.
+
+
\subsection{Turning off language switching}
By default, language of the nodes is taken into account. If you want to use