Difference between revisions of "Command/setuplanguage"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \setuplanguage")
 
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 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:12, 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

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: