w3c / w3c/mathml-core

Accent rendering with <mover accent="true">

Open
#254 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
56
Forks
20
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue's MathML examples and the linked hat-notation reference, then review the MathML Core rules for mover accents and operator rendering. The issue names no files or tests; done would require an agreed treatment for common accents and corresponding rendering behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, xml
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.