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

Make the sample presentation of Strict Content use intent #284

Open
NSoiffer opened this issue Mar 10, 2022 · 2 comments
Open

Make the sample presentation of Strict Content use intent #284

NSoiffer opened this issue Mar 10, 2022 · 2 comments
Labels
MathML 4 Issues affecting the MathML 4 specification need specification update Issues requiring specification changes

Comments

@NSoiffer
Copy link
Contributor

There are currently "sample" renderings. Let's make this use intent.

davidcarlisle added a commit that referenced this issue Mar 10, 2022
@davidcarlisle davidcarlisle added MathML 4 Issues affecting the MathML 4 specification intent Issues involving the proposed "intent" attr labels Aug 15, 2022
@davidcarlisle
Copy link
Collaborator

Randomly picking a simple example

https://w3c.github.io/mathml/#contm_cn_extended

has

<cn type="rational">22<sep/>7</cn>

rendering as

<mrow><mn>22</mn><mo>/</mo><mn>7</mn></mrow>

My OpenMath/ContentMathML bias wants me to suggest

<mrow intent="rational-number($a,$b)"><mn arg="a">22</mn><mo>/</mo><mn arg="b">7</mn></mrow>

But that's not in the core intent list and I don't think I'd read an element of ℚ differently to the operation of dividing two integers, so I guess either of the core intent entries divide or fraction is suitable (I'd prefer fraction if forced to choose). Or we'd say this is the default intent for an infix / so don't add intent here?

@dginev
Copy link
Contributor

dginev commented Nov 19, 2022

with #426 in mind that example reads closer to:

<mrow intent-isa="rational-number"><mn>22</mn><mo intent="division">/</mo><mn>7</mn></mrow>

the associated concepts from wiki are:

For your "sample presentation" examples you likely don't need to restrict yourself to intent values only from the Core list, as that list is now in the process of being compressed to a point where no realistic text could be annotated using only entries from it. To illustrate, we've discussed that absolute-value is likely to not be in the Core list, but it will be needed for the sample presentation of <abs>, in the 4.3.7.2.1 Examples, namely:

<apply><abs/><ci>x</ci></apply>
<mrow intent="absolute-value($x)">
  <mo>|</mo>
  <mi arg="x">x</mi>
  <mo>|</mo>
</mrow>

@NSoiffer NSoiffer added need specification update Issues requiring specification changes and removed intent Issues involving the proposed "intent" attr labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MathML 4 Issues affecting the MathML 4 specification need specification update Issues requiring specification changes
Projects
None yet
Development

No branches or pull requests

3 participants