1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
% Language definition file (part of polyglossia v2.3 -- 2024/09/23)
%
\ProvidesFile{gloss-lao.ldf}[polyglossia: module for Lao]
\PolyglossiaSetup{lao}{
bcp47=lo,
bcp47-language=lo,
bcp47-script=Laoo,
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}
\DeclareKeys[polyglossia/gloss/lao]
{
numerals.choice:,
numerals / arabic.code =
{%
\@lao@numeralsfalse
},
numerals / lao.code =
{%
\@lao@numeralstrue
},
numerals.default:n = arabic
}
% Register default options
\InitializeGlossOptions{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
|