Difference between revisions of "Command/language"

From ConTeXt wiki
Jump to navigationJump to search
(Add an example, improve the description)
m (Link to Hyphenation)
Line 60: Line 60:
 
* {{cmd|mainlanguage}} to change structural labels (chapter, part, etc.) as well as the body text.
 
* {{cmd|mainlanguage}} to change structural labels (chapter, part, etc.) as well as the body text.
 
* {{cmd|installlanguage}} to see the settings that make up a {{cmd|language}}.
 
* {{cmd|installlanguage}} to see the settings that make up a {{cmd|language}}.
* {{cmd|hyphenation}} if you have only a few words that need different hyphenation.
+
* [[Hyphenation]] for more on hyphenation
* {{cmd|-}} to specify hyphenation points ad-hoc.
 
 
 
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 11:31, 21 April 2013

\language

Syntax

\language[...]
[...] nl fr en uk de es cz ..


Description

Change the hyphenation rules, quotation marks, all that sort of thing, to that of a different language. (The default language is English.)

Example

% mode=mkii

\setuppapersize[A7, landscape]
\enableregime[utf]     % make mkii handle French characters
\setupwhitespace[big]  % blank line between paragraphs

\version[temporary]    % show overful hboxes

\startcolumns[n=4, distance=3em]
  (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?
\stopcolumns

  \language[en]
  \rightaligned{—Jean Anouilh, \quotation{Antigone}}\crlf
  \language[fr]
  \rightaligned{—Jean Anouilh, \quotation{Antigone}}


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: