Skip to content

Commit 6b15b44

Browse files
authored
Merge pull request #40 from Mathics3/transpose-and-conjugate
Corrections/additions to Transpose and Conjugate
2 parents b0e4dbb + 9efebf4 commit 6b15b44

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.github/workflows/mathics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
- name: Test Mathics
2929
run: |
3030
# Until next Mathics3/mathics-core release is out...
31-
python -m pip install -e git://github.com/Mathics3/mathics-core#egg=Mathics3[full]
31+
python -m pip install -e git+https://github.com/Mathics3/mathics-core#egg=Mathics3[full]
3232
# pip install Mathics3[full]
3333
make check-mathics

mathics_scanner/data/named-characters.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,11 +1305,13 @@ Conjugate:
13051305
esc-alias: co
13061306
has-unicode-inverse: false
13071307
is-letter-like: false
1308+
operator-name: Conjugate
13081309
wl-unicode: "\uF3C8"
13091310
ConjugateTranspose:
13101311
esc-alias: ct
13111312
has-unicode-inverse: false
13121313
is-letter-like: false
1314+
operator-name: ConjugateTranspose
13131315
wl-unicode: "\uF3C9"
13141316
ConstantC:
13151317
esc-alias: cc
@@ -7627,6 +7629,7 @@ Transpose:
76277629
esc-alias: tr
76287630
has-unicode-inverse: true
76297631
is-letter-like: false
7632+
operator-name: Transpose
76307633
unicode-equivalent: "\u1D40"
76317634
unicode-equivalent-name: MODIFIER LETTER CAPITAL T
76327635
wl-unicode: "\uF3C7"

mathics_scanner/tokeniser.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,19 @@
139139
# ('DiscreteRatio', r' \uf4a4 '),
140140
# ('DifferenceDelta', r' \u2206 '),
141141
# ('PartialD', r' \u2202 '),
142-
("Cross", r" \uf4a0 "),
142+
# uf4a0 is Wolfram custom, u2a2f is standard unicode
143+
("Cross", r" \uf4a0 | \u2a2f"),
143144
("Colon", r" \u2236 "),
144-
("Transpose", r" \uf3c7 "),
145+
# uf3c7 is Wolfram custom, 1d40 is standard unicode
146+
("Transpose", r" \uf3c7 | \u1d40"),
145147
("Conjugate", r" \uf3c8 "),
146148
("ConjugateTranspose", r" \uf3c9 "),
147149
("HermitianConjugate", r" \uf3ce "),
148150
("Integral", r" \u222b "),
149151
("DifferentialD", r" \U0001D451 "),
150152
("Del", r" \u2207 "),
151-
("Square", r" \uf520 "),
153+
# uf520 is Wolfram custom, 25ab is standard unicode
154+
("Square", r" \uf520 | \u25ab"),
152155
("SmallCircle", r" \u2218 "),
153156
("CircleDot", r" \u2299 "),
154157
# ('Sum', r' \u2211 '),

0 commit comments

Comments
 (0)