Skip to content

Commit 820a95b

Browse files
committed
Reformat a bit how the compact dictionary is presented.
w3c/mathml#176
1 parent ea1f1f4 commit 820a95b

File tree

4 files changed

+118
-128
lines changed

4 files changed

+118
-128
lines changed

index.html

+22-97
Original file line numberDiff line numberDiff line change
@@ -5750,11 +5750,6 @@ <h3>Operator Dictionary (Compact)</h3>
57505750
the dictionary.
57515751
</p>
57525752

5753-
<div id="operator-dictionary-entries"
5754-
data-include="tables/operator-dictionary-compact.html"></div>
5755-
<div class="issue">Can we rely on order of unicode code point or
5756-
reorganize tables to reduce size any further? </div>
5757-
57585753
<p>
57595754
This compact form removes about 800 entries from the
57605755
<a href="#operator-dictionary">operator dictionary</a> that actually
@@ -5775,100 +5770,26 @@ <h3>Operator Dictionary (Compact)</h3>
57755770
<li>If <code>Content</code> is a single character in the
57765771
BMP Private Use Area (range U+E000–U+F8FF)
57775772
then exit with <code>NotFound</code> status.</li>
5778-
<li>If <code>Content</code> has more than one characters then
5779-
try and find it in <code>MathMLDictionaryMultipleChar</code>.
5780-
If that fails, exit with <code>NotFound</code> status.
5781-
Otherwise, replace <code>Content</code> with the Unicode character
5782-
"U+E000 plus the index of the origin <code>Content</code> in
5783-
<code>MathMLDictionaryMultipleChar</code>".
5784-
</li>
5785-
<li>Search <code>Content</code> in one of the tables below.
5786-
If it is found, set the properties accordingly and
5787-
immediately move to the next step. Otherwise,
5788-
exit with <code>NotFound</code> status.
5789-
<ol>
5790-
<li>
5791-
Search <code>Content</code> in
5792-
<code>MathMLDictionary_infixEntriesWithSpacing5AndStretchy</code>
5793-
if <code>Form</code> is <code>infix</code>.
5794-
If found, set <code>lspace</code> to
5795-
<code>0.2777777777777778em</code>, <code>rspace</code> to
5796-
<code>0.2777777777777778em</code> and
5797-
<code>stretchy</code> to true.
5798-
</li>
5799-
<li>Search <code>Content</code> in <code>MathMLDictionary_infixEntriesWithSpacing4</code> if <code>Form</code> is <code>infix</code>.
5800-
If found, set <code>lspace</code> to
5801-
<code>0.2222222222222222em</code> and <code>rspace</code> to
5802-
<code>0.2222222222222222em</code>.
5803-
</li>
5804-
<li>Search <code>Content</code> in <code>MathMLDictionary_infixEntriesWithSpacing3</code> if <code>Form</code> is <code>infix</code>.
5805-
If found, set <code>lspace</code> to
5806-
<code>0.16666666666666666em</code> and <code>rspace</code> to
5807-
<code>0.16666666666666666em</code>.
5808-
</li>
5809-
<li>Search <code>Content</code> in <code>MathMLDictionary_prefixEntriesWithLspace0Rspace0</code> if <code>Form</code> is <code>prefix</code>.
5810-
If found, set <code>lspace</code> to
5811-
<code>0</code> and <code>rspace</code> to
5812-
<code>0</code>.
5813-
</li>
5814-
<li>Search <code>Content</code> in <code>MathMLDictionary_postfixEntriesWithLspace0Rspace0</code> if <code>Form</code> is <code>postfix</code>.
5815-
If found, set <code>lspace</code> to
5816-
<code>0</code>, <code>rspace</code> to
5817-
<code>0</code>.
5818-
</li>
5819-
<li>Search <code>Content</code> in <code>MathMLDictionary_postfixEntriesWithLspace0Rspace0AndStretchy</code> if <code>Form</code> is <code>postfix</code>.
5820-
If found, set <code>lspace</code> to
5821-
<code>0</code>, <code>rspace</code> to
5822-
<code>0</code> and
5823-
<code>stretchy</code> to true.
5824-
</li>
5825-
<li>Search <code>Content</code> in <code>MathMLDictionary_prefixEntriesWithSpacing0AndStretchySymmetric</code> if <code>Form</code> is <code>prefix</code>.
5826-
If found, set <code>lspace</code> to
5827-
<code>0</code>, <code>rspace</code> to
5828-
<code>0</code>,
5829-
<code>stretchy</code> to true and
5830-
<code>symmetric</code> to true.
5831-
</li>
5832-
<li>Search <code>Content</code> in <code>MathMLDictionary_postfixEntriesWithSpacing0AndStretchySymmetric</code> if <code>Form</code> is <code>postifx</code>.
5833-
If found, set <code>lspace</code> to
5834-
<code>0</code>, <code>rspace</code> to
5835-
<code>0</code>,
5836-
<code>stretchy</code> to true,
5837-
<code>symmetric</code> to true.
5838-
</li>
5839-
<li>Search <code>Content</code> in <code>MathMLDictionary_prefixEntriesWithLspace3Rspace3AndSymmetricLargeop</code> if <code>Form</code> is <code>prefix</code>.
5840-
If found, set <code>lspace</code> to
5841-
<code>0.16666666666666666em</code>, <code>rspace</code> to
5842-
<code>0.16666666666666666em</code>,
5843-
<code>symmetric</code> to true,
5844-
<code>largeop</code> to true.
5845-
</li>
5846-
<li>Search <code>Content</code> in <code>MathMLDictionary_prefixEntriesWithLspace1Rspace2AndSymmetricMovablelimitsLargeop</code> if <code>Form</code> is <code>prefix</code>.
5847-
If found, set <code>lspace</code> to
5848-
<code>0.05555555555555555em</code>, <code>rspace</code> to
5849-
<code>0.1111111111111111em</code>,
5850-
<code>symmetric</code> to true,
5851-
<code>movablelimits</code> to true and
5852-
<code>largeop</code> to true.
5853-
</li>
5854-
<li>Search <code>Content</code> in <code>MathMLDictionary_prefixEntriesWithLspace3Rspace3AndSymmetricMovablelimitsLargeop</code> if <code>Form</code> is <code>prefix</code>.
5855-
If found, set <code>lspace</code> to
5856-
<code>0.16666666666666666em</code>, <code>rspace</code> to
5857-
<code>0.16666666666666666em</code>,
5858-
<code>symmetric</code> to true,
5859-
<code>movablelimits</code> to true and
5860-
<code>largeop</code> to true.
5861-
</li>
5862-
</ol>
5773+
<li>If <code>Content</code> has more than one characters and
5774+
is listed in
5775+
<a href="#operator-dictionary-compact-special-tables"><code>Operators_multichar</code></a> then
5776+
replace <code>Content</code> with the Unicode character
5777+
"U+E000 plus the index of <code>Content</code> in
5778+
<code>Operators_multichar</code>". Otherwise, exit with
5779+
<code>NotFound</code> status.
58635780
</li>
5864-
<li>Search <code>Content</code> in
5865-
<code>MathMLDictionary_fences</code> and
5866-
<code>MathMLDictionary_separators</code>. If found,
5867-
set to true the property
5868-
<code>fence</code> and <code>separator</code>
5869-
respectively.
5781+
<li>If (<code>Content</code>, <code>Form</code>)
5782+
corresponds to one category of
5783+
<a href="#operator-dictionary-category-table"></a> then
5784+
set the properties according to
5785+
<a href="#operator-dictionary-categories-values"></a>.
5786+
Otherwise, exit with <code>NotFound</code> status.
58705787
</li>
5871-
<li>Exit with the calculated
5788+
<li>If <code>Content</code> is in
5789+
<a href="#operator-dictionary-compact-special-tables"><code>Operators_fence</code></a> then set property <code>fence</code> to true.</li>
5790+
<li>If <code>Content</code> is in
5791+
<a href="#operator-dictionary-compact-special-tables"><code>Operators_separator</code></a> then set property <code>separator</code> to true.</li>
5792+
<li>Return the calculated
58725793
(<code>lspace</code>, <code>rspace</code>,
58735794
<code>stretchy</code>, <code>symmetric</code>
58745795
<code>largeop</code>,
@@ -5878,6 +5799,10 @@ <h3>Operator Dictionary (Compact)</h3>
58785799
</li>
58795800
</ol>
58805801

5802+
<div id="operator-dictionary-entries"
5803+
data-include="tables/operator-dictionary-compact.html"></div>
5804+
<div class="issue">Can we rely on order of unicode code point or
5805+
reorganize tables to reduce size any further? </div>
58815806
</section>
58825807
<section id="stretchy-operator-axis">
58835808
<h3>Stretchy Operator Axis</h3>

0 commit comments

Comments
 (0)