Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Clean up -- fixing values and removing some non operators
Browse files Browse the repository at this point in the history
Sources:
http://www.unicode.org/Public/math/latest/MathClassEx-15.html (referred to as Unicode or classex)
https://gist.github.com/jaantollander/b49132a36b035cdfe05345dd0c7edf0f#file-unicode-math-symbols-csv-L1438 (referred to a TeX)

Changed 2982 (z notation type colon) to match spacing of normal colon
2981 is (z notation spot) has anomalously large spacing, but I think it is appropriate given it's use (separating text from an expression)

Removed ".." (the entire <character> since I think that entry is there just for the op dict) -- this comes from Mathematica. We left a lot of multichar symbols in because they are common in programing languages, but this one isn't very common, the usage I remember from some programming language (e.g., "1..5") is infix and not postfix as in mathematica. We don't include "::" which is used in python for slices

Removed 25A0, 25a1, 25aa, 25ab, 25ad, 25ae, 25af, 25b0, 2fb1 -- these are all shapes and both Unicode and TeX consider them normal chars.

29c7 -- changed priority to match small circle based on principle that "squared xxx" is same as "xxx"

29c8 -- clearly shouldn't be with relational ops, so moved priority to match multiplicaiton for lack of somewhere else it might go. Couldn't find usage examples.

299a (VERTICAL ZIGZAG LINE) -- Unicode lists this as a fence, but TeX has it as mathord. The fonts I've seen draw it two different ways, one in which the top and bottom "zag" open to the left (so I can imagine it being a closing deliminater) and one in which the top opens to the left and the bottom opens to the right. The reference image in Unicode.org is the latter. As such, it can be at best a separator fence, but this seems dubious and the name says "line", not "fence" like other fences. Hence, I'm removing it.

29d8, 29d9, 29da, 29db -- were missing fence, stretchy, symmetric

228F, 2224, 2ADA -- spacing '4' -> '5' to be consistent with other relational ops

|, || in the infix case. spacing '3' -> '5'; priority 270 -> 260 (270 was a bug). In TeX, this case is the same as \mid (for |) and that is treated as a relational operator for spacing. Same thing for \parallel (||). This usage is similar to "divides/2223 and "parallel"/2225 which also use '5'.

29DF: spacing '3' -> '5' to be consistent

2AFE -- should not have been placed with '|' since both Unicode and TeX claim it is a binary operator, so shouldn't be with relational operators. I never found a use for it. I'm placing it with other division symbols for no particularly good reasons.

_ (005f) Changed spacing: '3' -> '0' Unicode says it is a normal char, but it is used as an operator in several programming languages.
  • Loading branch information
NSoiffer committed Sep 8, 2020
1 parent 8489769 commit 0e0e89b
Showing 1 changed file with 15 additions and 30 deletions.
45 changes: 15 additions & 30 deletions unicode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -937,11 +937,6 @@ Barbara Beeton for the STIX project
<operator-dictionary priority="390" form="infix" lspace="3" rspace="3"/>
<description unicode="1.1">FULL STOP</description>
</character>
<character id="U0002E-0002E" dec="46-46" image="none">
<unicodedata/>
<operator-dictionary priority="100" form="postfix" lspace="0" rspace="0"/>
<description>MULTIPLE CHARACTER OPERATOR: ..</description>
</character>
<character id="U0002F" dec="47" mode="text" type="other">
<unicodedata category="Po" combclass="0" bidi="CS" mirror="N" unicode1="SLASH" mathclass="B" alias="slash;virgule"/>
<afii>002F</afii>
Expand Down Expand Up @@ -1451,7 +1446,7 @@ Barbara Beeton for the STIX project
<desc>combining low line</desc>
</entity>
<operator-dictionary priority="880" form="postfix" stretchy="true" lspace="0" rspace="0"/>
<operator-dictionary priority="900" form="infix" lspace="3" rspace="3"/>
<operator-dictionary priority="900" form="infix" lspace="0" rspace="0"/>
<description unicode="1.1">LOW LINE</description>
</character>
<character id="U00060" dec="96" mode="text" type="other">
Expand Down Expand Up @@ -1810,14 +1805,14 @@ Barbara Beeton for the STIX project
<desc>alias ISONUM verbar</desc>
</entity>
<font name="hlcry" pos="106"/>
<operator-dictionary priority="270" form="infix" lspace="3" rspace="3" fence="true"/>
<operator-dictionary priority="260" form="infix" lspace="5" rspace="5" fence="true"/>
<operator-dictionary priority="20" form="prefix" symmetric="true" fence="true" stretchy="true" lspace="0" rspace="0"/>
<operator-dictionary priority="20" form="postfix" symmetric="true" fence="true" stretchy="true" lspace="0" rspace="0"/>
<description unicode="1.1">VERTICAL LINE</description>
</character>
<character id="U0007C-0007C" dec="124-124" image="none">
<unicodedata/>
<operator-dictionary priority="270" form="infix" lspace="3" rspace="3" fence="true"/>
<operator-dictionary priority="260" form="infix" lspace="5" rspace="5" fence="true"/>
<operator-dictionary priority="20" form="prefix" fence="true" lspace="0" rspace="0"/>
<operator-dictionary priority="20" form="postfix" fence="true" lspace="0" rspace="0"/>
<description>MULTIPLE CHARACTER OPERATOR: ||</description>
Expand Down Expand Up @@ -42718,7 +42713,7 @@ Barbara Beeton for the STIX project
<desc>alias ISOAMSN nsmid</desc>
</entity>
<font name="hlcra" pos="246"/>
<operator-dictionary priority="260" form="infix" lspace="4" rspace="4"/>
<operator-dictionary priority="260" form="infix" lspace="5" rspace="5"/>
<description unicode="1.1">DOES NOT DIVIDE</description>
</character>
<character id="U02225" dec="8741" mode="math" type="relation">
Expand Down Expand Up @@ -46101,7 +46096,7 @@ Barbara Beeton for the STIX project
<desc>alias ISOAMSR sqsub</desc>
</entity>
<font name="hlcry" pos="228"/>
<operator-dictionary priority="240" form="infix" lspace="4" rspace="4"/>
<operator-dictionary priority="240" form="infix" lspace="5" rspace="5"/>
<description unicode="1.1">SQUARE IMAGE OF</description>
</character>
<character id="U0228F-00338" dec="8847-824" mode="math" type="relation">
Expand Down Expand Up @@ -52317,7 +52312,6 @@ Barbara Beeton for the STIX project
<ACS>squf</ACS>
<AIP>squf</AIP>
<Wolfram>FilledSquare</Wolfram>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">BLACK SQUARE</description>
</character>
<character id="U025A1" dec="9633" mode="math" type="other">
Expand Down Expand Up @@ -52353,7 +52347,6 @@ Barbara Beeton for the STIX project
<desc>alias for square</desc>
</entity>
<font name="hlcra" pos="2"/>
<operator-dictionary priority="260" form="infix" lspace="3" rspace="3"/>
<description unicode="1.1">WHITE SQUARE</description>
</character>
<character id="U025A2" dec="9634" mode="unknown" type="other">
Expand Down Expand Up @@ -52433,7 +52426,6 @@ Barbara Beeton for the STIX project
<entity id="FilledVerySmallSquare" set="mmlextra">
<desc>filled very small square</desc>
</entity>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">BLACK SMALL SQUARE</description>
</character>
<character id="U025AB" dec="9643" mode="math" type="normal">
Expand All @@ -52443,7 +52435,6 @@ Barbara Beeton for the STIX project
<entity id="EmptyVerySmallSquare" set="mmlextra">
<desc>empty small square</desc>
</entity>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">WHITE SMALL SQUARE</description>
</character>
<character id="U025AC" dec="9644" mode="unknown" type="other">
Expand All @@ -52465,7 +52456,6 @@ Barbara Beeton for the STIX project
<entity id="rect" set="9573-2003-isopub">
<desc>=rectangle, open</desc>
</entity>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">WHITE RECTANGLE</description>
</character>
<character id="U025AE" dec="9646" mode="text" type="other">
Expand All @@ -52479,7 +52469,6 @@ Barbara Beeton for the STIX project
<entity id="marker" set="9573-2003-isopub">
<desc>=histogram marker</desc>
</entity>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">BLACK VERTICAL RECTANGLE</description>
</character>
<character id="U025AF" dec="9647" mode="math" type="other">
Expand All @@ -52490,13 +52479,11 @@ Barbara Beeton for the STIX project
<desc>rectangle open, vertical</desc>
</Elsevier>
<Wolfram>EmptyRectangle</Wolfram>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">WHITE VERTICAL RECTANGLE</description>
</character>
<character id="U025B0" dec="9648" mode="unknown" type="other">
<unicodedata category="So" combclass="0" bidi="ON" mirror="N" mathclass="N"/>
<mathlatex set="unicode-math">\parallelogramblack</mathlatex>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">BLACK PARALLELOGRAM</description>
</character>
<character id="U025B1" dec="9649" mode="math" type="other">
Expand All @@ -52512,7 +52499,6 @@ Barbara Beeton for the STIX project
<entity id="fltns" set="9573-2003-isotech">
<desc>flatness</desc>
</entity>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<description unicode="1.1">WHITE PARALLELOGRAM</description>
</character>
<character id="U025B2" dec="9650" mode="text" type="other">
Expand Down Expand Up @@ -59026,7 +59012,7 @@ Barbara Beeton for the STIX project
<character id="U02982" dec="10626" type="other" mode="unknown">
<unicodedata category="Sm" combclass="0" bidi="ON" mirror="N" mathclass="F"/>
<mathlatex set="unicode-math">\typecolon</mathlatex>
<operator-dictionary form="infix" lspace="5" rspace="5" priority="60"/>
<operator-dictionary form="infix" lspace="0" rspace="3" priority="60"/>
<description unicode="3.2">Z NOTATION TYPE COLON</description>
</character>
<character id="U02983" dec="10627" mode="math" type="opening">
Expand Down Expand Up @@ -59321,7 +59307,6 @@ Barbara Beeton for the STIX project
<entity id="vzigzag" set="9573-2003-isoamso">
<desc>vertical zig-zag line</desc>
</entity>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="270"/>
<description unicode="3.2">VERTICAL ZIGZAG LINE</description>
</character>
<character id="U0299B" dec="10651" type="other" mode="unknown">
Expand Down Expand Up @@ -59903,7 +59888,7 @@ Barbara Beeton for the STIX project
<mathlatex set="unicode-math">\boxcircle</mathlatex>
<AMS>\boxcircle</AMS>
<entity id="cirb" set="STIX"/>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="860"/>
<description unicode="3.2">SQUARED SMALL CIRCLE</description>
</character>
<character id="U029C8" dec="10696" mode="math" type="binaryop">
Expand All @@ -59912,7 +59897,7 @@ Barbara Beeton for the STIX project
<AIP>dbox</AIP>
<Springer>\boxbox</Springer>
<entity id="squb" set="STIX"/>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="260"/>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="390"/>
<description unicode="3.2">SQUARED SQUARE</description>
</character>
<character id="U029C9" dec="10697" mode="unknown" type="other">
Expand Down Expand Up @@ -60090,26 +60075,26 @@ Barbara Beeton for the STIX project
<character id="U029D8" dec="10712" type="other" mode="unknown">
<unicodedata category="Ps" combclass="0" bidi="ON" mirror="Y" mathclass="O"/>
<mathlatex set="unicode-math">\lvzigzag</mathlatex>
<operator-dictionary form="prefix" lspace="0" rspace="0" priority="20"/>
<operator-dictionary priority="20" form="prefix" symmetric="true" fence="true" stretchy="true" lspace="0" rspace="0"/>
<description unicode="3.2">LEFT WIGGLY FENCE</description>
</character>
<character id="U029D9" dec="10713" type="other" mode="unknown">
<unicodedata category="Pe" combclass="0" bidi="ON" mirror="Y" mathclass="C"/>
<mathlatex set="unicode-math">\rvzigzag</mathlatex>
<operator-dictionary form="postfix" lspace="0" rspace="0" priority="20"/>
<operator-dictionary priority="20" form="postfix" symmetric="true" fence="true" stretchy="true" lspace="0" rspace="0"/>
<description unicode="3.2">RIGHT WIGGLY FENCE</description>
</character>
<character id="U029DA" dec="10714" mode="math" type="other">
<unicodedata category="Ps" combclass="0" bidi="ON" mirror="Y" mathclass="O"/>
<afii>DBE1</afii>
<mathlatex set="unicode-math">\Lvzigzag</mathlatex>
<operator-dictionary form="prefix" lspace="0" rspace="0" priority="20"/>
<operator-dictionary priority="20" form="prefix" symmetric="true" fence="true" stretchy="true" lspace="0" rspace="0"/>
<description unicode="3.2">LEFT DOUBLE WIGGLY FENCE</description>
</character>
<character id="U029DB" dec="10715" mode="unknown" type="other">
<unicodedata category="Pe" combclass="0" bidi="ON" mirror="Y" mathclass="C"/>
<mathlatex set="unicode-math">\Rvzigzag</mathlatex>
<operator-dictionary form="postfix" lspace="0" rspace="0" priority="20"/>
<operator-dictionary priority="20" form="postfix" symmetric="true" fence="true" stretchy="true" lspace="0" rspace="0"/>
<description unicode="3.2">RIGHT DOUBLE WIGGLY FENCE</description>
</character>
<character id="U029DC" dec="10716" mode="math" type="normal">
Expand Down Expand Up @@ -60160,7 +60145,7 @@ Barbara Beeton for the STIX project
<mathlatex set="unicode-math">\dualmap</mathlatex>
<AMS>\dualmap</AMS>
<entity id="dumap" set="STIX"/>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="270"/>
<operator-dictionary form="infix" lspace="5" rspace="5" priority="270"/>
<description unicode="3.2">DOUBLE-ENDED MULTIMAP</description>
</character>
<character id="U029E0" dec="10720" mode="unknown" type="normal">
Expand Down Expand Up @@ -64050,7 +64035,7 @@ Barbara Beeton for the STIX project
<entity id="topfork" set="9573-2003-isoamsr">
<desc>fork with top</desc>
</entity>
<operator-dictionary form="infix" lspace="4" rspace="4" priority="260"/>
<operator-dictionary form="infix" lspace="5" rspace="5" priority="260"/>
<description unicode="3.2">PITCHFORK WITH TEE TOP</description>
</character>
<character id="U02ADB" dec="10971" mode="math" type="relation">
Expand Down Expand Up @@ -64438,7 +64423,7 @@ Barbara Beeton for the STIX project
<character id="U02AFE" dec="11006" type="other" mode="unknown">
<unicodedata category="Sm" combclass="0" bidi="ON" mirror="N" mathclass="B" alias="dijkstra choice"/>
<mathlatex set="unicode-math">\talloblong</mathlatex>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="270"/>
<operator-dictionary form="infix" lspace="3" rspace="3" priority="680"/>
<description unicode="3.2">WHITE VERTICAL BAR</description>
</character>
<character id="U02AFF" dec="11007" type="other" mode="unknown">
Expand Down

0 comments on commit 0e0e89b

Please sign in to comment.