Changes

Jump to navigation Jump to search
1,240 bytes added ,  14:52, 22 October 2022
minimum lengths for hyphenation
\nl{\tt\currentlanguage}: \hyphenatedword{language}\\
\es{\tt\currentlanguage}: \hyphenatedword{language}
</context>
 
=== Minimum length for hyphenation ===
 
Hyphenation works in each language because it has defined the minimum number of letters to apply a hyphenation pattern. It applies at the word start ({{code|lefthyphemin}}) or at the word end ({{code|righthyphemin}}).
 
There is a third option to set the minimal number of letters the word needs to be hyphenated ({{code|hyphemin}}).
 
You can set that with {{cmd|setuplanguage}}, such as in {{cmd|setuplanguage|2=[es][hyphenmin=5]}}. This would enable some hyphenations and prevent others.
 
<context source="yes">
\mainlanguage[es]
\hyphenatedword{coda}\\
\hyphenatedword{comida}\\
\setuplanguage[es][hyphenmin=5]
\hyphenatedword{coda}\\
\hyphenatedword{comida}\\
</context>
 
This seems to be very useful in German:
 
<context source="yes">
\mainlanguage[de]
\hyphenatedword{dazu}\\
\hyphenatedword{darum}\\
\hyphenatedword{wovon}\\
\hyphenatedword{Erarbeiten}\\
\setuplanguage[de][lefthyphenmin=2,righthyphenmin=3]
\hyphenatedword{dazu}\\
\hyphenatedword{darum}\\
\hyphenatedword{wovon}\\
\hyphenatedword{Erarbeiten}\\
\setuplanguage[de][lefthyphenmin=2,righthyphenmin=3, hyphenmin=6]
\hyphenatedword{dazu}\\
\hyphenatedword{darum}\\
\hyphenatedword{wovon}\\
\hyphenatedword{Erarbeiten}\\
</context>
139

edits

Navigation menu