I'm trying to write a text in Armenian using xelatex. I'm not a specialist of xetex, so, please, forgive me stupid questions.
After some googleing found the following code:
Code: Select all
\documentclass {article}
\usepackage {xltxtra, polyglossia}
\usepackage {fontspec}
\setdefaultlanguage {english}
\newfontface \armfont [Script=Armenian]{DejaVu Sans}
\begin {document}
\title {\armfont{Ինչ-որ հայերեն տեքստ}}
\author {Հեղինակ}
\maketitle
\armfont {Եւ երկիր էր աներևոյթ և անպատրաստ. և խաւար ի վերայ անդնդոց. և Հոգի Աստուծոյ շրջէր ի վերայ ջուրց:
\begin{thebibliography}{99}
\bibitem{as}
hdsjhdsjdjs
\end{thebibliography}
}
\end{document}
When I changed the setdefaultlanguage to armenian, it turned out that the file gloss-armenian.ldf is not installed by default in /usr/share/texmf-texlive/tex/xelatex/polyglossia
After downloading it and reinstalling xetex I received the following error message:
/usr/share/texmf-texlive/tex/xelatex/polyglossia/gloss-armenian.ldf:4Undefined control sequence \PolyglossiaSetup in the following paragraph:
Code: Select all
\PolyglossiaSetup{armenian}{
script=Armenian,
scripttag=armn,
langtag=HYE,
hyphennames={armenian},
hyphenmins={2,2},
fontsetup=true
}
Code: Select all
\def\armenian@font{\armfont}
Code: Select all
\def\captionsarmenian{
\def\refname{\armfont{Հղումների ցանկ}}
...
}
Hope that this information will help../file.aux:3: armenian@language is not defined on input line 3
./file.aux:6: armenian@language is not defined on input line 6
./file.aux:3: armenian@language is not defined on input line 3
Thus, can someone explain me how to avoid this warning and can I post the modified file to replace the current one?
My OS is Ubuntu 11.10