Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

overdot wrong in OOXML output #299

Closed
opoudjis opened this issue Sep 26, 2024 · 1 comment · Fixed by #300
Closed

overdot wrong in OOXML output #299

opoudjis opened this issue Sep 26, 2024 · 1 comment · Fixed by #300
Assignees
Labels
bug Something isn't working

Comments

@opoudjis
Copy link
Contributor

opoudjis commented Sep 26, 2024

Reported in metanorma/metanorma-ieee#418

[asciimath]
++++
dot Theta ne ddot Theta
++++

renders correctly in MathML:

<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mstyle displaystyle="true">
    <mover>
      <mo>Θ</mo>
      <mo>.</mo>
    </mover>
    <mo>≠</mo>
    <mover accent="true">
      <mo>Θ</mo>
      <mo>..</mo>
    </mover>
  </mstyle>
</math>

It renders incorrectly in OOXML:

<m:oMath>
    <m:limUpp>
<m:limUppPr><m:ctrlPr><w:rPr><w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math"></w:rFonts><w:i></w:i></w:rPr></m:ctrlPr></m:limUppPr>
<m:e><m:r><m:t>.</m:t></m:r></m:e><m:lim><m:r><m:t>&#x398;</m:t></m:r></m:lim>
</m:limUpp>
<m:r><m:t>&#x2260;</m:t></m:r>
<m:limUpp>
<m:limUppPr><m:ctrlPr><w:rPr><w:rFonts w:ascii="Cambria Math" w:hAnsi="Cambria Math"></w:rFonts><w:i></w:i></w:rPr></m:ctrlPr></m:limUppPr>
<m:e><m:r><m:t>&#x398;</m:t></m:r></m:e><m:lim><m:r><m:t>..</m:t></m:r></m:lim></m:limUpp>
  </m:oMath>

It seems that in the case of dot Theta, the OOXML is putting the dot and the theta (&#x398;) the wrong way around:

<m:e><m:r><m:t>.</m:t></m:r></m:e><m:lim><m:r><m:t>&#x398;</m:t></m:r></m:lim>

the Word rendering of ddot Theta is correct:

<m:e><m:r><m:t>&#x398;</m:t></m:r></m:e><m:lim><m:r><m:t>..</m:t></m:r></m:lim>
@opoudjis opoudjis added the bug Something isn't working label Sep 26, 2024
@suleman-uzair
Copy link
Member

@opoudjis I'm looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants