[tex4ht-commits] [SCM] tex4ht updated: r1232 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Tue Nov 1 13:00:26 CET 2022
Author: michal_h21
Date: 2022-11-01 12:00:26 +0000 (Tue, 01 Nov 2022)
New Revision: 1232
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-mathml.tex
Log:
prevent use of unicode charactes in \mathcal in MathML output
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-10-31 12:34:12 UTC (rev 1231)
+++ trunk/lit/ChangeLog 2022-11-01 12:00:26 UTC (rev 1232)
@@ -1,3 +1,9 @@
+2022-11-01 Michal Hoftich <michal.h21 at gmail.com>
+
+ * 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/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex 2022-10-31 12:34:12 UTC (rev 1231)
+++ trunk/lit/tex4ht-mathml.tex 2022-11-01 12:00:26 UTC (rev 1232)
@@ -629,6 +629,7 @@
|<math fonts utilities|>
|<set mathcal class|>
|<set mathcal symbols|>
+|<redefine mathcal|>
|<mathml plain,fontmath|>
>>>
@@ -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
More information about the tex4ht-commits
mailing list.