[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17 Internationalization

Texinfo has some support for writing in languages other than English, although this area still needs considerable work.

For a list of the various accented and special characters Texinfo supports, see Inserting Accents.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.1 @documentlanguage cc: Set the Document Language

The @documentlanguage command declares the current document language. Write it on a line by itself, with a two-letter ISO-639 language code following (list is included below). If you have a multilingual document, the intent is to be able to use this command multiple times, to declare each language change. If the command is not used at all, the default is en for English.

At present, this command is ignored in Info and HTML output. For TeX, it causes the file ‘txi-cc.tex’ to be read (if it exists). Such a file appropriately redefines the various English words used in TeX output, such as ‘Chapter’, ‘See’, and so on.

It would be good if this command also changed TeX’s ideas of the current hyphenation patterns (via the TeX primitive \language), but this is unfortunately not currently implemented.

Hereare the valid language codes, from ISO-639.

aaAfarabAbkhazianafAfrikaans
amAmharicarArabicasAssamese
ayAymaraazAzerbaijanibaBashkir
beByelorussianbgBulgarianbhBihari
biBislamabnBengali; BanglaboTibetan
brBretoncaCatalancoCorsican
csCzechcyWelshdaDanish
deGermandzBhutanielGreek
enEnglisheoEsperantoesSpanish
etEstonianeuBasquefaPersian
fiFinnishfjFijifoFaroese
frFrenchfyFrisiangaIrish
gdScots GaelicglGaliciangnGuarani
guGujaratihaHausaheHebrew
hiHindihrCroatianhuHungarian
hyArmenianiaInterlinguaidIndonesian
ieInterlingueikInupiakisIcelandic
itItalianiuInuktitutjaJapanese
jwJavanesekaGeorgiankkKazakh
klGreenlandickmCambodianknKannada
ksKashmirikoKoreankuKurdish
kyKirghizlaLatinlnLingala
ltLithuanianloLaothianlvLatvian, Lettish
mgMalagasymiMaorimkMacedonian
mlMalayalammnMongolianmoMoldavian
mrMarathimsMalaymtMaltese
myBurmesenaNauruneNepali
nlDutchnoNorwegianocOccitan
om(Afan) OromoorOriyapaPunjabi
plPolishpsPashto, PushtoptPortuguese
quQuechuarmRhaeto-RomancernKirundi
roRomanianruRussianrwKinyarwanda
saSanskritsdSindhisgSangro
shSerbo-CroatiansiSinhaleseskSlovak
slSloveniansmSamoansnShona
soSomalisqAlbaniansrSerbian
ssSiswatistSesothosuSundanese
svSwedishswSwahilitaTamil
teTelugutgTajikthThai
tiTigrinyatkTurkmentlTagalog
tnSetswanatoTongatrTurkish
tsTsongattTatartwTwi
ugUighurukUkrainianurUrdu
uzUzbekviVietnamesevoVolapuk
woWolofxhXhosayiYiddish
yoYorubazaZhuangzhChinese
zuZulu

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

17.2 @documentencoding enc: Set Input Encoding

The @documentencoding command declares the input document encoding. Write it on a line by itself, with a valid encoding specification following, such as ‘ISO-8859-1’.

At present, this is used only in HTML output from makeinfo. If a document encoding enc is specified, it is used in a ‘<meta>’ tag included in the ‘<head>’ of the output:

<meta http-equiv="Content-Type" content="text/html;
      charset=enc">

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated on a sunny day using texi2html.