Skip to content
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

Only do NFD normalization for latex tab-completion if needed #41870

Merged

Conversation

GunnarFarneback
Copy link
Contributor

Before this PR:

help?> ≠
"≠" can be typed by =\not<tab>

With this PR:

help?> ≠
"≠" can be typed by \ne<tab>

Fixes #39814.

# Decompose NFC-normalized identifier to match tab-completion
# input if the first search came up empty.
s = normalize(s, :NFD)
latex = symbol_latex(s)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this second lookup is not needed?

@vtjnash vtjnash merged commit ab600f8 into JuliaLang:master Aug 16, 2021
@GunnarFarneback GunnarFarneback deleted the less_normalized_latex_completions branch August 16, 2021 17:52
@GunnarFarneback
Copy link
Contributor Author

Any chance this could be considered for backporting?

@fredrikekre fredrikekre added backport 1.6 Change should be backported to release-1.6 backport 1.7 labels Oct 12, 2021
KristofferC pushed a commit that referenced this pull request Oct 18, 2021
KristofferC pushed a commit that referenced this pull request Oct 19, 2021
@PallHaraldsson
Copy link
Contributor

PallHaraldsson commented Oct 19, 2021

It may not be important, but the commits (not the issue) have zero (0) in "0nly", not "Only". I checked and you can't search for it on Github, and the difference isn't very obvious in some fonts...

KristofferC pushed a commit that referenced this pull request Nov 11, 2021
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Nov 13, 2021
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
@GunnarFarneback GunnarFarneback mentioned this pull request Nov 20, 2022
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

\in\not vs \notin
5 participants