% This file `eo.ldf' is derived from `esperanto.ldf' and
% `esperanto.ldf' of the Babel package for LaTeX2e by Johannes
% Braams et al.  It is modified by Sergei B. Pokrovsky <pok@iis.nsk.su>
% (1999-08-10) in order to enable hyphenation for Esperanto texts.
%
% It may be distributed under the terms of the LaTeX Project Public
% License, as described in lppl.txt in the base LaTeX distribution.
% Either version 1.0 or, at your option, any later version.

\ProvidesLanguage{eo}
        [1999-08-10: Esperanto support using the babel system]
\LdfInit{eo}\captionseo
\ifx\l@eo\@undefined
  \@nopatterns{Eo}
  \adddialect\l@eo0\fi
\addto\captionseo{%
  \def\prefacename{Anta\u{u}parolo}%
  \def\refname{Referencoj}%
  \def\abstractname{Resumo}%
  \def\bibname{Literaturo}%
  \def\chaptername{{\^Capitro}}%
  \def\appendixname{Aldono}%
  \def\contentsname{Enhavtabelo}%
  \def\listfigurename{Listo de la figuroj}%
  \def\listtablename{Listo de la tabeloj}%
  \def\indexname{Indekso}%
  \def\figurename{Figuro}%
  \def\tablename{Tabelo}%
  \def\partname{Parto}%
  \def\enclname{Kunsenda{\^\j}o(j)}%
  \def\ccname{Kopie al}%
  \def\headtoname{Al}%
  \def\pagename{p\^g}%
  \def\subjectname{Temo}%
  \def\seename{vd}%   a^u: vd.
  \def\alsoname{vd anka\u{u}}% a^u vd. anka\u{u}
  \def\proofname{Pruvo}%
  }
\def\dateeo{%
  \def\today{\number\day{\textordfeminine} de \ifcase\month\or
    januaro\or februaro\or marto\or aprilo\or majo\or junio\or
    julio\or a\u{u}gusto\or septembro\or oktobro\or novembro\or
    decembro\fi,\space \number\year}}

\def\eohyphenmins{\tw@\tw@}
\initiate@active@char{^}

\expandafter\ifx\csname charsubdef\endcsname\relax % no MLTeX?
  \message{You need MLTeX extensions to get full hyphenation for Esperanto.}
  \declare@shorthand{eo}{^c}{\^{c}\allowhyphens}
  \declare@shorthand{eo}{^C}{\^{C}\allowhyphens}
  \declare@shorthand{eo}{^g}{\^{g}\allowhyphens}
  \declare@shorthand{eo}{^G}{\^{G}\allowhyphens}
  \declare@shorthand{eo}{^h}{h\llap{\^{}}\allowhyphens}
  \declare@shorthand{eo}{^H}{\^{H}\allowhyphens}
  \declare@shorthand{eo}{^j}{\^{\j}\allowhyphens}
  \declare@shorthand{eo}{^J}{\^{J}\allowhyphens}
  \declare@shorthand{eo}{^s}{\^{s}\allowhyphens}
  \declare@shorthand{eo}{^S}{\^{S}\allowhyphens}
  \declare@shorthand{eo}{^u}{\u u\allowhyphens}
  \declare@shorthand{eo}{^U}{\u U\allowhyphens}
\else
  \declare@shorthand{eo}{^c}{\char230{}}
  \declare@shorthand{eo}{^C}{\char198{}}
  \declare@shorthand{eo}{^g}{\char248{}}
  \declare@shorthand{eo}{^G}{\char216{}}
  \declare@shorthand{eo}{^h}{\char182{}}
  \declare@shorthand{eo}{^H}{\char166{}}
  \declare@shorthand{eo}{^j}{\char188{}}
  \declare@shorthand{eo}{^J}{\char172{}}
  \declare@shorthand{eo}{^s}{\char254{}}
  \declare@shorthand{eo}{^S}{\char222{}}
  \declare@shorthand{eo}{^u}{\char253{}}
  \declare@shorthand{eo}{^U}{\char221{}}
\fi
\addto\extraseo{\languageshorthands{eo}}
\addto\extraseo{\bbl@activate{^}}
\addto\noextraseo{\bbl@deactivate{^}}
\declare@shorthand{system}{^}{\csname normal@char\string^\endcsname}
\declare@shorthand{eo}{^|}{\discretionary{-}{}{}\allowhyphens}
\def\esper#1{\@esper{\@nameuse{c@#1}}}
\def\Esper#1{\@Esper{\@nameuse{c@#1}}}
\def\@esper#1{\ifcase#1\or a\or b\or c\or^c\or d\else\@iesper{#1}\fi}
\def\@Esper#1{\ifcase#1\or A\or B\or C\or^C\or D\else\@Iesper{#1}\fi}
\def\@iesper#1{\ifcase#1\or \or \or \or \or \or e\or f\or g\or^g\or
    h\or^h\or i\or j\or^j\or k\or\or l\or m\or n\or o\or
    p\or s\or^s\or t\or u\or^u\or v\or z\else\@ctrerr\fi}
\def\@Iesper#1{\ifcase#1\or \or \or \or \or \or E\or F\or G\or^G\or
    H\or^H\or I\or J\or^J\or K\or L\or M\or N\or O\or
    P\or S\or^S\or T\or U\or^U\or V\or Z\else\@ctrerr\fi}
\addto\dateeo{\def\hodiau{\today}}
\def\hodiaun{\number\day\textsuperscript{an} de 
   \ifcase\month\or
        januaro\or februaro\or marto\or aprilo\or majo\or junio\or
        julio\or a\u{u}gusto\or septembro\or oktobro\or novembro\or
        decembro\fi\space de la \number\year{\textordfeminine} jaro}
\ldf@finish{eo}
\endinput

%% End of file `eo.ldf'.
