texlive[56674] Master/texmf-dist: babel-ukrainian (15oct20)

commits+karl at tug.org commits+karl at tug.org
Thu Oct 15 23:14:21 CEST 2020


Revision: 56674
          http://tug.org/svn/texlive?view=revision&revision=56674
Author:   karl
Date:     2020-10-15 23:14:21 +0200 (Thu, 15 Oct 2020)
Log Message:
-----------
babel-ukrainian (15oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/generic/babel-ukrainian/README.md
    trunk/Master/texmf-dist/doc/generic/babel-ukrainian/ukraineb.pdf
    trunk/Master/texmf-dist/source/generic/babel-ukrainian/ukraineb.dtx
    trunk/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf

Modified: trunk/Master/texmf-dist/doc/generic/babel-ukrainian/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/babel-ukrainian/README.md	2020-10-15 21:14:01 UTC (rev 56673)
+++ trunk/Master/texmf-dist/doc/generic/babel-ukrainian/README.md	2020-10-15 21:14:21 UTC (rev 56674)
@@ -1,6 +1,6 @@
 ----------------------------------------------------------------
 
-Ukrainian language module for Babel, v1.4c
+Ukrainian language module for Babel, v1.4e
 
 Released under the LaTeX Project Public License v1.3c or later.
 See http://www.latex-project.org/lppl.txt
@@ -15,7 +15,7 @@
 1. INSTALLATION
 
 - unpack babel-ukrainian.zip
-- run "xelatex.exe ukraineb.dtx" (recommended)
+- run "lualatex.exe ukraineb.dtx" (recommended)
   or "pdflatex.exe ukraineb.dtx";
   run "tex.exe ukraineb.dtx"
   or "tex.exe ukraineb.ins", if you don't need documentation
@@ -81,6 +81,9 @@
 
 5. CHANGES
 
+2020-10-13 version 1.4e
+   * Preventing a problem with duplicate math operators in russian.ldf.
+
 2020-10-13 version 1.4d
    * Added support for pdfstings.
 

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

Modified: trunk/Master/texmf-dist/source/generic/babel-ukrainian/ukraineb.dtx
===================================================================
--- trunk/Master/texmf-dist/source/generic/babel-ukrainian/ukraineb.dtx	2020-10-15 21:14:01 UTC (rev 56673)
+++ trunk/Master/texmf-dist/source/generic/babel-ukrainian/ukraineb.dtx	2020-10-15 21:14:21 UTC (rev 56674)
@@ -6,7 +6,7 @@
 %<*readme>
 ----------------------------------------------------------------
 
-Ukrainian language module for Babel, v1.4c
+Ukrainian language module for Babel, v1.4e
 
 Released under the LaTeX Project Public License v1.3c or later.
 See http://www.latex-project.org/lppl.txt
@@ -22,7 +22,7 @@
 1. INSTALLATION
 
 - unpack babel-ukrainian.zip
-- run "xelatex.exe ukraineb.dtx" (recommended)
+- run "lualatex.exe ukraineb.dtx" (recommended)
   or "pdflatex.exe ukraineb.dtx";
   run "tex.exe ukraineb.dtx"
   or "tex.exe ukraineb.ins", if you don't need documentation
@@ -90,6 +90,9 @@
 
 5. CHANGES
 
+2020-10-13 version 1.4e
+   * Preventing a problem with duplicate math operators in russian.ldf.
+
 2020-10-13 version 1.4d
    * Added support for pdfstings.
 
@@ -200,8 +203,8 @@
 %</internal>
 %<*code>
 \NeedsTeXFormat{LaTeX2e}
-%\ProvidesLanguage{\jobname}[2020/10/13 1.4d Ukrainian support for the Babel system]
-\ProvidesFile{ukraineb.ldf}[2020/10/13 1.4d Ukrainian support for the Babel system]
+%\ProvidesLanguage{\jobname}[2020/10/14 1.4e Ukrainian support for the Babel system]
+\ProvidesFile{ukraineb.ldf}[2020/10/14 1.4e Ukrainian support for the Babel system]
 %</code>
 %<*driver>
 \documentclass[a4paper]{ltxdoc}
@@ -1009,29 +1012,7 @@
 % well enough to Ukrainian version of Windows ANSI encoding which is almost
 % equivalent to \texttt{cp1251}.
 %
-%    \begin{macrocode}
-\@ifpackageloaded{inputenc}{%
-    \if at ukr@uni at ode
-        \PackageWarning{babel}{inputenc should not be used with LuaTeX or XeTeX}
-    \fi
-}{%
-    %\def\reserved at a{LWN}%
-    %\ifx\reserved at a\cyrillicencoding\else
-    \def\reserved at a{OT2}%
-        \ifx\reserved at a\cyrillicencoding
-        \else
-            \def\reserved at a{EU1}%
-            \ifx\reserved at a\cyrillicencoding\else
-                \def\reserved at a{EU2}%
-                \ifx\reserved at a\cyrillicencoding\else
-                     \PackageWarning{babel}%
-                        {No input encoding specified for Ukrainian language}
-                \fi
-            \fi
-        \fi
-    %\fi
-}
-%    \end{macrocode}
+% \changes{1.4e}{2020/10/14}{Removed check if inputenc is loaded}
 %
 %
 %    \subsection{Shorthands}
@@ -1534,7 +1515,7 @@
 % 
 % \subsection{Ukrainian mathetematical typography traditions}
 %
-% \Describe\sh{}
+% \Describe\sh{}%
 % \DescribeOther\ch{}%
 % \DescribeOther\tg{}%
 % \DescribeOther\ctg{}%
@@ -1551,20 +1532,34 @@
 % defined in Latin~1 encoding:
 %
 %    \begin{macrocode}
-\def\sh{\mathop{\operator at font sh}\nolimits}
-\def\ch{\mathop{\operator at font ch}\nolimits}
-\def\tg{\mathop{\operator at font tg}\nolimits}
-\def\ctg{\mathop{\operator at font ctg}\nolimits}
-\def\arctg{\mathop{\operator at font arctg}\nolimits}
-\def\arcctg{\mathop{\operator at font arcctg}\nolimits}
-\addto\extrasukrainian{%
-    \babel at save{\th}%
-    \let\ltx at th\th
-    \def\th{\textormath{\ltx at th}%
-        {\mathop{\operator at font th}\nolimits}}%
+\AtBeginDocument{%
+  \@ifpackagewith{babel}{russian}{\relax}{%
+      \@ifpackageloaded{amsopn}
+      {%
+        \DeclareMathOperator{\sh}{sh}%
+        \DeclareMathOperator{\ch}{ch}%
+        \DeclareMathOperator{\tg}{tg}%
+        \DeclareMathOperator{\ctg}{ctg}%
+        \DeclareMathOperator{\arctg}{arctg}%
+        \DeclareMathOperator{\arcctg}{arcctg}%
+        \DeclareMathOperator{\cth}{cth}%\
+        \DeclareMathOperator{\cosec}{cosec}%
+        \DeclareMathOperator{\math at th}{th}%
+      }{%
+        \DeclareRobustCommand\sh{\mathop{\operator at font sh}\nolimits}%
+        \DeclareRobustCommand\ch{\mathop{\operator at font ch}\nolimits}%
+        \DeclareRobustCommand\tg{\mathop{\operator at font tg}\nolimits}%
+        \DeclareRobustCommand\ctg{\mathop{\operator at font ctg}\nolimits}%
+        \DeclareRobustCommand{\arctg}{\mathop{\operator at font arctg}\nolimits}%
+        \DeclareRobustCommand\arcctg{\mathop{\operator at font arcctg}\nolimits}%
+        \DeclareRobustCommand\cth{\mathop{\operator at font cth}\nolimits}%\MakeRobust\cth%
+        \DeclareRobustCommand\cosec{\mathop{\operator at font cosec}\nolimits}%
+        \DeclareRobustCommand{\math at th}{\mathop{\operator at font arctg}\nolimits}%
+      }%
+      \let\text at th\th%
+      \DeclareRobustCommand{\th}{\TextOrMath{\text at th}{\math at th}}%
+    }%
 }
-\def\cth{\mathop{\operator at font cth}\nolimits}
-\def\cosec{\mathop{\operator at font cosec}\nolimits}
 %    \end{macrocode}
 %
 % For compatibility with older Ukrainian packages we leave definition of the |\No|
@@ -1591,7 +1586,7 @@
 %\iffalse
 %</code>
 %\fi
-% \CheckSum{1092}
+% \CheckSum{1083}
 %\Finale
 %
 %%

Modified: trunk/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf
===================================================================
--- trunk/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf	2020-10-15 21:14:01 UTC (rev 56673)
+++ trunk/Master/texmf-dist/tex/generic/babel-ukrainian/ukraineb.ldf	2020-10-15 21:14:21 UTC (rev 56674)
@@ -12,7 +12,7 @@
 %% See http://www.latex-project.org/lppl.txt
 %% ----------------------------------------------------------------
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{ukraineb.ldf}[2020/10/13 1.4d Ukrainian support for the Babel system]
+\ProvidesFile{ukraineb.ldf}[2020/10/14 1.4e Ukrainian support for the Babel system]
 \LdfInit{ukrainian}{captionsukrainian}
 \ifdefined\if at ukr@uni at ode
     \PackageError{babel}{if at ukr@uni at ode already defined.\MessageBreak
@@ -94,27 +94,6 @@
     \DeclareTextCommand{\AA}{OT1}{\r A}
 \fi
 \DeclareTextFontCommand{\textcyrillic}{\cyrillictext}
-\@ifpackageloaded{inputenc}{%
-    \if at ukr@uni at ode
-        \PackageWarning{babel}{inputenc should not be used with LuaTeX or XeTeX}
-    \fi
-}{%
-    %\def\reserved at a{LWN}%
-    %\ifx\reserved at a\cyrillicencoding\else
-    \def\reserved at a{OT2}%
-        \ifx\reserved at a\cyrillicencoding
-        \else
-            \def\reserved at a{EU1}%
-            \ifx\reserved at a\cyrillicencoding\else
-                \def\reserved at a{EU2}%
-                \ifx\reserved at a\cyrillicencoding\else
-                     \PackageWarning{babel}%
-                        {No input encoding specified for Ukrainian language}
-                \fi
-            \fi
-        \fi
-    %\fi
-}
 \initiate at active@char{"}
 \begingroup \catcode`\"12
 \def\reserved at a{\endgroup
@@ -340,20 +319,34 @@
             \fi}%
     \fi
 }
-\def\sh{\mathop{\operator at font sh}\nolimits}
-\def\ch{\mathop{\operator at font ch}\nolimits}
-\def\tg{\mathop{\operator at font tg}\nolimits}
-\def\ctg{\mathop{\operator at font ctg}\nolimits}
-\def\arctg{\mathop{\operator at font arctg}\nolimits}
-\def\arcctg{\mathop{\operator at font arcctg}\nolimits}
-\addto\extrasukrainian{%
-    \babel at save{\th}%
-    \let\ltx at th\th
-    \def\th{\textormath{\ltx at th}%
-        {\mathop{\operator at font th}\nolimits}}%
+\AtBeginDocument{%
+  \@ifpackagewith{babel}{russian}{\relax}{%
+      \@ifpackageloaded{amsopn}
+      {%
+        \DeclareMathOperator{\sh}{sh}%
+        \DeclareMathOperator{\ch}{ch}%
+        \DeclareMathOperator{\tg}{tg}%
+        \DeclareMathOperator{\ctg}{ctg}%
+        \DeclareMathOperator{\arctg}{arctg}%
+        \DeclareMathOperator{\arcctg}{arcctg}%
+        \DeclareMathOperator{\cth}{cth}%\
+        \DeclareMathOperator{\cosec}{cosec}%
+        \DeclareMathOperator{\math at th}{th}%
+      }{%
+        \DeclareRobustCommand\sh{\mathop{\operator at font sh}\nolimits}%
+        \DeclareRobustCommand\ch{\mathop{\operator at font ch}\nolimits}%
+        \DeclareRobustCommand\tg{\mathop{\operator at font tg}\nolimits}%
+        \DeclareRobustCommand\ctg{\mathop{\operator at font ctg}\nolimits}%
+        \DeclareRobustCommand{\arctg}{\mathop{\operator at font arctg}\nolimits}%
+        \DeclareRobustCommand\arcctg{\mathop{\operator at font arcctg}\nolimits}%
+        \DeclareRobustCommand\cth{\mathop{\operator at font cth}\nolimits}%\MakeRobust\cth%
+        \DeclareRobustCommand\cosec{\mathop{\operator at font cosec}\nolimits}%
+        \DeclareRobustCommand{\math at th}{\mathop{\operator at font arctg}\nolimits}%
+      }%
+      \let\text at th\th%
+      \DeclareRobustCommand{\th}{\TextOrMath{\text at th}{\math at th}}%
+    }%
 }
-\def\cth{\mathop{\operator at font cth}\nolimits}
-\def\cosec{\mathop{\operator at font cosec}\nolimits}
 \DeclareRobustCommand{\No}{%
     \ifmmode{\nfss at text{\textnumero}}\else\textnumero\fi}
 \ldf at finish{ukrainian}



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