Difference between revisions of "Command/setuplanguage"
< Command
Jump to navigation
Jump to search
(explain some options, settings for German) |
(mention hyphenmin) |
||
Line 180: | Line 180: | ||
rightquote=‹, | rightquote=‹, | ||
] | ] | ||
− | </texcode></cd:example></cd:examples> | + | </texcode> |
+ | |||
+ | German texts might benefit from setting a [[Hyphenation#Minimum_length_for_hyphenation|minimum word length for hyphenation]] (<code>hyphenmin</code> isn’t listed as an option for {{cmd|setuplanguage}}).</cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> | ||
<cd:seealso> | <cd:seealso> |
Latest revision as of 19:00, 23 January 2023
Contents
\setuplanguage
Summary
The command \setuplanguage adjusts the settings for a language.
Settings
\setuplanguage[...][...=...,...] | |
[...] | language default |
default | language |
state | start stop |
date | see \currentdate |
time | see \currenttime |
patterns | file |
lefthyphenmin | number |
righthyphenmin | number |
lefthyphenchar | number |
righthyphenchar | number |
setups | name |
spacing | broad packed |
font | auto name |
bidi | left right l2r r2l |
text | text |
limittext | text |
hyphen | text |
compoundhyphen | text |
leftcompoundhyphen | text |
rightcompoundhyphen | text |
leftquote | command |
rightquote | command |
leftquotation | command |
rightquotation | command |
leftspeech | command |
rightspeech | command |
leftsentence | command |
middlespeech | command |
rightsentence | command |
midsentence | command |
leftsubsentence | command |
rightsubsentence | command |
factor | yes no |
Option | Explanation | ||||
---|---|---|---|---|---|
language | an already defined language to be set up | ||||
patterns |
| ||||
lefthyphenmin |
| ||||
righthyphenmin |
| ||||
hyphen |
| ||||
leftquote |
| ||||
rightquote |
| ||||
leftquotation |
| ||||
rightquotation |
|
Description
Examples
Example 1
\installlanguage [en] [spacing=broad, leftsentence=---, rightsentence=---, leftsubsentence=---, rightsubsentence=---, leftquote=\upperleftsinglesixquote, rightquote=\upperrightsingleninequote, leftquotation=\upperleftdoublesixquote, rightquotation=\upperrightdoubleninequote, date={month,\ ,day,{,\ },year}, default=en, state=stop]
Suggestion for German with guillemets
\setbreakpoints[compound] % break at / and - \setuplanguage[de][ goodies={lang-de.llg}, % prevent wrong ligatures lefthyphenmin=2, righthyphenmin=2, leftquotation=», rightquotation=«, leftquote=›, rightquote=‹, ]
German texts might benefit from setting a minimum word length for hyphenation (hyphenmin
isn’t listed as an option for \setuplanguage).