-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\in\not vs \notin #39814
Comments
These are considered different names under the unicode normalization that we use. Is there a normalization form that equates them? |
Either way, it looks like our help hint is wrong for |
Yes, I suppose it was. I didn't know how to type that character, so I pasted it in |
All of the above also seems to apply to other "not" symbols. e.g. help?> ≠ #\ne
"≠" can be typed by =\not<tab>
help?> ≉ #\napprox
"≉" can be typed by \approx<tab>\not<tab> |
Hmm, it works here (julia 1.6.0-rc1 as well as 1.7.0-DEV.606, macOS Intel, iTerm2) The difference between the two methods is that the first directly inserts the character, while the second needs to delete the |
(I forgot that editing doesn't notify people...) |
I'm using |
Can you test a different one (kitty, alacritty, pangoterm)? |
Hunh, that's odd. Here's what I see on 1.6.0-rc1 and 1.7.0-DEV.606, macOS/x86/iTerm2 Build 3.4.4: help?> ∉ # \notin
"∉" can be typed by \in<tab>\not<tab>
search: ∉
∉(item, collection) -> Bool
...
julia> ∉ # \in\not
ERROR: UndefVarError: ∉ not defined On 1.5 the hints match how I wrote it. |
Oh, I also get the |
Aha, I bet the hints changed in #36382, where we use NFD normalization to look up the latex completion. Watch out, it's what GitHub apparently uses, too. Julia source code uses NFC. The former normalizes julia> codeunits(REPL.REPLCompletions.latex_symbols["\\notin"])
3-element Base.CodeUnits{UInt8,String}:
0xe2
0x88
0x89
julia> codeunits(Unicode.normalize(String([0xe2, 0x88, 0x89]), :NFC))
3-element Base.CodeUnits{UInt8,String}:
0xe2
0x88
0x89
julia> codeunits(Unicode.normalize(String([0xe2, 0x88, 0x89]), :NFD))
5-element Base.CodeUnits{UInt8,String}:
0xe2
0x88
0x88
0xcc
0xb8 |
Hello,
I've found a discrepancy between two ways to write ∉ at the REPL Julia v1.6.0-beta1 on Arch Linux.
Both are recognized at the
help?>
prompt and suggested to be typed the same way, but only\notin
has methods -\in\not
is undefined.Here's a summary of the differences
Vector{UInt8}
)help?>
typing hint\notin<tab>
"∉" can be typed by \in<tab>\not<tab>
\in<tab>\not<tab>
"∉" can be typed by \in<tab>\not<tab>
I'm curious whether others observe the same issue on other systems or Julia versions.
Cheers,
Oliver
The text was updated successfully, but these errors were encountered: