Difference between revisions of "Command/language"
< Command
(Created page with "Documentation for \language") |
|||
(One intermediate revision by the same user not shown) | |||
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) | ||
− | Bien sûr. A chacun son rôle. Lui, il doit nous | + | Bien sûr. A chacun son rôle. Lui, il doit nous |
− | faire mourir, et nous, nous devons aller enterrer | + | faire mourir, et nous, nous devons aller enterrer |
− | notre frère. C’est comme cela que ç’a été distribué. | + | notre frère. C’est comme cela que ç’a été distribué. |
Qu’est-ce que tu veux que nous y fassions? | Qu’est-ce que tu veux que nous y fassions? | ||
Line 30: | Line 31: | ||
(French hyphenation) | (French hyphenation) | ||
− | Bien sûr. A chacun son rôle. Lui, il doit nous | + | Bien sûr. A chacun son rôle. Lui, il doit nous |
− | faire mourir, et nous, nous devons aller enterrer | + | faire mourir, et nous, nous devons aller enterrer |
− | notre frère. C’est comme cela que ç’a été distribué. | + | notre frère. C’est comme cela que ç’a été distribué. |
Qu’est-ce que tu veux que nous y fassions? | Qu’est-ce que tu veux que nous y fassions? | ||
\stopsimplecolumns | \stopsimplecolumns | ||
Line 40: | Line 41: | ||
\language[fr] | \language[fr] | ||
\rightaligned{—Jean Anouilh, \quotation{Antigone}} | \rightaligned{—Jean Anouilh, \quotation{Antigone}} | ||
+ | \stoptext | ||
</context> | </context> | ||
Line 49: | Line 51: | ||
<cd:commandref name="installlanguage"></cd:commandref> | <cd:commandref name="installlanguage"></cd:commandref> | ||
<cd:commandref name="mainlanguage"></cd:commandref> | <cd:commandref name="mainlanguage"></cd:commandref> | ||
− | <cd:source file="lang-def.mkiv"></cd:source></cd:seealso> | + | <cd:source file="lang-def.mkiv"></cd:source> |
+ | <cd:wikipage page="Hyphenation"></cd:wikipage></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
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