Difference between revisions of "Command/setuplanguage"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \setuplanguage") |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
<cd:keywords optional="yes" ordinal="1"> | <cd:keywords optional="yes" ordinal="1"> | ||
<cd:keywordsdoc></cd:keywordsdoc> | <cd:keywordsdoc></cd:keywordsdoc> | ||
− | <cd:constant type="cd:language"></cd:constant> | + | <cd:constant type="cd:language">an already defined language to be set up</cd:constant> |
<cd:constant type="default"></cd:constant> | <cd:constant type="default"></cd:constant> | ||
</cd:keywords> | </cd:keywords> | ||
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"> | ||
Line 153: | Line 153: | ||
<cd:description><!-- the long description of the command goes here --> | <cd:description><!-- the long description of the command goes here --> | ||
</cd:description> | </cd:description> | ||
− | <cd:examples></cd:examples> | + | <cd:examples><cd:example title=""><texcode> |
+ | \installlanguage | ||
+ | [en] | ||
+ | [spacing=broad, | ||
+ | leftsentence=---, | ||
+ | rightsentence=---, | ||
+ | leftsubsentence=---, | ||
+ | rightsubsentence=---, | ||
+ | leftquote=\upperleftsinglesixquote, | ||
+ | rightquote=\upperrightsingleninequote, | ||
+ | leftquotation=\upperleftdoublesixquote, | ||
+ | rightquotation=\upperrightdoubleninequote, | ||
+ | date={month,\ ,day,{,\ },year}, | ||
+ | default=en, | ||
+ | state=stop] | ||
+ | </texcode> | ||
+ | </cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> | ||
<cd:seealso> | <cd:seealso> |
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]