Skip to content

Commit

Permalink
Remove deprecated nonzero unitless values for MathML lengths #24
Browse files Browse the repository at this point in the history
Agreed on https://lists.w3.org/Archives/Public/public-mathml4/2019Mar/0007.html
"General agreement that all named lengths and unitless precents (#24, #4, #7), should be removed from the core"

Still need to be more explicit about the MathML lengths w3c/mathml#63
  • Loading branch information
fred-wang committed Mar 14, 2019
1 parent 3ad959c commit 6e821b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,9 @@ <h3><span class="secnum">2.3.1</span> Properties
<code>negativethickmathspace</code>,
<code>negativeverythickmathspace</code> and
<code>negativeveryverythickmathspace</code> must be interpreted as their
equivalent <code>em</code> value. Also, percent and unitless values must be interpreted
with respect to the appropriate reference value. Note that the <code>mpadded</code>
equivalent <code>em</code> value. Also, percent values must be interpreted
with respect to the appropriate reference value.
Note that the <code>mpadded</code>
element also accepts more general length values as discussed in section
<a href="#mpadded">4.3.6</a>.
</p>
Expand Down Expand Up @@ -12307,7 +12308,7 @@ <h1><span class="secnum">Appendix C</span> Relax NG
(<a href="#rncrncannotation">annotation</a>|<a href="#rncrncannotation-xml">annotation-xml</a>)*}

<a name="rncrnclength" style="color:blue;">length</a> = <span style="font-weight:bold;">xsd:string</span> {
<span style="font-weight:bold;">pattern</span> = '\<a href="#rncrncs">s</a>*((-?[0-9]*([0-9]\.?|\.[0-9])[0-9]*(<a href="#rncrnce">e</a>[<a href="#rncrncmx">mx</a>]|<a href="#rncrncin">in</a>|<a href="#rncrnccm">cm</a>|<a href="#rncrncmm">mm</a>|<a href="#rncrncp">p</a>[<a href="#rncrncxtc">xtc</a>]|%)?)|(<a href="#rncrncnegative">negative</a>)?((<a href="#rncrncvery">very</a>){0,2}<a href="#rncrncthi">thi</a>(<a href="#rncrncn">n</a>|<a href="#rncrncck">ck</a>)|<a href="#rncrncmedium">medium</a>)<a href="#rncrncmathspace">mathspace</a>)\<a href="#rncrncs">s</a>*'
<span style="font-weight:bold;">pattern</span> = '\<a href="#rncrncs">s</a>*((-?[0-9]*([0-9]\.?|\.[0-9])[0-9]*(<a href="#rncrnce">e</a>[<a href="#rncrncmx">mx</a>]|<a href="#rncrncin">in</a>|<a href="#rncrnccm">cm</a>|<a href="#rncrncmm">mm</a>|<a href="#rncrncp">p</a>[<a href="#rncrncxtc">xtc</a>]|%))|0|(<a href="#rncrncnegative">negative</a>)?((<a href="#rncrncvery">very</a>){0,2}<a href="#rncrncthi">thi</a>(<a href="#rncrncn">n</a>|<a href="#rncrncck">ck</a>)|<a href="#rncrncmedium">medium</a>)<a href="#rncrncmathspace">mathspace</a>)\<a href="#rncrncs">s</a>*'
}


Expand Down
2 changes: 1 addition & 1 deletion mathml4-core.rnc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ semantics = element semantics {CommonAtt,
(annotation|annotation-xml)*}

length = xsd:string {
pattern = '\s*((-?[0-9]*([0-9]\.?|\.[0-9])[0-9]*(e[mx]|in|cm|mm|p[xtc]|%)?)|(negative)?((very){0,2}thi(n|ck)|medium)mathspace)\s*'
pattern = '\s*((-?[0-9]*([0-9]\.?|\.[0-9])[0-9]*(e[mx]|in|cm|mm|p[xtc]|%))|0|(negative)?((very){0,2}thi(n|ck)|medium)mathspace)\s*'
}


Expand Down
5 changes: 3 additions & 2 deletions src/othertech.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,9 @@ <h3>Properties</h3>
<code>negativethickmathspace</code>,
<code>negativeverythickmathspace</code> and
<code>negativeveryverythickmathspace</code> must be interpreted as their
equivalent <code>em</code> value. Also, percent and unitless values must be interpreted
with respect to the appropriate reference value. Note that the <code>mpadded</code>
equivalent <code>em</code> value. Also, percent values must be interpreted
with respect to the appropriate reference value.
Note that the <code>mpadded</code>
element also accepts more general length values as discussed in section
<a href="presentation.html#mpadded">auto</a>.</p>
</div>
Expand Down

0 comments on commit 6e821b2

Please sign in to comment.