bugtex4ht - Bugs: bug #278, Wrong mathml with $\langle$

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #278: Wrong mathml with $\langle$

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Thu Mar 31 11:34:24 2016  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu Aug 27 11:17:20 2020, comment #2:

The code from mathml- option for MathClass configurations is now used by default for the MathML output. The previous default code just produced invalid markup in too many cases. See: https://github.com/michal-h21/make4ht/issues/34

There is small difference in the MathML rendering from the default TeX output, as brackets are scaled automatically to match the enclosed content. I hope that it is not really issue.

Michal Hoftich <michal_h21>
Project Member
Wed Jul 1 11:02:51 2020, comment #1:

The mathml- option doesn't insert extra <mrow> elements, so it produces valid MathML code. Semantically, <mrow> should be used to enclose the operator and the fenced code. The MathML code in this case is inserted using ht-fonts mechanism in tex4ht DVI processor. It would be best if it was possible to insert some code in the DVI post-processing in the case when there is unclosed delimiter.

This is the relevant code from tex4ht-mathml.tex:

Michal Hoftich <michal_h21>
Project Member
Thu Mar 31 11:34:24 2016, original submission:

This sample document:

-------------
\documentclass{article}

\begin{document}

hello $\langle$
\end{document}
----------

generates wrong mathml:

--------------
<math
xmlns="http://www.w3.org/1998/Math/MathML"
display="inline" ><mrow ><mo
class="MathClass-open">&#x2329;</mo><mrow></math>
--------------

note the second `<mrow>` tag, there should be closing tag instead. tex4ht expects that there is some more math content following and it is then closed using `\rangle`, which correctly insert closing `</mrow>`.

Michal Hoftich <michal_h21>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by michal_h21 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Aug 27 11:17:20 2020michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray