texlive[59367] Master/texmf-dist: babel-spanish (27may21)
commits+karl at tug.org
commits+karl at tug.org
Thu May 27 21:53:02 CEST 2021
Revision: 59367
http://tug.org/svn/texlive?view=revision&revision=59367
Author: karl
Date: 2021-05-27 21:53:01 +0200 (Thu, 27 May 2021)
Log Message:
-----------
babel-spanish (27may21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/generic/babel-spanish/README.md
trunk/Master/texmf-dist/doc/generic/babel-spanish/spanish.pdf
trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx
trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.ins
trunk/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty
trunk/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf
Modified: trunk/Master/texmf-dist/doc/generic/babel-spanish/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/babel-spanish/README.md 2021-05-27 19:52:44 UTC (rev 59366)
+++ trunk/Master/texmf-dist/doc/generic/babel-spanish/README.md 2021-05-27 19:53:01 UTC (rev 59367)
@@ -1,62 +1,15 @@
-Spanish for babel 5.0p
+Spanish for babel 5.0q
======================
-This is the babel style for the Spanish language (5.0p).
+This is the babel style for the Spanish language (5.0q).
-History
+Changes
-------
-5.0a. 2007-02-21
-Reimplemented in full, which some parts rewritten from scratch. Added
-the es- mechanism and the mexico option. Many bug fixes
+Fixes:
+* Decimal separator was missing when shorthands=off was set.
+* Bad cell alignment with percentage symbol.
+* shorthands=off broke non-break space.
-5.0d. 2008-05-25
-Fixed two bugs: misplaced subscripts with lim and the like; problem
-with \roman and hyperref
-
-5.0e. 2008-07-06
-Fixed '', which gobbled the space following.
-
-[5.0f. Internal.]
-
-5.0g. 2008-07-19
-Fixed '' again, which killed the preceding kerning
-
-5.0h. 2009-01-02
-Added two package options: es-noenumerate, es-noitemize.
-
-5.0i. 2009-05-11
-Fixed bug with romanidx.
-
-5.0j. 2010-05-23
-Fixed a babel bug for spanish to work with french.
-Fixed a bug with ifthen.
-Fixed a bug with \... and \.
-
-5.0k. 2011-10-06
-Fixed an error when . had mathcode "8000 before loading spanish
-
-5.0l (mistakenly identified as 5.0j). 2013-04-11
-Adapted to new babel modifiers
-
-5.0m. 2014-01-29
-Fixed (rare) bug in font sizes when superscript o/a where used
-Fixed bad spacing in tabular and accents in OT1 encoding
-Restored code for ., accidentally deleted in previous version
-
-5.0n. 2014-04-24
-New macros \spanishdate, \spanishDate, which format dates
- (\today, \Today are now based on them)
-Mainly internal changes, using the new tools in babel 3.9
-Fixed error with \foreignlanguage in tabular
-
-5.0o. 2016-01-15
-New macro \spanishdatefirst
-Fixed a bug when \alph reached tilde-n
-Fixed \dotlessi with lua (but not \acute, yet)
-
-5.0p. 2016-03-03
-Fixed \acute with lua (it now uses the composite char)
-
----------
-2016-03-03
+2021-05-27
Modified: trunk/Master/texmf-dist/doc/generic/babel-spanish/spanish.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx
===================================================================
--- trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx 2021-05-27 19:52:44 UTC (rev 59366)
+++ trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.dtx 2021-05-27 19:53:01 UTC (rev 59367)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
%
-% Copyright (C) 1997 - 2016
-% Javier Bezos (www.tex-tipografia.com)
+% Copyright (C) 1997 - 2021
+% Javier Bezos (www.texnia.com)
% and
% CervanTeX (www.cervantex.es)
%
@@ -23,7 +23,7 @@
% \fi
%
% \ProvidesFile{spanish.dtx}
-% [2016/03/03 v5.0p Spanish support from the babel system]
+% [2021/05/27 v5.0q Spanish support from the babel system]
%\iffalse
%% File `spanish.dtx'
%
@@ -118,17 +118,18 @@
\title{Estilo \textsf{spanish}\\
para el sistema \babel.\footnote{Este archivo está actualmente
-en la versión 5.0p con fecha 3 de marzo del 2016.
+en la versión 5.0q con fecha 3 de mayo del 2021.
Esta copia del manual se compuso el~\today.}}
\author{Javier Bezos\footnote{Por favor, envíen comentarios y
-sugerencias en http://www.tex-tipografia.com/spanish.html. Han
-colaborado de una u otra forma muchas personas, a las cuales agradezco
-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/}}
+sugerencias en http://www.texnia.com/spanish.html, donde se puede
+encontrar más información sobre este estilo, cómo usarlo y las
+decisiones tomadas. Han colaborado de una u otra forma muchas personas,
+a las cuales agradezco sus comentarios y sugerencias; en particular,
+han sido muy activos Juan Luis Varona y José Luis Rivera. Para errores:
+https://github.com/jbezos/babel-spanish.}}
-\date{3 de marzo del 2016}
+\date{27 de mayo del 2021}
\maketitle
@@ -1266,7 +1267,7 @@
\section{The Spanish language}
The file \file{spanish.dtx}\footnote{The file described in this
-section has version number 5.0p and was last revised on 2016-03-03.
+section has version number 5.0q and was last revised on 2021-05-27.
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
@@ -1556,7 +1557,7 @@
% \changes{spanish~5.0n}{2014/01/30}{\cs{es at accent} -- Removed first
% \cs{bbl at allowhyphens}, the second one is ignored if a space
% follows, removed code for spacefactor, removed code for primes}
-% \changes{spanish~5.0n}{2014/04/14}{Check font name in \cs{dotlessi}}}
+% \changes{spanish~5.0n}{2014/04/14}{Check font name in \cs{dotlessi}}
% \changes{spanish~5.0n}{2014/04/23}{Added \cs{spanishdate} and
% \cs{spanishDate}}
% \changes{spanish~5.0o}{2016/01/14}{Added \cs{spanishdate} and
@@ -1567,7 +1568,7 @@
% \begin{macrocode}
%<*code>
\ProvidesLanguage{spanish.ldf}
- [2016/03/03 v5.0p Spanish support from the babel system]
+ [2021/05/27 v5.0q Spanish support from the babel system]
\LdfInit{spanish}\captionsspanish
\edef\es at savedcatcodes{%
@@ -1929,7 +1930,14 @@
\let\es at save@dot\.%
\es at sDRC\.{\@ifnextchar.{\es at dots}{\es at save@dot}}}
\def\es at dots..{\leavevmode\hbox{...}\spacefactor\@M}
-\def\es at sppercent{\unskip\textormath{$\m at th\,$}{\,}}
+\AtBeginDocument{% TODO. Not quite correct.
+ \ifx\pdfstringdefDisableCommands\@undefined\else
+ \pdfstringdefDisableCommands{\let\.\es at save@dot}%
+ \fi}
+\def\es at sppercent{% See tex.stack 435216 @egreg
+ \leavevmode
+ \ifnum\gluestretchorder\lastskip=\z@\unskip\fi
+ \textormath{$\m at th\,$}{\,}}
\def\spanishplainpercent{\let\es at sppercent\@empty}
\addto\textspanish{%
\let\percentsign\%%
@@ -1957,20 +1965,22 @@
\fi
\def\es at fetchenc{%
- \count@\escapechar \escapechar=\m at ne
- \edef\es at a{\expandafter\string\the\textfont\mathgroup}%
- \expandafter\split at name\es at a////\@nil
- \escapechar=\count@
- \@expandtwoargs\in@{////}{\f at size}%
- \ifin@\else
- \PackageError{spanish}{%
- Non-NFSS font name. The current math font (\es at 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 at encoding{OT1}%
- \fi}
+ \begingroup
+ \count@\escapechar \escapechar=\m at ne
+ \edef\es at a{\expandafter\string\the\textfont\mathgroup}%
+ \expandafter\split at name\es at a////\@nil
+ \escapechar=\count@
+ \@expandtwoargs\in@{////}{\f at size}%
+ \ifin@\else
+ \PackageError{spanish}{%
+ Non-NFSS font name. The current math font (\es at 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 at encoding{OT1}%
+ \fi
+ \bbl at exp{\endgroup\def\\\f at encoding{\f at encoding}}}
\ifes at latex
\ifx\Umathchardef\@undefined\else
@@ -2237,6 +2247,8 @@
\es at sdef\'#1{\if#1i\es at accent\'{19}\i\else\es at accent\'{19}{#1}\fi}}
\fi
+\def\es at babeltexpdf#1#2{\babel at texpdf{#1}{#2}{#2}{}}
+
\def\es at sptext@r#1#2{\es at sptext{#1#2}}
\es at declare{"a}{\sptext{a}}
\es at declare{"A}{\sptext{A}}
@@ -2254,11 +2266,11 @@
\es at declare{">}{\guillemotright{}}
\def\es at chf{\char\hyphenchar\font}
\es at declare{"-}{\bbl at allowhyphens\-\bbl at allowhyphens}
-\es at declare{"=}{\bbl at allowhyphens\es at chf\hskip\z at skip}
+\es at declare{"=}{\es at babeltexpdf{\bbl at allowhyphens\es at chf\hskip\z at skip}{-}}
\es at declare{"~}
- {\bbl at allowhyphens
+ {\es at babeltexpdf{\bbl at allowhyphens
\discretionary{\es at chf}{\es at chf}{\es at chf}%
- \bbl at allowhyphens}
+ \bbl at allowhyphens}{-}}
\es at declare{"r}
{\bbl at allowhyphens
\discretionary{\es at chf}{}{r}%
@@ -2285,16 +2297,18 @@
\box\z@
\fi}
\es at declare{"?}
- {\setbox\z@\hbox{?`}%
- \leavevmode\raise\dp\z@\box\z@}
+ {\es at babeltexpdf{\setbox\z@\hbox{?`}%
+ \leavevmode\raise\dp\z@\box\z@}{\textquestiondown}}
\es at declare{"!}
- {\setbox\z@\hbox{!`}%
- \leavevmode\raise\dp\z@\box\z@}
+ {\es at babeltexpdf{\setbox\z@\hbox{!`}%
+ \leavevmode\raise\dp\z@\box\z@}{\textexclamdown}}
\def\spanishdecimal#1{\def\es at decimal{{#1}}}
\def\decimalcomma{\spanishdecimal{,}}
\def\decimalpoint{\spanishdecimal{.}}
\decimalcomma
+\bbl at ifshorthand{.}{}%
+ {\PassOptionsToPackage{es-nodecimaldot}{babel}}
\es at ifoption{nodecimaldot}{}
{\AtBeginDocument{\bgroup\@fileswfalse}%
\begingroup\lccode`\~=`\.\lowercase{\endgroup
@@ -2322,6 +2336,8 @@
\def\es at a#1{\es at declare{.#1}{\es at decimal#1}}%
\es at a1\es at a2\es at a3\es at a4\es at a5\es at a6\es at a7\es at a8\es at a9\es at a0}
+\bbl at ifshorthand{~}{}%
+ {\PassOptionsToPackage{es-notilde}{babel}}
\es at ifoption{notilde}{}{\es at set@shorthand{~}}
\def\deactivatetilden{%
\expandafter\let\csname spanish at sh@\string~@n@\endcsname\relax
@@ -2367,8 +2383,8 @@
\shorthandoff{<>}%
\let\es at quoting\deactivatequoting}}{}}
-\es at declarealt{<<}{"`}{\begin{quoting}}
-\es at declarealt{>>}{"'}{\end{quoting}}
+\es at declarealt{<<}{"`}{\es at babeltexpdf{\begin{quoting}}{\guillemotleft}}
+\es at declarealt{>>}{"'}{\es at babeltexpdf{\end{quoting}}{\guillemotright}}
% \end{macrocode}
%
% Acute accent shorthands are stored in a macro. If |activeacute| was
@@ -2495,7 +2511,8 @@
{\def\es at romandef{%
\def\esromanindex##1##2{##1{\es at scroman{##2}}}%
\def\@roman##1{\es at roman{\number##1}}%
- \def\es at roman##1{\es at scroman{\romannumeral##1}}%
+ \def\es at roman##1{%
+ \es at babeltexpdf{\es at scroman{\romannumeral##1}}{\@Roman{##1}}}%
\DeclareRobustCommand\es at scroman{\es at xlsc\uppercase\@firstofone}}}
\es at optlayout{lcroman}{\es at romandef}
\newcommand\spanishlcroman{\def\@roman##1{\romannumeral##1}}
Modified: trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.ins
===================================================================
--- trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.ins 2021-05-27 19:52:44 UTC (rev 59366)
+++ trunk/Master/texmf-dist/source/generic/babel-spanish/spanish.ins 2021-05-27 19:53:01 UTC (rev 59367)
@@ -3,8 +3,8 @@
%% driver files from the doc files in this package when run through
%% LaTeX or TeX.
%%
-%% Copyright (C) 1997 - 2014
-%% Javier Bezos (www.tex-tipografia.com)
+%% Copyright (C) 1997 - 2021
+%% Javier Bezos (www.texnia.com)
%% and
%% CervanTeX (www.cervantex.es)
%%
@@ -27,7 +27,7 @@
%% --------------- start of docstrip commands ------------------
%%
\def\batchfile{spanish.ins}
-\def\filedate{2014/01/30}
+\def\filedate{2021/05/27}
\input docstrip.tex
{\ifx\generate\undefined
@@ -48,8 +48,8 @@
\declarepreamble\mainpreamble
This is a generated file.
-Copyright (C) 1997 - 2014
- Javier Bezos (www.tex-tipografia.com)
+Copyright (C) 1997 - 2021
+ Javier Bezos (www.texnia.com)
and
CervanTeX (www.cervantex.es)
Modified: trunk/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty 2021-05-27 19:52:44 UTC (rev 59366)
+++ trunk/Master/texmf-dist/tex/generic/babel-spanish/romanidx.sty 2021-05-27 19:53:01 UTC (rev 59367)
@@ -7,8 +7,8 @@
%% spanish.dtx (with options: `indexes')
%% This is a generated file.
%%
-%% Copyright (C) 1997 - 2014
-%% Javier Bezos (www.tex-tipografia.com)
+%% Copyright (C) 1997 - 2021
+%% Javier Bezos (www.texnia.com)
%% and
%% CervanTeX (www.cervantex.es)
%%
Modified: trunk/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf 2021-05-27 19:52:44 UTC (rev 59366)
+++ trunk/Master/texmf-dist/tex/generic/babel-spanish/spanish.ldf 2021-05-27 19:53:01 UTC (rev 59367)
@@ -7,8 +7,8 @@
%% spanish.dtx (with options: `code')
%% This is a generated file.
%%
-%% Copyright (C) 1997 - 2014
-%% Javier Bezos (www.tex-tipografia.com)
+%% Copyright (C) 1997 - 2021
+%% Javier Bezos (www.texnia.com)
%% and
%% CervanTeX (www.cervantex.es)
%%
@@ -36,7 +36,7 @@
%% Please report errors to: Javier Bezos (preferably)
%% www.tex-tipografia.com
\ProvidesLanguage{spanish.ldf}
- [2016/03/03 v5.0p Spanish support from the babel system]
+ [2021/05/27 v5.0q Spanish support from the babel system]
\LdfInit{spanish}\captionsspanish
\edef\es at savedcatcodes{%
@@ -330,7 +330,14 @@
\let\es at save@dot\.%
\es at sDRC\.{\@ifnextchar.{\es at dots}{\es at save@dot}}}
\def\es at dots..{\leavevmode\hbox{...}\spacefactor\@M}
-\def\es at sppercent{\unskip\textormath{$\m at th\,$}{\,}}
+\AtBeginDocument{% TODO. Not quite correct.
+ \ifx\pdfstringdefDisableCommands\@undefined\else
+ \pdfstringdefDisableCommands{\let\.\es at save@dot}%
+ \fi}
+\def\es at sppercent{% See tex.stack 435216 @egreg
+ \leavevmode
+ \ifnum\gluestretchorder\lastskip=\z@\unskip\fi
+ \textormath{$\m at th\,$}{\,}}
\def\spanishplainpercent{\let\es at sppercent\@empty}
\addto\textspanish{%
\let\percentsign\%%
@@ -344,20 +351,22 @@
\fi
\def\es at fetchenc{%
- \count@\escapechar \escapechar=\m at ne
- \edef\es at a{\expandafter\string\the\textfont\mathgroup}%
- \expandafter\split at name\es at a////\@nil
- \escapechar=\count@
- \@expandtwoargs\in@{////}{\f at size}%
- \ifin@\else
- \PackageError{spanish}{%
- Non-NFSS font name. The current math font (\es at 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 at encoding{OT1}%
- \fi}
+ \begingroup
+ \count@\escapechar \escapechar=\m at ne
+ \edef\es at a{\expandafter\string\the\textfont\mathgroup}%
+ \expandafter\split at name\es at a////\@nil
+ \escapechar=\count@
+ \@expandtwoargs\in@{////}{\f at size}%
+ \ifin@\else
+ \PackageError{spanish}{%
+ Non-NFSS font name. The current math font (\es at 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 at encoding{OT1}%
+ \fi
+ \bbl at exp{\endgroup\def\\\f at encoding{\f at encoding}}}
\ifes at latex
\ifx\Umathchardef\@undefined\else
@@ -576,6 +585,8 @@
\es at sdef\'#1{\if#1i\es at accent\'{19}\i\else\es at accent\'{19}{#1}\fi}}
\fi
+\def\es at babeltexpdf#1#2{\babel at texpdf{#1}{#2}{#2}{}}
+
\def\es at sptext@r#1#2{\es at sptext{#1#2}}
\es at declare{"a}{\sptext{a}}
\es at declare{"A}{\sptext{A}}
@@ -593,11 +604,11 @@
\es at declare{">}{\guillemotright{}}
\def\es at chf{\char\hyphenchar\font}
\es at declare{"-}{\bbl at allowhyphens\-\bbl at allowhyphens}
-\es at declare{"=}{\bbl at allowhyphens\es at chf\hskip\z at skip}
+\es at declare{"=}{\es at babeltexpdf{\bbl at allowhyphens\es at chf\hskip\z at skip}{-}}
\es at declare{"~}
- {\bbl at allowhyphens
+ {\es at babeltexpdf{\bbl at allowhyphens
\discretionary{\es at chf}{\es at chf}{\es at chf}%
- \bbl at allowhyphens}
+ \bbl at allowhyphens}{-}}
\es at declare{"r}
{\bbl at allowhyphens
\discretionary{\es at chf}{}{r}%
@@ -624,16 +635,18 @@
\box\z@
\fi}
\es at declare{"?}
- {\setbox\z@\hbox{?`}%
- \leavevmode\raise\dp\z@\box\z@}
+ {\es at babeltexpdf{\setbox\z@\hbox{?`}%
+ \leavevmode\raise\dp\z@\box\z@}{\textquestiondown}}
\es at declare{"!}
- {\setbox\z@\hbox{!`}%
- \leavevmode\raise\dp\z@\box\z@}
+ {\es at babeltexpdf{\setbox\z@\hbox{!`}%
+ \leavevmode\raise\dp\z@\box\z@}{\textexclamdown}}
\def\spanishdecimal#1{\def\es at decimal{{#1}}}
\def\decimalcomma{\spanishdecimal{,}}
\def\decimalpoint{\spanishdecimal{.}}
\decimalcomma
+\bbl at ifshorthand{.}{}%
+ {\PassOptionsToPackage{es-nodecimaldot}{babel}}
\es at ifoption{nodecimaldot}{}
{\AtBeginDocument{\bgroup\@fileswfalse}%
\begingroup\lccode`\~=`\.\lowercase{\endgroup
@@ -661,6 +674,8 @@
\def\es at a#1{\es at declare{.#1}{\es at decimal#1}}%
\es at a1\es at a2\es at a3\es at a4\es at a5\es at a6\es at a7\es at a8\es at a9\es at a0}
+\bbl at ifshorthand{~}{}%
+ {\PassOptionsToPackage{es-notilde}{babel}}
\es at ifoption{notilde}{}{\es at set@shorthand{~}}
\def\deactivatetilden{%
\expandafter\let\csname spanish at sh@\string~@n@\endcsname\relax
@@ -706,8 +721,8 @@
\shorthandoff{<>}%
\let\es at quoting\deactivatequoting}}{}}
-\es at declarealt{<<}{"`}{\begin{quoting}}
-\es at declarealt{>>}{"'}{\end{quoting}}
+\es at declarealt{<<}{"`}{\es at babeltexpdf{\begin{quoting}}{\guillemotleft}}
+\es at declarealt{>>}{"'}{\es at babeltexpdf{\end{quoting}}{\guillemotright}}
\begingroup
\catcode`\'=12
\gdef\es at activeacute{%
@@ -811,7 +826,8 @@
{\def\es at romandef{%
\def\esromanindex##1##2{##1{\es at scroman{##2}}}%
\def\@roman##1{\es at roman{\number##1}}%
- \def\es at roman##1{\es at scroman{\romannumeral##1}}%
+ \def\es at roman##1{%
+ \es at babeltexpdf{\es at scroman{\romannumeral##1}}{\@Roman{##1}}}%
\DeclareRobustCommand\es at scroman{\es at xlsc\uppercase\@firstofone}}}
\es at optlayout{lcroman}{\es at romandef}
\newcommand\spanishlcroman{\def\@roman##1{\romannumeral##1}}
More information about the tex-live-commits
mailing list.