w3c / mathml

MathML4 editors draft
https://w3c.github.io/mathml/
Other
59 stars 18 forks source link

MathML-Next Ideas #2 #80

Open AdamSobieski opened 5 years ago

AdamSobieski commented 5 years ago

Introduction

In addition to multiple containing elements for annotations (e.g. <presentation>, <semantics>, <metadata> and <other>), a kind attribute could be of use for distinguishing varieties of annotations.

Multiple Containing Elements

<math id="eq1">
  <presentation>
    <annotation-xml encoding="application/xhtml+xml">...</annotation-xml>
    <annotation-xml encoding="application/svg+xml">...</annotation-xml>
    <annotation encoding="image/png" src="data:..." />
    <annotation-xml encoding="application/mathml-presentation+xml">...</annotation-xml>
  </presentation>
  <semantics>
    <annotation-xml encoding="application/openmath+xml">...</annotation-xml>
    <annotation-xml encoding="application/mathml-content+xml">...</annotation-xml>
    <annotation-xml encoding="application/rdf+xml">...</annotation-xml>
  </semantics>
  <metadata>
    <annotation-xml encoding="application/rdf+xml">...</annotation-xml>
    <annotation encoding="application/json+ld">...</annotation>
  </metadata>
  <other rel="http://www.example.com/semantic-uri/">
    <annotation-xml encoding="...">...</annotation-xml>
  </other>
</math>

Single Containing Element

<math id="eq1">
  <annotations>
    <annotation-xml kind="presentation" encoding="application/xhtml+xml">...</annotation-xml>
    <annotation-xml kind="presentation" encoding="application/svg+xml">...</annotation-xml>
    <annotation kind="presentation" encoding="image/png" src="data:..." />
    <annotation-xml kind="presentation" encoding="application/mathml-presentation+xml">...</annotation-xml>
    <annotation-xml kind="semantics" encoding="application/openmath+xml">...</annotation-xml>
    <annotation-xml kind="semantics" encoding="application/mathml-content+xml">...</annotation-xml>
    <annotation-xml kind="semantics" encoding="application/rdf+xml">...</annotation-xml>
    <annotation-xml kind="metadata" encoding="application/rdf+xml">...</annotation-xml>
    <annotation kind="metadata" encoding="application/json+ld">...</annotation>
    <annotation-xml kind="other" rel="http://www.example.com/semantic-uri/" encoding="...">...</annotation-xml>
  </annotations>
</math>
dginev commented 11 months ago

[minor admin] In the MathML Full WG meeting on Sep 28th, 2023, we agreed to re-title issues scheduled for the next charter with "MathML-Next", to avoid confusion.