Difference between revisions of "Command/setuplanguage"
< Command
Jump to navigation
Jump to search
Line 30: | Line 30: | ||
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="patterns"> | <cd:parameter name="patterns"> | ||
− | <cd:paramdoc></cd:paramdoc> | + | <cd:paramdoc>The hyphenation patterns to use. </cd:paramdoc> |
− | <cd:constant type="cd:file"></cd:constant> | + | <cd:constant type="cd:file">If you enter <code>XX</code> as value, ConTeXt loads <code>lang-XX.lua</code> from either the local folder or the <code>tex/context/patterns/mkiv</code> directory</cd:constant> |
</cd:parameter> | </cd:parameter> | ||
<cd:parameter name="lefthyphenmin"> | <cd:parameter name="lefthyphenmin"> |
Revision as of 08:28, 4 November 2020
Contents
\setuplanguage
Summary
The command \setuplanguage is adjusts a language's settings
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 |
|
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]