texlive[54507] Master/texmf-dist: babel-greek (23mar20)

commits+karl at tug.org commits+karl at tug.org
Mon Mar 23 23:23:08 CET 2020


Revision: 54507
          http://tug.org/svn/texlive?view=revision&revision=54507
Author:   karl
Date:     2020-03-23 23:23:08 +0100 (Mon, 23 Mar 2020)
Log Message:
-----------
babel-greek (23mar20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/babel-greek/README
    trunk/Master/texmf-dist/doc/generic/babel-greek/README.html
    trunk/Master/texmf-dist/doc/generic/babel-greek/babel-greek.pdf
    trunk/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf
    trunk/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex
    trunk/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.pdf
    trunk/Master/texmf-dist/doc/generic/babel-greek/test-unicode-lgr.pdf
    trunk/Master/texmf-dist/doc/generic/babel-greek/usage.pdf
    trunk/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
    trunk/Master/texmf-dist/tex/generic/babel-greek/greek.ldf

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/README
===================================================================
--- trunk/Master/texmf-dist/doc/generic/babel-greek/README	2020-03-23 22:22:49 UTC (rev 54506)
+++ trunk/Master/texmf-dist/doc/generic/babel-greek/README	2020-03-23 22:23:08 UTC (rev 54507)
@@ -64,6 +64,7 @@
 1.9h  2019-07-11   Move breathing composite commands to textalpha_.
 1.9i  2020-02-28   Update test for Unicode fonts.
                    Fix accent in ``\seename`` and ``\alsoname``.
+1.9j  2020/03/17   Fix ampersand in math.
 ===== ============ ============================================================
 
 

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/README.html
===================================================================
--- trunk/Master/texmf-dist/doc/generic/babel-greek/README.html	2020-03-23 22:22:49 UTC (rev 54506)
+++ trunk/Master/texmf-dist/doc/generic/babel-greek/README.html	2020-03-23 22:23:08 UTC (rev 54507)
@@ -752,6 +752,10 @@
 <td><p>Update test for Unicode fonts.
 Fix accent in <span class="docutils literal">\seename</span> and <span class="docutils literal">\alsoname</span>.</p></td>
 </tr>
+<tr><td><p>1.9j</p></td>
+<td><p>2020/03/17</p></td>
+<td><p>Fix ampersand in math.</p></td>
+</tr>
 </tbody>
 </table>
 </section>

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/babel-greek.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/test-greek.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex
===================================================================
--- trunk/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex	2020-03-23 22:22:49 UTC (rev 54506)
+++ trunk/Master/texmf-dist/doc/generic/babel-greek/test-greek.tex	2020-03-23 22:23:08 UTC (rev 54507)
@@ -101,7 +101,7 @@
 Switching to a font encoding supporting the Greek script is possible without
 switching the Babel language using the declarations \verb|\greekscript| (no
 switch if the current encoding supports Greek script (e.g. the Unicode font
-encodings EU1, EU2)) or \verb|\greektext| (always switch to LGR) and the
+encoding TU)) or \verb|\greektext| (always switch to LGR) and the
 corresponding macros \verb|\ensuregreek| or \verb|\textgreek|. These
 commands do not start a new paragraph:
 
@@ -109,28 +109,30 @@
 \latintext Friends (\ensuregreek{F\'ilwn}) of TeX.
 
 \texttt{greek.ldf} has some workarounds, so that macros relying on Latin
-characters in the ``right'' positions keep working. We test, that these
+characters in standard positions keep working. We test, that these
 definitions do not overwrite the selection of pre-composed characters for
-``copyright'' and ``registered trade mark'' by ``textcomp'' (try copy and
+``copyright'' and ``registered trade mark'' by \emph{textcomp} (try copy and
 paste from the PDF output):
 
-Greek (LGR): \ensuregreek{Α \& Ω, \textcopyright{} \textregistered{}
-\texttrademark{}, © ® ™ } \\
-Latin: A \& O.
+Latin: A \& O, © ® ™ \\
+Greek (LGR): \ensuregreek{Α \textampersand{} Ω,
+\textcopyright{} \textregistered{} \texttrademark{}, \& © ® ™ }.
 
+The ampersand should also work in mathematical mode: $ 1 \& 2 $
+
 To prevent Roman numerals being typeset in Greek letters we need to adopt
 the internal LaTeX commands. Note that this may cause errors when roman
 numerals are used in a situation where the macros need to be expanded:
 
 \makeatletter
-Greek: \ensuregreek{
+Latin:
 \@roman{1}, \@roman{2}, \@roman{3}, \@roman{4}, \ldots, \@roman{1975}
 \@Roman{1}, \@Roman{2}, \@Roman{3}, \@Roman{4}, \ldots, \@Roman{1975}
-}
 
-Latin:
+Greek: \ensuregreek{
 \@roman{1}, \@roman{2}, \@roman{3}, \@roman{4}, \ldots, \@roman{1975}
 \@Roman{1}, \@Roman{2}, \@Roman{3}, \@Roman{4}, \ldots, \@Roman{1975}
+}
 \makeatother
 
 \section{MakeUppercase, MakeLowercase}

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/test-unicode-greek.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/test-unicode-lgr.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/babel-greek/usage.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx
===================================================================
--- trunk/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx	2020-03-23 22:22:49 UTC (rev 54506)
+++ trunk/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx	2020-03-23 22:23:08 UTC (rev 54507)
@@ -26,7 +26,7 @@
 % and covered by LPPL is defined by the unpacking script (babel-greek.ins)
 % which is part of the package.
 % \fi
-% \CheckSum{1543}
+% \CheckSum{1550}
 %
 % \iffalse
 %    Tell the \LaTeX\ system who we are and write an entry on the
@@ -37,7 +37,7 @@
 %<code>\ProvidesLanguage{greek}
 %\fi
 %\ProvidesFile{babel-greek.dtx}
-        [2020/02/27 v1.9i Greek support for the babel system]
+        [2020/03/17 v1.9j Greek support for the babel system]
 %\iffalse
 %% File `babel-greek.dtx'
 %% Greek language Definition File
@@ -127,6 +127,7 @@
 %   to textalpha.}
 % \changes{babel-greek-1.9i}{2020/02/28}{Update test for Unicode fonts.
 %   Fix accent in seename and alsoname.}
+% \changes{babel-greek-1.9j}{2020/03/17}{Fix ampersand in math.}
 %
 % \title{Babel support for the Greek language}
 % \author{Apostolos Syropoulos, Günter Milde}
@@ -527,6 +528,8 @@
 % We redefine a few commands in the LGR encoding to work around problems
 % because LGR is no \emph{standard text encoding} but has Greek letters in
 % the places of Latin ones.
+% The ampersand must work in text and math mode. We provide the text
+% command |\textampersand| and re-define |\&| to use it in text mode.
 % \changes{greekfdd-2.2c}{1999/04/05}{Fixed typos, \cs{textrademark}
 %    misses a `t', \cs{copyright} should be \cs{textcopyright}}
 % \changes{greekfdd-2.2d}{1999/04/25}{removed redefinition of \cs{\&}}
@@ -536,6 +539,7 @@
 % \changes{greek-1.5}{2013/05/27}{enable use of "textcomp" characters
 %    for "textcopyright" and "textregistered" macros}
 % \changes{greek-1.5}{2013/06/15}{\textbackslash & made TextCommand}
+% \changes{babel-greek-1.9j}{2020/03/17}{Fix ampersand in math.}
 %
 %    \begin{macrocode}
   \ProvideTextCommand{\textcopyright}{LGR}{\ensureascii{\textcopyright}}
@@ -542,8 +546,9 @@
   \ProvideTextCommand{\textregistered}{LGR}{\ensureascii{\textregistered}}
   \ProvideTextCommand{\texttrademark}{LGR}{\ensureascii{\texttrademark}}
   \let\ltx at amp\&
-  \DeclareTextCommandDefault{\&}{\ltx at amp}
-  \DeclareTextCommand{\&}{LGR}{\ensureascii{\ltx at amp}}
+  \ProvideTextCommandDefault{\textampersand}{\ltx at amp}
+  \ProvideTextCommand{\textampersand}{LGR}{\ensureascii{\ltx at amp}}
+  \DeclareRobustCommand{\&}{\ifmmode\ltx at amp\else\textampersand\fi}
   \ProvideTextCommand{\SS}{LGR}{\ensureascii{\SS}}
 %    \end{macrocode}
 %

Modified: trunk/Master/texmf-dist/tex/generic/babel-greek/greek.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel-greek/greek.ldf	2020-03-23 22:22:49 UTC (rev 54506)
+++ trunk/Master/texmf-dist/tex/generic/babel-greek/greek.ldf	2020-03-23 22:23:08 UTC (rev 54507)
@@ -32,7 +32,7 @@
 %% and covered by LPPL is defined by the unpacking script (babel-greek.ins)
 %% which is part of the package.
 \ProvidesLanguage{greek}
-        [2020/02/27 v1.9i Greek support for the babel system]
+        [2020/03/17 v1.9j Greek support for the babel system]
 %% File `babel-greek.dtx'
 %% Greek language Definition File
 %% Copyright © 1997, 2005 Apostolos Syropoulos, Johannes Braams
@@ -100,8 +100,9 @@
   \ProvideTextCommand{\textregistered}{LGR}{\ensureascii{\textregistered}}
   \ProvideTextCommand{\texttrademark}{LGR}{\ensureascii{\texttrademark}}
   \let\ltx at amp\&
-  \DeclareTextCommandDefault{\&}{\ltx at amp}
-  \DeclareTextCommand{\&}{LGR}{\ensureascii{\ltx at amp}}
+  \ProvideTextCommandDefault{\textampersand}{\ltx at amp}
+  \ProvideTextCommand{\textampersand}{LGR}{\ensureascii{\ltx at amp}}
+  \DeclareRobustCommand{\&}{\ifmmode\ltx at amp\else\textampersand\fi}
   \ProvideTextCommand{\SS}{LGR}{\ensureascii{\SS}}
   \def\@roman#1{\expandafter\ensureascii\expandafter{\romannumeral#1}}
   \def\@Roman#1{\expandafter\ensureascii\expandafter{%



More information about the tex-live-commits mailing list.