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

Accent rendering with <mover accent="true"> #254

Open
orbita2d opened this issue Aug 10, 2024 · 2 comments
Open

Accent rendering with <mover accent="true"> #254

orbita2d opened this issue Aug 10, 2024 · 2 comments

Comments

@orbita2d
Copy link

Rendering common accents is, in my opinion, overly awkward.

e.g. Rendering a circumflex (hat) properly requires

<math>
  <mover accent="true">
    <mi>H</mi>
    <mo stretchy="false">&#x0302;</mo>
  </mover>
</math>

I understand that this is aimed at flexibility, but common accents like this should really be able to have special treatment for proper rendering. The MathMl named element "Hat" is the Unicode ^, which does not render well as a hat.

My opinion here is that these common accents should be treated as a special case, in the same notation:

<math>
  <mover accent="true">
    <mi>H</mi>
    <mo>&Hat;</mo>
  </mover>
</math>

rendering the operator properly.

See https://en.wikipedia.org/wiki/Hat_notation, for examples of how this notation should look.

I would appreciate any discussion on the issue.

@dginev
Copy link

dginev commented Nov 25, 2024

Here are the two examples from the issue description in a codepen

Screncaps:

math fontChromeFirefox
default font

STIX

NewCM Sans

Screenshot from 2024-11-25 11-49-23

Screenshot 2024-11-25 at 11-49-44 mover accents - hats

@NSoiffer
Copy link
Contributor

The other part of this issue is what characters should be used. This was discussed in w3c/mathml#247.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants