|
|
\ProvidesFile{gloss-lao.ldf}[polyglossia: module for Lao]
|
|
|
\ifluatex
|
|
|
\xpg@warning{Lao is not supported with LuaTeX.\MessageBreak
|
|
|
I will proceed with the compilation, but\MessageBreak
|
|
|
the output is not guaranteed to be correct\MessageBreak
|
|
|
and may look very wrong.}
|
|
|
\fi
|
|
|
\PolyglossiaSetup{lao}{
|
|
|
bcp47=lo,
|
|
|
script=Lao,
|
|
|
scripttag=lao,
|
|
|
langtag=LAO,
|
|
|
hyphennames={lao},
|
|
|
hyphenmins={1,1},
|
|
|
fontsetup=true,
|
|
|
localnumeral=laonumerals
|
|
|
%TODO localalph={xxx@alph,xxx@Alph}
|
|
|
%TODO localdigits=laonumber
|
|
|
}
|
|
|
|
|
|
% BCP-47 compliant aliases
|
|
|
\setlanguagealias*{lao}{lo}
|
|
|
|
|
|
\newif\if@lao@numerals
|
|
|
\def\tmp@lao{lao}
|
|
|
\define@key{lao}{numerals}[arabic]{%
|
|
|
\def\@tmpa{#1}%
|
|
|
\ifx\@tmpa\tmp@lao\@lao@numeralstrue\else
|
|
|
\@lao@numeralsfalse\fi
|
|
|
}
|
|
|
|
|
|
% Register default options
|
|
|
\xpg@initialize@gloss@options{lao}{numerals=arabic}
|
|
|
|
|
|
% Translations provided by Brian Wilson <bountonw at gmail.com>
|
|
|
\def\captionslao{%
|
|
|
\def\prefacename{ຄໍານໍາ}%
|
|
|
\def\refname{ໜັງສືອ້າງອີງ}%
|
|
|
\def\abstractname{ບົດຫຍໍ້ຄວາມ}%
|
|
|
\def\bibname{ເອກະສານອ້າງອີງ}%
|
|
|
\def\chaptername{ບົດທີ}%
|
|
|
\def\appendixname{ພາກຄັດຕິດ}%
|
|
|
\def\contentsname{ສາລະບານ}%
|
|
|
\def\listfigurename{ສາລະບານຮູບ}%
|
|
|
\def\listtablename{ສາລະບານຕາຕະລາງ}%
|
|
|
\def\indexname{ດັດຊະນີ}%
|
|
|
\def\figurename{ຮູບທີ}%
|
|
|
\def\tablename{ຕາຕະລາງທີ}%
|
|
|
\def\partname{ພາກ}%
|
|
|
\def\pagename{ໜ້າ}%
|
|
|
\def\seename{ອ່ານ}%
|
|
|
\def\alsoname{ອ່ານເພີ່ມ}%
|
|
|
\def\enclname{ເອກະສານປະກອບ}%
|
|
|
\def\ccname{ສໍາເນົາເຖິງ}%
|
|
|
\def\headtoname{ຮຽນ}%
|
|
|
\def\proofname{ຂໍ້ພິສູດ}%
|
|
|
\def\glossaryname{ປະມວນສັບ}%
|
|
|
}
|
|
|
\def\datelao{%
|
|
|
\def\lao@month{%
|
|
|
\ifcase\month\or
|
|
|
ມັງກອນ\or
|
|
|
ກຸມພາ\or
|
|
|
ມີນາ\or
|
|
|
ເມສາ\or
|
|
|
ພຶດສະພາ\or
|
|
|
ມິຖຸນາ\or
|
|
|
ກໍລະກົດ\or
|
|
|
ສິງຫາ\or
|
|
|
ກັນຍາ\or
|
|
|
ຕຸລາ\or
|
|
|
ພະຈິກ\or
|
|
|
ທັນວາ\fi}%
|
|
|
\def\today{\laonumber\day \space \lao@month \space \laonumber\year}%
|
|
|
}
|
|
|
|
|
|
\def\laodigits#1{\expandafter\@lao@digits #1@}
|
|
|
\def\@lao@digits#1{%
|
|
|
\ifx @#1% then terminate
|
|
|
\else
|
|
|
\ifx0#1໐\else\ifx1#1໑\else\ifx2#1໒\else\ifx3#1໓\else\ifx4#1໔\else\ifx5#1໕\else\ifx6#1໖\else\ifx7#1໗\else\ifx8#1໘\else\ifx9#1໙\else#1\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
|
|
|
\expandafter\@lao@digits
|
|
|
\fi
|
|
|
}
|
|
|
|
|
|
\newcommand{\laonumerals}[2]{\laonumber{#2}}
|
|
|
|
|
|
\def\laonumber#1{%
|
|
|
\if@lao@numerals
|
|
|
\laodigits{\number#1}%
|
|
|
\else
|
|
|
\number#1%
|
|
|
\fi}
|
|
|
|
|
|
\def\lao@globalnumbers{%
|
|
|
\let\orig@arabic\@arabic%
|
|
|
\let\@arabic\laonumber%
|
|
|
\renewcommand{\thefootnote}{\localnumeral*{footnote}}%
|
|
|
}
|
|
|
\def\nolao@globalnumbers{%
|
|
|
\let\@arabic\orig@arabic%
|
|
|
}
|
|
|
|
|
|
\endinput
|
|
|
|