Skip to content

Commit 6e821b2

Browse files
committed
Remove deprecated nonzero unitless values for MathML lengths #24
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
1 parent 3ad959c commit 6e821b2

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

index.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,9 @@ <h3><span class="secnum">2.3.1</span> Properties
756756
<code>negativethickmathspace</code>,
757757
<code>negativeverythickmathspace</code> and
758758
<code>negativeveryverythickmathspace</code> must be interpreted as their
759-
equivalent <code>em</code> value. Also, percent and unitless values must be interpreted
760-
with respect to the appropriate reference value. Note that the <code>mpadded</code>
759+
equivalent <code>em</code> value. Also, percent values must be interpreted
760+
with respect to the appropriate reference value.
761+
Note that the <code>mpadded</code>
761762
element also accepts more general length values as discussed in section
762763
<a href="#mpadded">4.3.6</a>.
763764
</p>
@@ -12307,7 +12308,7 @@ <h1><span class="secnum">Appendix C</span> Relax NG
1230712308
(<a href="#rncrncannotation">annotation</a>|<a href="#rncrncannotation-xml">annotation-xml</a>)*}
1230812309

1230912310
<a name="rncrnclength" style="color:blue;">length</a> = <span style="font-weight:bold;">xsd:string</span> {
12310-
<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>*'
12311+
<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>*'
1231112312
}
1231212313

1231312314

mathml4-core.rnc

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ semantics = element semantics {CommonAtt,
3737
(annotation|annotation-xml)*}
3838

3939
length = xsd:string {
40-
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*'
40+
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*'
4141
}
4242

4343

src/othertech.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ <h3>Properties</h3>
273273
<code>negativethickmathspace</code>,
274274
<code>negativeverythickmathspace</code> and
275275
<code>negativeveryverythickmathspace</code> must be interpreted as their
276-
equivalent <code>em</code> value. Also, percent and unitless values must be interpreted
277-
with respect to the appropriate reference value. Note that the <code>mpadded</code>
276+
equivalent <code>em</code> value. Also, percent values must be interpreted
277+
with respect to the appropriate reference value.
278+
Note that the <code>mpadded</code>
278279
element also accepts more general length values as discussed in section
279280
<a href="presentation.html#mpadded">auto</a>.</p>
280281
</div>

0 commit comments

Comments
 (0)