w3c / w3c/mathml-core

Superscript consistent baseline in rows.

Open
#255 1 comment 0 reactions 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

<math xmlns="&mathml;">
<mrow>
<msubsup>
    <mi>J</mi>
    <mrow><mi>i</mi><mi>j</mi></mrow>
    <mrow><mi>&alpha;</mi><mi>&beta;</mi></mrow>
</msubsup>
<msup>
   <mi>S</mi>
   <mi>&alpha;</mi>
</msup>
</mrow>
</math>

In this example, because of the algorithm described in
https://w3c.github.io/mathml-core/#base-with-subscript-and-superscript
the superscripts have different baselines, in a way which harms readability (in my opinion).
I would be interested to see if an alternative algorithm could try find a SuperShift (SubShift) for the row in it's entirety, and so show the scripts on consistent baselines across the row.

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 MathML Core section linked in the issue, especially the base-with-subscript-and-superscript algorithm, and compare it with the supplied mrow example. The issue names no repository file or test; done would require an agreed alternative row-level baseline algorithm and a clear acceptance example.

Written by the indexing model from the issue text.

Assessment

Domain
frontend, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.