% Language definition file (part of polyglossia v2.2 -- 2024/07/15) % \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 \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