texlive[64895] Master/texmf-dist: avoid Unicode for \mathcal, tex4ht

commits+karl at tug.org commits+karl at tug.org
Tue Nov 1 21:54:18 CET 2022


Revision: 64895
          http://tug.org/svn/texlive?view=revision&revision=64895
Author:   karl
Date:     2022-11-01 21:54:17 +0100 (Tue, 01 Nov 2022)
Log Message:
-----------
avoid Unicode for \mathcal, tex4ht r1232; avoid <mdt>, tex4ht r1233

Revision Links:
--------------
    http://tug.org/svn/texlive?view=revision&revision=1232
    http://tug.org/svn/texlive?view=revision&revision=1233

Modified Paths:
--------------
    trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
    trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
    trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-11-01 19:58:05 UTC (rev 64894)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog	2022-11-01 20:54:17 UTC (rev 64895)
@@ -1,3 +1,13 @@
+2022-11-01  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (mathml.4ht): don't add <mdt> elements for math
+	array vspace, as it can lead to wrong size of the table.
+	https://github.com/michal-h21/make4ht/issues/91
+
+	* tex4ht-mathml.tex(mathml.4ht): prevent use of Unicode characters
+	inside \mathcal. 
+	https://github.com/michal-h21/make4ht/issues/95
+
 2022-10-31  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht, html-mml.4ht): fixed output of the

Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2022-11-01 19:58:05 UTC (rev 64894)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex	2022-11-01 20:54:17 UTC (rev 64895)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1231 2022-10-31 12:34:12Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1233 2022-11-01 13:36:13Z michal_h21 $$
 % compile 3 times: latex tex4ht-mathltx
 %           or   xhlatex tex4ht-mathltx "html,3,sections+"
 %
@@ -629,6 +629,7 @@
 |<math fonts utilities|>
 |<set mathcal class|>
 |<set mathcal symbols|>
+|<redefine mathcal|>
 |<mathml plain,fontmath|>
 >>>
 
@@ -1241,7 +1242,7 @@
    {</\a:mathml mtr>}
    {<\a:mathml mtr\Hnewline
          \mml:class="array-vspace" style="font-size:\HBorderspace">}
-   {<\a:mathml mtd\Hnewline></\a:mathml mtd>}
+   {}
    {</\a:mathml mtr>}
   }
 
@@ -4487,11 +4488,16 @@
 \fi
 >>>
 
+This version of mathcal will prevent conversion of letters to Unicode Script values. 
+The Script style is required using the mathvariant attribute, so it should be 
+rendered correctly.
 
+\<redefine mathcal\><<<
+\def\:tempa#1{\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{</\a:mathml mstyle>}}
+\HLet\mathcal\:tempa
+>>>
 
 
-
-
 \<configure mathml amssymb\><<<
 \def\:tempa#1"#2#3///{%
    \edef\:next{\noexpand\Configure{MathClass}{\ifnum 0=#2

Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2022-11-01 19:58:05 UTC (rev 64894)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht	2022-11-01 20:54:17 UTC (rev 64895)
@@ -1,4 +1,4 @@
-% mathml.4ht (2022-10-31-13:02), generated from tex4ht-mathml.tex
+% mathml.4ht (2022-11-01-13:10), generated from tex4ht-mathml.tex
 % Copyright 2009-2022 TeX Users Group
 % Copyright 1999-2009 Eitan M. Gurari
 %
@@ -17,7 +17,7 @@
 %
 % If you modify this program, changing the
 % version identification would be appreciated.
-\immediate\write-1{version 2022-10-31-13:02}
+\immediate\write-1{version 2022-11-01-13:10}
 
 \exit:ifnot{Preamble,% 
 accents,% 
@@ -613,7 +613,7 @@
    {</\a:mathml mtr>}
    {<\a:mathml mtr\Hnewline
          \mml:class="array-vspace" style="font-size:\HBorderspace">}
-   {<\a:mathml mtd\Hnewline></\a:mathml mtd>}
+   {}
    {</\a:mathml mtr>}
   }
 
@@ -1419,6 +1419,9 @@
 \egroup
 \fi
 
+\def\:tempa#1{\HCode{<\a:mathml mstyle\Hnewline mathvariant="script">}#1\HCode{</\a:mathml mstyle>}}
+\HLet\mathcal\:tempa
+
 \expandafter\ifx \csname o at everypar\endcsname\relax \else
 \expandafter\ifx \csname ht:everypar\endcsname\relax
   \let\ht:everypar\o at everypar



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