| 1 |
% Language definition file (part of polyglossia v2.10 -- 2026/04/18) |
| 2 |
% |
| 3 |
\ProvidesFile{gloss-lao.ldf}[polyglossia: module for Lao] |
| 4 |
|
| 5 |
\PolyglossiaSetup{lao}{ |
| 6 |
bcp47=lo, |
| 7 |
bcp47-language=lo, |
| 8 |
bcp47-script=Laoo, |
| 9 |
script=Lao, |
| 10 |
scripttag=lao, |
| 11 |
langtag=LAO, |
| 12 |
hyphennames={lao}, |
| 13 |
hyphenmins={1,1}, |
| 14 |
localnumeral=laonumerals, |
| 15 |
Localnumeral=laonumerals |
| 16 |
%TODO localalph={xxx@alph,xxx@Alph} |
| 17 |
%TODO localdigits=laonumber |
| 18 |
} |
| 19 |
|
| 20 |
% BCP-47 compliant aliases |
| 21 |
\setlanguagealias*{lao}{lo} |
| 22 |
|
| 23 |
\newif\if@lao@numerals |
| 24 |
\def\tmp@lao{lao} |
| 25 |
|
| 26 |
\DeclareKeys[polyglossia/gloss/lao] |
| 27 |
{ |
| 28 |
numerals.choice:, |
| 29 |
numerals / arabic.code = |
| 30 |
{% |
| 31 |
\@lao@numeralsfalse |
| 32 |
}, |
| 33 |
numerals / lao.code = |
| 34 |
{% |
| 35 |
\@lao@numeralstrue |
| 36 |
}, |
| 37 |
numerals.default:n = arabic |
| 38 |
} |
| 39 |
|
| 40 |
% Register default options |
| 41 |
\InitializeGlossOptions{lao}{numerals=arabic} |
| 42 |
|
| 43 |
% Translations provided by Brian Wilson <bountonw at gmail.com> |
| 44 |
\def\captionslao{% |
| 45 |
\def\prefacename{ຄໍານໍາ}% |
| 46 |
\def\refname{ໜັງສືອ້າງອີງ}% |
| 47 |
\def\abstractname{ບົດຫຍໍ້ຄວາມ}% |
| 48 |
\def\bibname{ເອກະສານອ້າງອີງ}% |
| 49 |
\def\chaptername{ບົດທີ}% |
| 50 |
\def\appendixname{ພາກຄັດຕິດ}% |
| 51 |
\def\contentsname{ສາລະບານ}% |
| 52 |
\def\listfigurename{ສາລະບານຮູບ}% |
| 53 |
\def\listtablename{ສາລະບານຕາຕະລາງ}% |
| 54 |
\def\indexname{ດັດຊະນີ}% |
| 55 |
\def\figurename{ຮູບທີ}% |
| 56 |
\def\tablename{ຕາຕະລາງທີ}% |
| 57 |
\def\partname{ພາກ}% |
| 58 |
\def\pagename{ໜ້າ}% |
| 59 |
\def\seename{ອ່ານ}% |
| 60 |
\def\alsoname{ອ່ານເພີ່ມ}% |
| 61 |
\def\enclname{ເອກະສານປະກອບ}% |
| 62 |
\def\ccname{ສໍາເນົາເຖິງ}% |
| 63 |
\def\headtoname{ຮຽນ}% |
| 64 |
\def\proofname{ຂໍ້ພິສູດ}% |
| 65 |
\def\glossaryname{ປະມວນສັບ}% |
| 66 |
} |
| 67 |
\def\datelao{% |
| 68 |
\def\lao@month{% |
| 69 |
\ifcase\month\or |
| 70 |
ມັງກອນ\or |
| 71 |
ກຸມພາ\or |
| 72 |
ມີນາ\or |
| 73 |
ເມສາ\or |
| 74 |
ພຶດສະພາ\or |
| 75 |
ມິຖຸນາ\or |
| 76 |
ກໍລະກົດ\or |
| 77 |
ສິງຫາ\or |
| 78 |
ກັນຍາ\or |
| 79 |
ຕຸລາ\or |
| 80 |
ພະຈິກ\or |
| 81 |
ທັນວາ\fi}% |
| 82 |
\def\today{\laonumber\day \space \lao@month \space \laonumber\year}% |
| 83 |
} |
| 84 |
|
| 85 |
\def\laodigits#1{\expandafter\@lao@digits #1@} |
| 86 |
\def\@lao@digits#1{% |
| 87 |
\ifx @#1% then terminate |
| 88 |
\else |
| 89 |
\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 |
| 90 |
\expandafter\@lao@digits |
| 91 |
\fi |
| 92 |
} |
| 93 |
|
| 94 |
\newcommand{\laonumerals}[2]{\laonumber{#2}} |
| 95 |
|
| 96 |
\def\laonumber#1{% |
| 97 |
\if@lao@numerals |
| 98 |
\laodigits{\number#1}% |
| 99 |
\else |
| 100 |
\number#1% |
| 101 |
\fi} |
| 102 |
|
| 103 |
\def\lao@globalnumbers{% |
| 104 |
\let\orig@arabic\@arabic% |
| 105 |
\let\@arabic\laonumber% |
| 106 |
\renewcommand{\thefootnote}{\localnumeral*{footnote}}% |
| 107 |
} |
| 108 |
\def\nolao@globalnumbers{% |
| 109 |
\let\@arabic\orig@arabic% |
| 110 |
} |
| 111 |
|
| 112 |
\endinput |