% This is file is guarani.ldf
%
% Copyright (c) 2004 Javier Bezos
% All rights reserved.
%
% Please report bugs to: [email protected]

\LdfInit{guarani}\captionsguarani

\ifx\l@guarani\@undefined
 \@nopatterns{guarani}
 \adddialect\l@guarani0\fi

% Captions

\addto\captionsspanish{%
 \def\prefacename{Prefacio}%
 \def\refname{Referencias}%
 \def\abstractname{Resumen}%
 \def\bibname{Bibliograf\'{\i}a}%
 \def\chaptername{Cap\'{\i}tulo}%
 \def\appendixname{Ap\'endice}%
 \def\listfigurename{\'Indice de figuras}%
 \def\listtablename{\'Indice de cuadros}%
 \def\indexname{\'Indice alfab\'etico}%
 \def\figurename{Figura}%
 \def\tablename{Cuadro}%
 \def\partname{Parte}%
 \def\enclname{Adjunto}%
 \def\ccname{Copia a}%
 \def\headtoname{A}%
 \def\pagename{P\'agina}%
 \def\seename{v\'ease}%
 \def\alsoname{v\'ease tambi\'en}%
 \def\proofname{Demostraci\'on}%
 \def\glossaryname{Glosario}}

% Date

\def\dateguarani{%
 \def\today{\number\day{--a}~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}}

% Guarani puso

\def\setguaranipuso#1#2#3{%
 \def\gn@bpuso{#1}%
 \def\gn@mpuso{#2}%
 \def\gn@epuso{#3}}

% Shorthands

\addto\extrasguarani{%
 \languageshorthands{guarani}%
 \lccode`'=`'
 \bbl@frenchspacing}%
\addto\noextrasguarani{%
 \lccode`'=\z@
 \bbl@nonfrenchspacing}%

\initiate@active@char{^}
\addto\extrasguarani{\bbl@activate{^}}
\addto\noextrasguarani{\bbl@deactivate{^}}

\declare@shorthand{system}{^}{\csname normal@char\string^\endcsname}

\declare@shorthand{guarani}{^a}{\allowhyphens\~{a}\allowhyphens}
\declare@shorthand{guarani}{^A}{\allowhyphens\~{A}\allowhyphens}
\declare@shorthand{guarani}{^e}{\allowhyphens\~{e}\allowhyphens}
\declare@shorthand{guarani}{^E}{\allowhyphens\~{E}\allowhyphens}
\declare@shorthand{guarani}{^i}{\allowhyphens\~{\i}\allowhyphens}
\declare@shorthand{guarani}{^I}{\allowhyphens\~{I}\allowhyphens}
\declare@shorthand{guarani}{^o}{\allowhyphens\~{o}\allowhyphens}
\declare@shorthand{guarani}{^O}{\allowhyphens\~{O}\allowhyphens}
\declare@shorthand{guarani}{^u}{\allowhyphens\~{u}\allowhyphens}
\declare@shorthand{guarani}{^U}{\allowhyphens\~{U}\allowhyphens}
\declare@shorthand{guarani}{^y}{\allowhyphens\~{y}\allowhyphens}
\declare@shorthand{guarani}{^Y}{\allowhyphens\~{Y}\allowhyphens}
\declare@shorthand{guarani}{^g}{\allowhyphens\~{g}\allowhyphens}
\declare@shorthand{guarani}{^G}{\allowhyphens\~{G}\allowhyphens}
\declare@shorthand{guarani}{^n}{\allowhyphens\~{n}\allowhyphens}
\declare@shorthand{guarani}{^N}{\allowhyphens\~{N}\allowhyphens}

\initiate@active@char{"}
\addto\extrasguarani{\bbl@activate{"}}
\addto\noextrasguarani{\bbl@deactivate{"}}

\declare@shorthand{guarani}{"a}{\allowhyphens\'{a}\allowhyphens}
\declare@shorthand{guarani}{"A}{\allowhyphens\'{A}\allowhyphens}
\declare@shorthand{guarani}{"e}{\allowhyphens\'{e}\allowhyphens}
\declare@shorthand{guarani}{"E}{\allowhyphens\'{E}\allowhyphens}
\declare@shorthand{guarani}{"i}{\allowhyphens\'{\i}\allowhyphens}
\declare@shorthand{guarani}{"I}{\allowhyphens\'{I}\allowhyphens}
\declare@shorthand{guarani}{"o}{\allowhyphens\'{o}\allowhyphens}
\declare@shorthand{guarani}{"O}{\allowhyphens\'{O}\allowhyphens}
\declare@shorthand{guarani}{"u}{\allowhyphens\'{u}\allowhyphens}
\declare@shorthand{guarani}{"U}{\allowhyphens\'{U}\allowhyphens}
\declare@shorthand{guarani}{"y}{\allowhyphens\'{y}\allowhyphens}
\declare@shorthand{guarani}{"Y}{\allowhyphens\'{Y}\allowhyphens}

\initiate@active@char{'}
\addto\extrasguarani{\bbl@activate{'}}
\addto\noextrasguarani{\bbl@deactivate{'}}

\declare@shorthand{guarani}{'}{%
 \if$\gn@bpuso\gn@mpuso\gn@epuso$%
   \string'%
 \else
   \allowhyphens
   \kern-\gn@bpuso
   \lower\gn@mpuso\hbox{\string'}%
   \kern-\gn@epuso
   \allowhyphens
 \fi}

\setguaranipuso{}{}{}

\ldf@finish{guarani}

\endinput