% This is the file thaicjk.ldf of the CJK package
%   for handling Thai.
%
% created by Werner Lemberg <[email protected]>
%
% Version 4.8.5 (16-Oct-2021)
%
%
% It is based on a similar file of the thailatex package, written
% by Surapant Meknavin <[email protected]> with modifications by
% Theppitak Karoonboonyanan <[email protected]>.

\ProvidesLanguage{thaicjk}
       [CJK 4.8.5 Thai support for the babel system]

\LdfInit{thaicjk}{captionsthaicjk}

\ifx\l@thaicjk\@undefined
 \adddialect\l@thaicjk0
\fi

\addto\captionsthaicjk{%
 \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\enclname{��觷��Ṻ�Ҵ���}%
 \def\ccname{���Ҷ֧}%
 \def\headtoname{���¹}%
 \def\pagename{˹��}%
 \def\seename{��}%
 \def\alsoname{�������}%
 \def\proofname{���٨��}%
 }

\def\th@month{%
 \ifcase\month\or
   ���Ҥ�\or
   ���Ҿѹ��\or
   �չҤ�\or
   ���¹\or
   ���Ҥ�\or
   �Զع�¹\or
   �á�Ҥ�\or
   �ԧ�Ҥ�\or
   �ѹ��¹\or
   ���Ҥ�\or
   ��Ȩԡ�¹\or
   �ѹ�Ҥ�\fi}
\newcount\th@year
\th@year=\year
\advance\th@year by 543
\def\datethaicjk{%
 \def\today{\number\day \space \th@month\space �.�.~\number\th@year}}

\addto\extrasthaicjk{\bbl@frenchspacing}
\addto\noextrasthaicjk{\bbl@nonfrenchspacing}

\addto\extrasthaicjk{\renewcommand{\baselinestretch}{1.2}}
\addto\noextrasthaicjk{\renewcommand{\baselinestretch}{1}}

\def\fnum@figure{\figurename\nobreakspace\thefigure}
\def\fnum@table{\tablename\nobreakspace\thetable}

\InputIfFileExists{c90enc.def}{%
 \message{Loading definitions for the Thai C90 font encoding}}{%
 \errhelp{I can't find file `c90enc.def' for Thai fonts}%
 \errmessage{Since I do not know what the C90 encoding means^^J
   I can't typeset Thai.^^J
   I stop here, while you get a suitable c90enc.def file}\@@end
}

\ldf@finish{thaicjk}

\endinput

%%% Local Variables:
%%% coding: tis-620
%%% mode: latex
%%% End: