Difference between revisions of "Command/language"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \language") |
|||
Line 20: | Line 20: | ||
(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 30: | ||
(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 49: | Line 49: | ||
<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> |
Revision as of 15:53, 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 \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}}