[tex4ht-commits] [SCM] tex4ht updated: r1120 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Wed Apr 27 12:47:56 CEST 2022


Author: michal_h21
Date: 2022-04-27 10:47:56 +0000 (Wed, 27 Apr 2022)
New Revision: 1120

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-mathml.tex
Log:
fixes for math rendering of Ulem commands

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-04-26 15:53:45 UTC (rev 1119)
+++ trunk/lit/ChangeLog	2022-04-27 10:47:56 UTC (rev 1120)
@@ -1,3 +1,10 @@
+2022-04-27  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht): corrected class names for Ulem
+	commands in the math mode.
+	* tex4ht-mathml.tex (mathml.4ht): work arounds for displaying
+	lines for Ulem commands.
+
 2022-04-26  Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-4ht.tex (ulem.4ht),

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2022-04-26 15:53:45 UTC (rev 1119)
+++ trunk/lit/tex4ht-html4.tex	2022-04-27 10:47:56 UTC (rev 1120)
@@ -22056,23 +22056,23 @@
 \Configure{uline}
    {\HCode{<span class="uline">}\NoFonts} {\EndNoFonts\HCode{</span>}}
 \Configure{uline-math}
-   {\HCode{<span class="uline">}\NoFonts} {\EndNoFonts\HCode{</span>}}
+   {\HCode{<span class="uline-math">}\NoFonts} {\EndNoFonts\HCode{</span>}}
 \Css{.uline,.uline-math{ text-decoration:underline; }}
 \Configure{uuline}
    {\HCode{<span class="uuline">}\NoFonts} {\EndNoFonts\HCode{</span>}}
 \Configure{uuline-math}
-   {\HCode{<span class="uuline">}\NoFonts} {\EndNoFonts\HCode{</span>}}
+   {\HCode{<span class="uuline-math">}\NoFonts} {\EndNoFonts\HCode{</span>}}
 \Css{.uuline,.uuline-math{ text-decoration:underline double; }}
 \Configure{sout}
    {\HCode{<span class="sout">}\NoFonts} {\EndNoFonts\HCode{</span>}}
 \Configure{sout-math}
-   {\HCode{<span class="sout">}\NoFonts} {\EndNoFonts\HCode{</span>}}
+   {\HCode{<span class="sout-math">}\NoFonts} {\EndNoFonts\HCode{</span>}}
 \Css{span.sout, .sout-math {text-decoration: line-through }}
 \Configure{xout}
    {\HCode{<span class="xout">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Configure{xout-math}
-   {\HCode{<span class="xout">}\NoFonts} 
+   {\HCode{<span class="xout-math">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Css{span.xout, .xout-math {text-decoration: line-through underline }}
 \Configure{uwave}
@@ -22079,7 +22079,7 @@
    {\HCode{<span class="uwave">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Configure{uwave-math}
-   {\HCode{<span class="uwave">}\NoFonts} 
+   {\HCode{<span class="uwave-math">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Css{span.uwave, .uwave-math {text-decoration:underline wavy; }}
 \Configure{dashuline}
@@ -22086,14 +22086,14 @@
    {\HCode{<span class="dashuline">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Configure{dashuline-math}
-   {\HCode{<span class="dashuline">}\NoFonts} 
+   {\HCode{<span class="dashuline-math">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Css{span.dashuline, .dashuline-math {text-decoration:underline dashed;}}
 \Configure{dotuline}
-   {\HCode{<span class="dotuline">}\NoFonts} 
+   {\HCode{<span class="dotuline-math">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Configure{dotuline-math}
-   {\HCode{<span class="dotuline">}\NoFonts} 
+   {\HCode{<span class="dotuline-math">}\NoFonts} 
    {\EndNoFonts\HCode{</span>}}
 \Css{span.dotuline, .dotuline-math {text-decoration:underline dotted;}}
 >>>

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2022-04-26 15:53:45 UTC (rev 1119)
+++ trunk/lit/tex4ht-mathml.tex	2022-04-27 10:47:56 UTC (rev 1120)
@@ -3828,33 +3828,32 @@
    {\HCode{</mrow></munder>}} 
 >>>
 
-Support for the Ulem package in MathML
+Support for the Ulem package in MathML. It seems that text-decoration CSS
+property doesn't work in browsers for Mathml, so we need to use various tricks
+to emulate effects, especially double, dotted and dashed lines. 
+
 \<configure mathml ulem\><<<
 \Configure{uline-math}
-   {\HCode{<mstyle class="uline-math">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}}
-\Css{.uline-math{ text-decoration:underline; }}
+   {\HCode{<menclose class="uline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</menclose>}}
 \Configure{uuline-math}
-   {\HCode{<mstyle class="uuline-math">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}}
-\Css{.uuline-math{ text-decoration:underline double; }}
+   {\HCode{<menclose class="uuline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</menclose>}}
+\Css{.uuline-math{ border-bottom:3px double black; }}
 \Configure{sout-math}
-   {\HCode{<mstyle class="sout-math">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}}
-\Css{.sout-math {text-decoration: line-through }}
+   {\HCode{<menclose class="sout-math" notation="horizontalstrike">}\NoFonts} {\EndNoFonts\HCode{</menclose>}}
 \Configure{xout-math}
-   {\HCode{<mstyle class="xout-math">}\NoFonts} 
-   {\EndNoFonts\HCode{</mstyle>}}
-\Css{.xout-math {text-decoration: line-through underline }}
+   {\HCode{<menclose class="xout-math" notation="horizontalstrike bottom">}\NoFonts} 
+   {\EndNoFonts\HCode{</menclose>}}
 \Configure{uwave-math}
-   {\HCode{<mstyle class="uwave-math">}\NoFonts} 
-   {\EndNoFonts\HCode{</mstyle>}}
-\Css{.uwave-math {text-decoration:underline wavy; }}
+   {\HCode{<menclose class="uwave-math" notation="bottom">}\NoFonts} 
+   {\EndNoFonts\HCode{</menclose>}}
 \Configure{dashuline-math}
-   {\HCode{<mstyle class="dashuline-math">}\NoFonts} 
+   {\HCode{<mstyle class="dashuline-math" notation="bottom">}\NoFonts} 
    {\EndNoFonts\HCode{</mstyle>}}
-\Css{.dashuline-math {text-decoration:underline dashed;}}
+\Css{.dashuline-math {border-bottom: 1px dashed black;}}
 \Configure{dotuline-math}
-   {\HCode{<mstyle class="dotuline-math">}\NoFonts} 
+   {\HCode{<mstyle class="dotuline-math" notation="bottom">}\NoFonts} 
    {\EndNoFonts\HCode{</mstyle>}}
-\Css{.dotuline-math {text-decoration:underline dotted;}}
+\Css{.dotuline-math {border-bottom: 1px dotted black;}}
 >>>
 
 



More information about the tex4ht-commits mailing list.