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

Explain the effect of <mrow> on parentheses #26

Open
samimaattaCelia opened this issue Jun 3, 2024 · 3 comments
Open

Explain the effect of <mrow> on parentheses #26

samimaattaCelia opened this issue Jun 3, 2024 · 3 comments

Comments

@samimaattaCelia
Copy link
Collaborator

<mrow> is the element, which causes the parentheses (or other similar) to stretch to encompass the whole expression when needed.

Example of the rendering of the binomial when <mrow> is used correctly and below when it's not used at all:
Screencap of two binomials of n over k.

@Lisahartun
Copy link

Does it make a difference for a blind person? If it is one way or the other? Of course, they should use it correctly.

@samimaattaCelia
Copy link
Collaborator Author

As we discussed in the meeting, this might be a case of proper markup vs. effort put into achieve this.

Do we think that requiring here would be too challenging and also challenging to validate for? I don't know if this passes MathML validation. If it does, then this could be an easy thing to add to the validator. The parentheses are important also in fractions and such for proper rendering.

@samimaattaCelia
Copy link
Collaborator Author

Same with matrices:
kuva
kuva

Code with <mrow>:

<math>
  <mfrac>
    <mi>A</mi>
    <mn>2</mn>
  </mfrac>
  <mo>=</mo>
  <mrow>
    <mo>(</mo>
    <mtable>
      <mtr>
        <mtd><mn>1</mn></mtd>
        <mtd><mn>2</mn></mtd>
        <mtd><mn>3</mn></mtd>
      </mtr>
      <mtr>
        <mtd><mn>4</mn></mtd>
        <mtd><mn>5</mn></mtd>
        <mtd><mn>6</mn></mtd>
      </mtr>
      <mtr>
        <mtd><mn>7</mn></mtd>
        <mtd><mn>8</mn></mtd>
        <mtd><mn>9</mn></mtd>
      </mtr>
    </mtable>
    <mo>)</mo>
  </mrow>
</math>

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

2 participants