Skip to content

Remove accent property on some operators  #151

Closed

Description

@fred-wang

See #6 (comment)
We agreed during one meeting that we should go over the list of accent operators and removed unnecessary properties.

Activity

  1. added
    MathML Core
    MathML 4
    need tests
    need specification update
    on Oct 4, 2019
  2. NSoiffer commented on Oct 7, 2019

    @NSoiffer
    Contributor

    In looking over the list, I saw one entry that should be an accent that isn't currently:

    ^ | ^ | circumflex accent
    
  3. NSoiffer commented on Oct 7, 2019

    @NSoiffer
    Contributor

    From #6, some operators listed as accents that should not have the accent property.

     ª ª feminine ordinal
     " " quotation mark
     ‛ ‛ single high-reversed-9 quotation mark
    

    If U+00AA is in the list, so should

    º   º   masculine ordinal indicator
    
  4. fred-wang commented on Oct 7, 2019

    @fred-wang
    Author

    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

  5. NSoiffer commented on Jan 13, 2020

    @NSoiffer
    Contributor

    I was wrong about
    ^ | ^ | circumflex accent

    It 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

    " " quotation mark
    ‛ ‛ single high-reversed-9 quotation mark
    

    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

  6. NSoiffer commented on Jan 13, 2020

    @NSoiffer
    Contributor

    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:

    1. you shouldn't use them as superscripts (use msup)
    2. they aren't a complete set, so not that useful
    3. 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?

  7. NSoiffer commented on Jan 13, 2020

    @NSoiffer
    Contributor

    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)
  8. NSoiffer commented on Jan 13, 2020

    @NSoiffer
    Contributor

    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.

  9. NSoiffer commented on Mar 7, 2020

    @NSoiffer
    Contributor

    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.

  10. removed
    need specification update
    need tests
    on May 12, 2020
  11. fred-wang commented on May 12, 2020

    @fred-wang
    Author

    This still need tests, will happen when the op dict tests are regenerated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MathML 4MathML Core

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions