This repository has been archived by the owner on Jun 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up -- fixing values and removing some non operators
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
Showing
1 changed file
with
15 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters