Skip to content

Commit 76727db

Browse files
authored
fix Tilde and RawTilde (#45)
\[Tilde] is a character associated to the unicode \u223c instead of ~ \[Tilde] is an operator which is not Infix but Tilde, with precedence 290. \[Tilde] has a wl-unicode-name TILDE OPERATOR ~ is not a valid ASCII representation for this operator (otherwise, the conversion get broken) \[RawTilde] is the (ASCII) character ~, and it is associated to Infix, and is associated to the wl-unicode character ~ and wl-unicode-name TILDE
1 parent be4d6de commit 76727db

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

mathics_scanner/data/named-characters.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4469,15 +4469,14 @@ Infinity:
44694469
wl-unicode-name: INFINITY
44704470

44714471
# Infix isn't really an operator
4472-
# See also Tilde
4472+
# See also RawTilde
44734473
Infix:
44744474
ascii: "~"
44754475
amslatex: "\\textasciitilde"
44764476
has-unicode-inverse: false
44774477
is-letter-like: false
44784478
# operator-name: Infix
44794479
unicode-equivalent: "~"
4480-
wl-unicode-name: TILDE
44814480

44824481
Information:
44834482
ascii: "??"
@@ -6221,6 +6220,8 @@ RawTilde:
62216220
has-unicode-inverse: false
62226221
is-letter-like: false
62236222
unicode-equivalent: '~'
6223+
wl-unicode: '~'
6224+
wl-unicode-name: TILDE
62246225

62256226
RawUnderscore:
62266227
has-unicode-inverse: false
@@ -7563,17 +7564,18 @@ Thorn:
75637564

75647565
# See also operator Infix.
75657566
# Tilde has no built-in meaning per the documentation,
7566-
# so it is not the same as Tilde.
7567+
# so it is not the same as RawTilde.
75677568
# Yes, it is confusing.
75687569
Tilde:
7569-
ascii: "~"
75707570
esc-alias: '~'
75717571
has-unicode-inverse: false
75727572
is-letter-like: false
75737573
operator-name: Tilde
7574+
precedence: 290
75747575
# Since we have an esc-alias, we add wl-unicode for the checker to work.
7575-
wl-unicode: "~"
7576-
wl-unicode-name: TILDE
7576+
unicode-equivalent: "\u223c"
7577+
wl-unicode: "\u223c"
7578+
wl-unicode-name: TILDE OPERATOR
75777579

75787580
TildeEqual:
75797581
amslatex: "$\\simeq$"

0 commit comments

Comments
 (0)