[tex4ht-commits] [SCM] tex4ht updated: r646 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sat Dec 28 23:18:30 CET 2019
Author: michal_h21
Date: 2019-12-29 00:18:29 +0200 (Sun, 29 Dec 2019)
New Revision: 646
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-mathml.tex
trunk/lit/tex4ht-unicode.tex
Log:
Fixed accents in MathML
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2019-12-23 18:15:27 UTC (rev 645)
+++ trunk/lit/ChangeLog 2019-12-28 22:18:29 UTC (rev 646)
@@ -1,3 +1,9 @@
+2019-12-28 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-unicode.tex (unicode.4ht),
+ tex4ht-mathml.tex (mathml.4ht): fixed math accents.
+ https://puszcza.gnu.org.ua/bugs/?444
+
2019-12-23 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-4ht.tex (footmisc.4ht): fixed support for the symbolic footnote
Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex 2019-12-23 18:15:27 UTC (rev 645)
+++ trunk/lit/tex4ht-mathml.tex 2019-12-28 22:18:29 UTC (rev 646)
@@ -755,6 +755,10 @@
>>>
\<plain,latex mathml\><<<
+
+% redefine macro from unicode.4ht to produce better accents
+\def\unicode:mathop#1{\PauseMathClass\HCode{<\a:mathml mo accent="true">}#1\HCode{</\a:mathml mo>}\EndPauseMathClass}
+
\:CheckOption{new-accents} \if:Option \else
\Configure{accent}\widetilde\widetilde{{}{}}
{}
Modified: trunk/lit/tex4ht-unicode.tex
===================================================================
--- trunk/lit/tex4ht-unicode.tex 2019-12-23 18:15:27 UTC (rev 645)
+++ trunk/lit/tex4ht-unicode.tex 2019-12-28 22:18:29 UTC (rev 646)
@@ -349,6 +349,10 @@
applets. a candidadte for delition.
\<plain,latex unicode\><<<
+
+% This will be redefined in mathml.4ht to produce a better markup
+\def\unicode:mathop#1{\mathop{#1}}
+
\:CheckOption{new-accents} \if:Option \else
|<old unicode accents|>
\ifx \mathml:on\:UnDef
@@ -364,25 +368,25 @@
\expand:after{\Configure{accent}}\csname OT1\string\b\endcsname
\b{|<bar below codes|>{}{}}
{\a:accents{}{#1}} {\b:accents{b}{#1}{#2}}
- \def\:vec:over{\ifmmode\expandafter\mathop\fi{\x:unicode{2192}}}
- \def\:grave:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0300}}}
- \def\:acute:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0301}}}
- \def\:hat:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0302}}}
- \def\:widehat:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0302}}}
- \def\:tilde:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0303}}}
- \def\:widetilde:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0303}}}
- \def\:bar:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0304}}}
- \def\:breve:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0306}}}
- \def\:dot:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0307}}}
- \def\:ddot:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0308}}}
- \def\:uml:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0308}}}
- \def\:ring:over{\ifmmode\expandafter\mathop\fi{\x:unicode{030A}}}
- \def\:Huml:over{\ifmmode\expandafter\mathop\fi{\x:unicode{030B}}}
- \def\:check:over{\ifmmode\expandafter\mathop\fi{\x:unicode{030C}}}
- \def\:d:under{\ifmmode\expandafter\mathop\fi{\x:unicode{0323}}}
- \def\:cedil:under{\ifmmode\expandafter\mathop\fi{\x:unicode{0327}}}
- \def\:b:under{\ifmmode\expandafter\mathop\fi{\x:unicode{0331}}}
- \def\:udot:over{\ifmmode\expandafter\mathop\fi{\x:unicode{0361}}}
+ \def\:vec:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{2192}}}
+ \def\:grave:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0300}}}
+ \def\:acute:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0301}}}
+ \def\:hat:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0302}}}
+ \def\:widehat:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0302}}}
+ \def\:tilde:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0303}}}
+ \def\:widetilde:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0303}}}
+ \def\:bar:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0304}}}
+ \def\:breve:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0306}}}
+ \def\:dot:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0307}}}
+ \def\:ddot:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0308}}}
+ \def\:uml:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0308}}}
+ \def\:ring:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{030A}}}
+ \def\:Huml:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{030B}}}
+ \def\:check:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{030C}}}
+ \def\:d:under{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0323}}}
+ \def\:cedil:under{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0327}}}
+ \def\:b:under{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0331}}}
+ \def\:udot:over{\ifmmode\expandafter\unicode:mathop\fi{\x:unicode{0361}}}
\fi
>>>
More information about the tex4ht-commits
mailing list