From c8e8cc7058d347b56d935ed72ed470df7e78493f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 15 Jan 2016 22:59:13 +0000 Subject: babel-spanish (15jan16) git-svn-id: svn://tug.org/texlive/trunk@39392 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/generic/babel-spanish/romanidx.sty | 2 +- .../tex/generic/babel-spanish/spanish.ldf | 39 ++++++++++++++++------ 2 files changed, 29 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex/generic/babel-spanish') diff --git a/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty b/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty index f00e9dac35b..32d25215497 100644 --- a/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty +++ b/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty @@ -29,7 +29,7 @@ %% extension .ins) which are part of the distribution. %% File `spanish.dtx' %% Spanish Language Definition File -%% Copyright (C) 1997 - 2014 +%% Copyright (C) 1997 - 2016 %% Javier Bezos (www.tex-tipografia.com) %% and %% CervanTeX (www.cervantex.es) diff --git a/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf b/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf index d7756d03f72..51b105d47a9 100644 --- a/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf +++ b/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf @@ -29,14 +29,14 @@ %% extension .ins) which are part of the distribution. %% File `spanish.dtx' %% Spanish Language Definition File -%% Copyright (C) 1997 - 2014 +%% Copyright (C) 1997 - 2016 %% Javier Bezos (www.tex-tipografia.com) %% and %% CervanTeX (www.cervantex.es) %% Please report errors to: Javier Bezos (preferably) %% www.tex-tipografia.com \ProvidesLanguage{spanish.ldf} - [2014/04/24 v5.0n Spanish support from the babel system] + [2016/01/15 v5.0o Spanish support from the babel system] \LdfInit{spanish}\captionsspanish \edef\es@savedcatcodes{% @@ -175,9 +175,19 @@ \newcommand\spanishDate{\es@date{uc}} \def\es@date#1#2#3#4{% \ifcase\es@datefmt - \number#4~de \csname#1month\romannumeral#3name\endcsname + \ifnum#4=1 + \es@datefirst + \else + \number#4\relax + \fi + ~de \csname#1month\romannumeral#3name\endcsname \else - \csname#1month\romannumeral#3name\endcsname~\number#4\relax + \csname#1month\romannumeral#3name\endcsname~% + \ifnum#4=1 + \es@datefirst + \else + \number#4\relax + \fi \fi \ de% \ifnum#2>1999\relax\es@yearl @@ -189,6 +199,8 @@ \def\spanishdatedel{\def\es@yearl{l}} \def\spanishdatede{\let\es@yearl\@empty} \spanishdatede +\def\spanishdatefirst{\def\es@datefirst} +\spanishdatefirst{1} \def\selectspanish{% \def\selectspanish{% \def\selectspanish{% @@ -332,6 +344,9 @@ \fi \ifes@latex + \@ifundefined{Umathchardef}{}% + {\expandafter\Umathchardef\csname es@EU1@dotlessi\endcsname"7"1"0131\relax + \expandafter\Umathchardef\csname es@EU2@dotlessi\endcsname"7"1"0131\relax}% \def\es@dotlessi{% \ifmmode {\ifnum\mathgroup=\m@ne @@ -351,11 +366,13 @@ {Find where this font has been (re)defined, and fix it.}% \def\f@encoding{OT1}% \fi - \@ifundefined{\f@encoding\string\i}% - {\edef\f@encoding{\string?}}{}% - \expandafter\count@\the\csname\f@encoding\string\i\endcsname - \advance\count@"7000 - \mathchar\count@ + \@ifundefined{es@\f@encoding @dotlessi}% + {\@ifundefined{\f@encoding\string\i}% + {\edef\f@encoding{\string?}}{}% + \expandafter\count@\the\csname\f@encoding\string\i\endcsname + \advance\count@"7000 + \mathchar\count@}% + {\csname es@\f@encoding @dotlessi\endcsname}% \fi}% \else \i @@ -777,7 +794,7 @@ \@afterindenttrue} \es@optlayout{nosectiondot}{% \def\@seccntformat#1{\csname the#1\endcsname.\quad}% - \def\numberline#1{\hb@xt@\@tempdima{#1\if&\else.\fi\hfil}}} + \def\numberline#1{\hb@xt@\@tempdima{#1\ifx&\else.\fi\hfil}}} \es@ifoption{nolayout}{\let\layoutspanish\relax}{} \es@ifoption{sloppy}{\let\textspanish\relax\let\mathspanish\relax}{} \es@ifoption{delayed}{}{\def\es@layoutspanish{\layoutspanish}} @@ -802,8 +819,8 @@ \ifes@latex\else \es@select \fi -\ldf@finish{spanish} \csname activatequoting\endcsname +\ldf@finish{spanish} \endinput %% %% End of file `spanish.ldf'. -- cgit v1.2.3