Difference between revisions of "Command/language"
< Command
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
\setuppapersize[A7,landscape] \showframe | \setuppapersize[A7,landscape] \showframe | ||
+ | \starttext | ||
\startsimplecolumns[n=4, distance=5em] | \startsimplecolumns[n=4, distance=5em] | ||
(English hyphenation) | (English hyphenation) | ||
Line 40: | Line 41: | ||
\language[fr] | \language[fr] | ||
\rightaligned{—Jean Anouilh, \quotation{Antigone}} | \rightaligned{—Jean Anouilh, \quotation{Antigone}} | ||
+ | \stoptext | ||
</context> | </context> | ||
Latest revision as of 15:54, 11 November 2021
Contents
\language
Summary
The command \language is used to switch the current language
Settings
\language[...] | |
[...] | language |
Option | Explanation |
---|---|
language | any language identifier, as defined by the first argument of \installlanguage. |
Description
Change the hyphenation rules, quotation marks, all that sort of thing, to that of a different language. (The default language is English.)
Examples
Example 1
\setuppapersize[A7,landscape] \showframe \starttext \startsimplecolumns[n=4, distance=5em] (English hyphenation) Bien sûr. A chacun son rôle. Lui, il doit nous faire mourir, et nous, nous devons aller enterrer notre frère. C’est comme cela que ç’a été distribué. Qu’est-ce que tu veux que nous y fassions? \column \language[fr] % or [french] (French hyphenation) Bien sûr. A chacun son rôle. Lui, il doit nous faire mourir, et nous, nous devons aller enterrer notre frère. C’est comme cela que ç’a été distribué. Qu’est-ce que tu veux que nous y fassions? \stopsimplecolumns \language[en] \rightaligned{—Jean Anouilh, \quotation{Antigone}}\crlf \language[fr] \rightaligned{—Jean Anouilh, \quotation{Antigone}} \stoptext