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

mixed-fractions in core #484

Closed
polx opened this issue Jan 8, 2024 · 5 comments
Closed

mixed-fractions in core #484

polx opened this issue Jan 8, 2024 · 5 comments
Labels
intent Issues involving the proposed "intent" attr MathML 4 Issues affecting the MathML 4 specification

Comments

@polx
Copy link

polx commented Jan 8, 2024

We should remember to include mixed-fractions (such as three and a half pounds) as it is a very common way of speaking numbers out.

@polx polx added the MathML 4 Issues affecting the MathML 4 specification label Jan 8, 2024
@polx
Copy link
Author

polx commented Jan 8, 2024

It occured to me that this is a very good example of discrepancy between:

  • "common speak aloud text" (here it would be "$1 and $2" ??
  • the concept name
  • a possible unicode name (??)

@dginev dginev added the intent Issues involving the proposed "intent" attr label Jan 8, 2024
@dginev
Copy link
Contributor

dginev commented Jan 8, 2024

Wikipedia calls these mixed-numeral as well as mixed-fraction or mixed-number (so we have aliases to pick 1 from).

I think a wrapping <mrow> and 2-arguments should do the trick:

<mrow intent="mixed-fraction($int,$frac)">
  <mn arg="int">2</mn>
  <!-- (optional?) invisible plus -->
  <mo>&#x2064;</mo>
  <mfrac arg="frac" intent="fraction(3,16)">
   <mn>3</mn>
   <mn>16</mn>
  </mfrac>
</mrow>

Btw, I may be looking at the wrong core list URL, but I don't think fraction has been added yet either.

@davidcarlisle
Copy link
Collaborator

@dginev's mixed-fraction markup looks good to me (I think mixed-fraction is best as the main name, as while for example I'd probably know what "mixed number" meant if used in context, out of context I probably would not guess it refered to this, but "mixed fraction" is I think less ambigous.

@NSoiffer
Copy link
Contributor

NSoiffer commented Jan 9, 2024

I've seen all those aliases used, but mostly I've seen "mixed-fraction". The fractional part can be an mfrac (normal or beveled) or it can be linear fraction using /. All the braille notations I've implemented have special cases for them.

I'll add these and "fraction" (good catch Deyan) to the list.

@davidcarlisle
Copy link
Collaborator

mixed-fraction has been added, resolved to close 2024-05-16 meeting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
intent Issues involving the proposed "intent" attr MathML 4 Issues affecting the MathML 4 specification
Projects
None yet
Development

No branches or pull requests

4 participants