diff options
Diffstat (limited to 'Master/texmf-dist/source/generic/babel-spanish/spanish.dtx')
-rw-r--r-- | Master/texmf-dist/source/generic/babel-spanish/spanish.dtx | 76 |
1 files changed, 53 insertions, 23 deletions
diff --git a/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx b/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx index dec261a5700..6311cf329c4 100644 --- a/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx +++ b/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx @@ -23,7 +23,7 @@ % \fi % % \ProvidesFile{spanish.dtx} -% [2016/01/15 v5.0o Spanish support from the babel system] +% [2016/03/03 v5.0p Spanish support from the babel system] %\iffalse %% File `spanish.dtx' % @@ -118,7 +118,7 @@ \title{Estilo \textsf{spanish}\\ para el sistema \babel.\footnote{Este archivo está actualmente -en la versión 5.0no con fecha 15 de enero del 2016. ^^A@# +en la versión 5.0p con fecha 3 de marzo del 2016. Esta copia del manual se compuso el~\today.}} \author{Javier Bezos\footnote{Por favor, envíen comentarios y @@ -128,7 +128,7 @@ sus comentarios y sugerencias; en particular, han sido muy activos Juan Luis Varona y José Luis Rivera. Para información sobre actualizaciones: http://www.cervantex.es/}} -\date{15 de enero del 2016} ^^A@# +\date{3 de marzo del 2016} \maketitle @@ -1266,7 +1266,7 @@ Trigg, Madrid, Alianza, 1987, t.~2, págs.~1423~-1451. \section{The Spanish language} The file \file{spanish.dtx}\footnote{The file described in this -section has version number 5.0o and was last revised on 2016-01-15. +section has version number 5.0p and was last revised on 2016-03-03. The maintainer from v4.0 on is Javier Bezos (http://www.tex-tipografia.com). Previous versions were made by Julio S\'anchez. The English documentation has been improved by José Luis @@ -1567,7 +1567,7 @@ previous behavior and macros for backwards compatibility. % \begin{macrocode} %<*code> \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{% @@ -1944,6 +1944,8 @@ previous behavior and macros for backwards compatibility. % versions, depending on the format. % \changes{spanish~5.0o}{2016/01/10}{Fixed EUx: deal with them % separately, to be improved} +% \changes{spanish~5.0p}{2016/03/02}{Added TU. Now with uni encs use the +% actual composite char} % % \begin{macrocode} \addto\mathspanish{\es@sDRC\dotlessi{\es@dotlessi}} @@ -1954,29 +1956,34 @@ previous behavior and macros for backwards compatibility. \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?}}{}% @@ -1992,8 +1999,31 @@ previous behavior and macros for backwards compatibility. \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 |