-
-
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
Bowtie symbol isn't a valid character. #23820
Comments
Ah, one of those category Sm characters. They have a range of meanings so we need to whitelist them. Should this be an operator or just an identifier character? |
Yes, ⋈ (U+22c8) was one of the characters that got left out because it wasn't immediately clear if it should be an operator or an identifier. It seems like it is mainly used as a relation symbol. Most of these relational algebra symbols were added in #8036. Confusingly, the join symbol ⨝ (U+2a1d) (tab-complete One option would be to add a mapping to our custom Julia Unicode normalization that simply parses ⋈ (U+22c8) as equivalent to ⨝ (U+2a1d). |
I would like to use it as an infix operator for natural join between 2 relations, but I'd be fine if it was just a valid function name. |
Oh, I didn't realize they were different unicode symbols. I'm fine using the join symbol, but |
It's capital |
Normalizing these seems sane since they like exactly alike. |
The reason it was |
One oddity is that julia> charwidth('⋈') # bowtie
1
julia> charwidth('⨝') # join
2 ( |
My terminal and/or font seems to have the widths swapped --- bowtie takes up 2 columns (though the terminal doesn't know it) and join takes up 1. |
My terminal handles EDIT: Julia with OhMyREPL displays it with one column but moves the cursor symbol another column right, despite typing in the correct place. Julia without OMR displays it with 2 columns but removes second column on backspace. EDIT 2: I have iterm2 with Unicode 9 widths turned on; that's probably relevant |
Would there be any issue with making all the unicode substitutions case-insensitive? Is there an example where the casing would matter? |
@rofinn, since the same tab-substitution list is now supported by several editors, and we can't control the case sensitivity of editor tab substitution without providing an explicit list of all possibilities ( See also the discussion in #21646 about rationalizing the latex completions. |
IIRC, there are examples where case matters in LaTeX escapes. |
Example:
|
Alright, I forgot about |
Update: |
FWIW,
\bowtie
tab completed on the REPL.The text was updated successfully, but these errors were encountered: