Next: , Previous: Bibliography, Up: Top



6 Human language support

XML is an international file format. Every XML tag can have an xml:lang attribute, although the respective DTD must allow them explicitly. tbook allows them for almost all its elements. The value of this attribute is a language tag. tbook supports the following XML language tags:

"en"
English
"de"
German
"fr"
French
"it"
Italian
"da"
Danish
"nl"
Dutch
"pl"
Polish
"fi"
Finnish
"pt"
Portuguese
"no"
Norwegian (Norsk)
"sv"
Swedish
"ru"
Russian
"es"
Spanish
"ca"
Catalan
"en-US"
American English
"en-GB"
British English
"no-bok"
Norsk (Bokmal)
"no-nyn"
Nynorsk
"pt-BR"
Brazilian
"de-DE"
FR German
"de-AT"
Austrian
"de-1901"
German, traditional orthography
"de-1996"
German, new orthography
"de-DE-1901"
FR German, traditional orthography
"de-AT-1901"
Austrian, traditional orthography
"de-DE-1996"
FR German, new orthography
"de-AT-1996"
Austrian, new orthography

The “special” German orthography tags have been registered with IANA. If you need another language, contact the tbook maintainer.

You can use other language tags, too, but only the above are interpreted by tbook for LaTeX output. The language is switched on for the whole element. For example,

     <chapter xml:lang="de">
       <heading>Einleitung</heading>
     
       <p>In diesem Text werden wir sehen, daß ...</p>
     
       <p xml:lang="es">Andalucía es, sobre todo, una región
         agrícola. ...</p>
     </chapter>

embeds a chapter in German in a document that may be written in a wholly different language. The second paragraph however is in Spanish.

Mostly you will use this tag – if at all – only for the top-level element. For example, an article in French will begin with

     <article xml:lang="fr">
       ...