You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bizarrely (at least to me) the U+0080 block has B2, B3, and B9 as superscript 2, 3, and 1 (yes, in that order). I think these should be pulled from the Operator Dictionary because:
you shouldn't use them as superscripts (use msup)
they aren't a complete set, so not that useful
I can't imagine why software (i.e, a MathML generator) would ever want to use them.
Is there anyway to find out whether they are used inside of MathML?
In looking at the arrows, we have a relatively consistent set of rules for when an arrow is an accent: any horizontal arrow is an accent and non-horizontal arrows are not. It is of course always possible to add accent="true", but if you used an arrow in an under/overscript, I think the odds are high you would want it to be small and away from the base. I think we should add at least the diagonal forms of the arrows as I could imagine them being used as a limit. Since some arrows curve, that "diagonal" gets to be a bit subjective, so maybe all the arrows should have limits...
In looking through the operator dictionary, there are the diagonal arrows I found that probably should have accent="true" by default:
the diagonal arrows x2196 - x2199
x21AF; ↯ downwards zigzag arrow
x21B8; ↸ north west arrow to long bar
x21D6 -x21DA; ⇖ diagonal double arrows
x21F1; ⇱ north west arrow to corner
x21F2; ⇲ south east arrow to corner
x2921 - x2932 various mostly diagonal arrows, some as crosses
x2934 - x2937 some curved pointing arrows
The operator dictionary missed these horizontal arrows. For consistency, they should have accent="true":
x2956; ⥖ leftwards harpoon with barb down to bar
x2957; ⥗ rightwards harpoon with barb down to bar
x2B45; ⭅ leftwards quadruple arrow
x2B46; ⭆ rightwards quadruple arrow
These have arrows below an operator and should not be accents but are listed as having accents (they are some variants of operators):
x2971 - x297D: these have arrows below an operator and shouldn't be accents
(as an example x2971; ⥱ equals sign above rightwards arrow)
At the 13/1/20 meeting, @fred-wang proposed removing the accent property entirely from the operator dictionary. Instead, all operators would default to having accent="true". This was sparked by my suggestion for making all arrows have accent="true". In a scan of the operator dictionary, I didn't see anything that would say that's a bad idea. If anyone knows of a reason why it would be a bad idea, please add some examples.
A more radical suggestion would be to remove accent from mo altogether and leave that up to the munder etc, element attrs (with default being all mos turning on accents). That has compatibility issues and any polyfill/transform would affect the DOM, so not ideal. People were disinclined to that suggestion.
Activity
NSoiffer commentedon Oct 7, 2019
In looking over the list, I saw one entry that should be an accent that isn't currently:
NSoiffer commentedon Oct 7, 2019
From #6, some operators listed as accents that should not have the accent property.
If U+00AA is in the list, so should
fred-wang commentedon Oct 7, 2019
I think ordinal indicators should just be removed, I don't think they correspond to any math operator: https://en.wikipedia.org/wiki/Ordinal_indicator
NSoiffer commentedon Jan 13, 2020
I was wrong about
^ | ^ | circumflex accentIt has both an infix and postfix version and the postfix version has
accent="true", while the infix versions does't. This is correct.I'm not sure why I earlier said
should not have accent properties. People might potentially use them in an overscript position and when they do, they should be treated as accents.
I removed the ordinal indicators from xml-entities/unicode.xml
NSoiffer commentedon Jan 13, 2020
Bizarrely (at least to me) the U+0080 block has B2, B3, and B9 as superscript 2, 3, and 1 (yes, in that order). I think these should be pulled from the Operator Dictionary because:
msup)Is there anyway to find out whether they are used inside of MathML?
NSoiffer commentedon Jan 13, 2020
In looking at the arrows, we have a relatively consistent set of rules for when an arrow is an accent: any horizontal arrow is an accent and non-horizontal arrows are not. It is of course always possible to add
accent="true", but if you used an arrow in an under/overscript, I think the odds are high you would want it to be small and away from the base. I think we should add at least the diagonal forms of the arrows as I could imagine them being used as a limit. Since some arrows curve, that "diagonal" gets to be a bit subjective, so maybe all the arrows should have limits...In looking through the operator dictionary, there are the diagonal arrows I found that probably should have
accent="true"by default:The operator dictionary missed these horizontal arrows. For consistency, they should have
accent="true":These have arrows below an operator and should not be accents but are listed as having accents (they are some variants of operators):
(as an example x2971; ⥱ equals sign above rightwards arrow)
Delete feminine/masculine indicators as not math (w3c/mathml#151)
NSoiffer commentedon Jan 13, 2020
At the 13/1/20 meeting, @fred-wang proposed removing the
accentproperty entirely from the operator dictionary. Instead, all operators would default to havingaccent="true". This was sparked by my suggestion for making all arrows haveaccent="true". In a scan of the operator dictionary, I didn't see anything that would say that's a bad idea. If anyone knows of a reason why it would be a bad idea, please add some examples.A more radical suggestion would be to remove
accentfrommoaltogether and leave that up to themunderetc, element attrs (with default being allmos turning on accents). That has compatibility issues and any polyfill/transform would affect the DOM, so not ideal. People were disinclined to that suggestion.NSoiffer commentedon Mar 7, 2020
At the 20/1/20 meeting, we resolved to take accent out of the operator dictionary and change spec to say it is
default="true".It has been removed from the operator dictionary.
fred-wang commentedon May 12, 2020
This still need tests, will happen when the op dict tests are regenerated.
MathML: Regenerate tests for the operator dictionary
MathML: Regenerate tests for the operator dictionary
MathML: Regenerate tests for the operator dictionary (#23558)
Bug 1637507 [wpt PR 23558] - MathML: Regenerate tests for the operato…
Bug 1637507 [wpt PR 23558] - MathML: Regenerate tests for the operato…
Bug 1637507 [wpt PR 23558] - MathML: Regenerate tests for the operato…