summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-02 21:46:45 +0000
committerKarl Berry <karl@freefriends.org>2016-03-02 21:46:45 +0000
commitb0a208d1bb2dde60316eb934e15757372426132e (patch)
treef8c59f0c1ef7c6d2fca20ed1d2328596c5094bdd /Master/texmf-dist/tex
parentde8746a819c0e2ad3fe4c7d6f5deb5ecc3d39838 (diff)
babel-spanish (2mar16)
git-svn-id: svn://tug.org/texlive/trunk@39920 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf66
1 files changed, 47 insertions, 19 deletions
diff --git a/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf b/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf
index 51b105d47a9..73e4ba313cf 100644
--- a/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf
+++ b/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf
@@ -36,7 +36,7 @@
%% Please report errors to: Javier Bezos (preferably)
%% www.tex-tipografia.com
\ProvidesLanguage{spanish.ldf}
- [2016/01/15 v5.0o Spanish support from the babel system]
+ [2016/03/03 v5.0p Spanish support from the babel system]
\LdfInit{spanish}\captionsspanish
\edef\es@savedcatcodes{%
@@ -343,29 +343,34 @@
\addto\@uclclist{\dotlessi\es@texti}
\fi
+\def\es@fetchenc{%
+ \count@\escapechar \escapechar=\m@ne
+ \edef\es@a{\expandafter\string\the\textfont\mathgroup}%
+ \expandafter\split@name\es@a////\@nil
+ \escapechar=\count@
+ \@expandtwoargs\in@{////}{\f@size}%
+ \ifin@\else
+ \PackageError{spanish}{%
+ Non-NFSS font name. The current math font (\es@a)\MessageBreak
+ doesn't follow the NFSS conventions. I'll use the\MessageBreak
+ default \string\i\space for \string\dotlessi,
+ but expect a wrong output.}%
+ {Find where this font has been (re)defined, and fix it.}%
+ \def\f@encoding{OT1}%
+ \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}%
+ \ifx\Umathchardef\@undefined\else
+ \expandafter\Umathchardef\csname es@EU1@dotlessi\endcsname"7"1"0131\relax
+ \expandafter\Umathchardef\csname es@EU2@dotlessi\endcsname"7"1"0131\relax
+ \expandafter\Umathchardef\csname es@TU@dotlessi\endcsname"7"1"0131\relax
+ \fi
\def\es@dotlessi{%
\ifmmode
{\ifnum\mathgroup=\m@ne
\imath
\else
- \count@\escapechar \escapechar=\m@ne
- \edef\es@a{\expandafter\string\the\textfont\mathgroup}%
- \expandafter\split@name\es@a////\@nil
- \escapechar=\count@
- \@expandtwoargs\in@{////}{\f@size}%
- \ifin@\else
- \PackageError{spanish}{%
- Non-NFSS font name. The current math font (\es@a)\MessageBreak
- doesn't follow the NFSS conventions. I'll use the\MessageBreak
- default \string\i\space for \string\dotlessi,
- but expect a wrong output.}%
- {Find where this font has been (re)defined, and fix it.}%
- \def\f@encoding{OT1}%
- \fi
+ \es@fetchenc
\@ifundefined{es@\f@encoding @dotlessi}%
{\@ifundefined{\f@encoding\string\i}%
{\edef\f@encoding{\string?}}{}%
@@ -381,8 +386,31 @@
\def\es@dotlessi{\textormath{\i}{\mathchar"7010}}
\fi
+\def\es@op@ac@base#1{\acute{\if i#1\dotlessi\else#1\fi}}
+\ifx\Umathchar\@undefined\else
+ \def\es@ac@TU@a{"00E1}\def\es@ac@TU@A{"00C1}%
+ \def\es@ac@TU@e{"00E9}\def\es@ac@TU@E{"00C9}%
+ \def\es@ac@TU@i{"00ED}\def\es@ac@TU@I{"00CD}%
+ \def\es@ac@TU@o{"00F3}\def\es@ac@TU@O{"00D3}%
+ \def\es@ac@TU@u{"00FA}\def\es@ac@TU@U{"00DA}%
+ \def\es@op@ac@TU#1{%
+ \ifnum\mathgroup=\m@ne
+ \es@op@ac@base{#1}%
+ \else
+ \es@fetchenc
+ \@ifundefined{es@op@ac@\f@encoding}%
+ {\es@op@ac@base{#1}}%
+ {\@ifundefined{es@ac@TU@#1}%
+ {\es@op@ac@base{#1}}%
+ {\Umathchar"7"1\csname es@ac@TU@#1\endcsname}}%
+ \fi}%
+ \expandafter\let\csname es@op@ac@EU1\endcsname\es@op@ac@TU
+ \expandafter\let\csname es@op@ac@EU2\endcsname\es@op@ac@TU
+\fi
\def\accentedoperators{%
- \def\es@op@ac##1{\acute{\if i##1\dotlessi\else##1\fi}}}
+ \@ifundefined{es@op@ac@TU}%
+ {\let\es@op@ac\es@op@ac@base}%
+ {\let\es@op@ac\es@op@ac@TU}}
\def\unaccentedoperators{%
\def\es@op@ac##1{##1}}
\accentedoperators