bugtex4ht - Bugs: bug #483, tex4ht produces a raw 'combining...

Show feedback again

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

bug #483: tex4ht produces a raw 'combining macron' in mathml when encountering \bar

Submitted by:  Alex Watson <rotprsl2>
Submitted on:  Fri Sep 18 21:10:40 2020  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat Sep 19 09:40:43 2020, comment #3:

Hi Alex,

bugs in TeX4ht are usually more probable than bugs in validator :)

I've recently fixed lot of MathML issues, but I am sure there are still many bugs left. Some issues are impossible to fix from LaTeX side, these are then fixed by make4ht. So it is important to keep make4ht up-to-date too.

Best regards,

Michal Hoftich <michal_h21>
Project Member
Fri Sep 18 22:31:26 2020, comment #2:

Hi Michal

Thank you! I thought about this a bit more, and I was about to post again asking your opinion of whether this is a bug in tex4ht or in the validator.

Just for reference for the future I post these:


and a similar bug in mathjax:


These come to the same conclusion that you seem to have in your comment, namely that the non-combining version should be used.


Alex Watson <rotprsl2>
Fri Sep 18 22:22:57 2020, comment #1:

Hi Alex, thanks for the report. It seems these combining characters were declared in unicode.4ht. I've changed the definition to use normal characters instead, when it was possible. The fix is already in TeX4ht sources, so it should be available soon.

Michal Hoftich <michal_h21>
Project Member
Fri Sep 18 21:10:40 2020, original submission:

This is a weird one. It seems as though tex4ht accidentally introduces unicode character U+0304 into the middle of the mathml when it encounters \bar.

In ht-bar.tex, I have 'Y = \bar{X}'.

I compile this by running make4ht -uf html5 ht-bar.tex "mathml,". The relevant bit of the mathml in the output is:

<mover accent='true'><mrow><mi>X</mi></mrow><mo accent='true'>̄</mo></mover>

Over there towards the end of the line is >, combining macron, <.

Firefox renders this just fine, but this seems a bit weird, and the W3C validator also complains about it (with a 'warning') - which is how I noticed this.

Alex Watson <rotprsl2>


Attached Files
file #362:  ht-bar.tex added by rotprsl2 (77B - text/x-tex)
file #363:  ht-bar.html added by rotprsl2 (729B - text/html)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by rotprsl2 (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):



    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Sep 22 12:41:37 2020michal_h21Open/ClosedOpen=>Closed
    Fri Sep 18 21:10:40 2020rotprsl2Attached File-=>Added ht-bar.tex, #362
      Attached File-=>Added ht-bar.html, #363
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray