Changes

Jump to navigation Jump to search
653 bytes added ,  14:26, 22 October 2022
\currentmainlanguage, \currentlanguage, \hyphenatedword
{{cmd|mainlanguage|[nl]}} would be the way to set the language for the whole document to Dutch.
 
The default language is US English.
=== Change the hyphenation language ===
Another way of marking a passage would be {{cmd|startlanguage|[es]}} and {{cmd|stoplanguage}}.
 
=== Display languages and hyphenation points ===
 
{{cmd|currentmainlanguage}} prints the main language and {{cmd|currentlanguage}} displays the language in use (which may not be the same as the main language).
 
{{cmd|hyphenatedword|{language}}} prints how the word may be hyphenated given the current language patterns.
 
<context source="yes">
\mainlanguage[en-gb]
{\tt\currentmainlanguage}\\
{\tt\currentlanguage}: \hyphenatedword{language}\\
\de{\tt\currentlanguage}: \hyphenatedword{language}\\
\nl{\tt\currentlanguage}: \hyphenatedword{language}\\
\es{\tt\currentlanguage}: \hyphenatedword{language}
</context>
=== Allow breaking at existing hyphens ===
139

edits

Navigation menu