Difference between revisions of "Command/setuplanguage"

From Wiki
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


\setuplanguage

Summary

The command \setuplanguage is adjusts a language's settings

Settings

\setuplanguage[...][...=...,...]
[...]language default
defaultlanguage
statestart stop
datesee \currentdate
timesee \currenttime
patternsfile
lefthyphenminnumber
righthyphenminnumber
lefthyphencharnumber
righthyphencharnumber
setupsname
spacingbroad packed
fontauto name
bidileft right l2r r2l
texttext
limittexttext
hyphentext
compoundhyphentext
leftcompoundhyphentext
rightcompoundhyphentext
leftquotecommand
rightquotecommand
leftquotationcommand
rightquotationcommand
leftspeechcommand
rightspeechcommand
leftsentencecommand
middlespeechcommand
rightsentencecommand
midsentencecommand
leftsubsentencecommand
rightsubsentencecommand
factoryes no

OptionExplanation
language an already defined language to be set up
patterns
The hyphenation patterns to use.
file If you enter XX as value, ConTeXt loads lang-XX.lua from either the local folder or the tex/context/patterns/mkiv directory

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]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: