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

Use the same $\mu$ character that the REPL produces with \mu-TAB #23

Closed
wants to merge 1 commit into from
Closed

Use the same $\mu$ character that the REPL produces with \mu-TAB #23

wants to merge 1 commit into from

Conversation

timholy
Copy link
Collaborator

@timholy timholy commented Jun 28, 2014

No description provided.

@ivarne
Copy link

ivarne commented Jun 29, 2014

Is this a breaking change, or does normalization hide the issue?

@timholy
Copy link
Collaborator Author

timholy commented Jun 29, 2014

If users have units written to a disk file, this would be breaking. (I will be one such user affected by this change.)

However, after talking with Keno, we both wonder whether the better approach might be to change the \mu rendered in the REPL. For both him and me, the one that \mu-TAB produces is not the one that is suggested by our OS. So if you use the character generator rather than the LaTeX mode, you get conflicts.

CC @stevengj, @JeffBezanson.

@stevengj
Copy link
Collaborator

Technically, the micro sign µ in micrometers etc. is a different codepoint than the greek small mu that is produced by \mu. NFC does normalize one into the other; NFKC would normalize µ into μ but it was decided not to use NFKC (JuliaLang/julia#5434).

However, I think that this distinction is not worth preserving, and we are better off with using the same \mu codepoint for both.

@stevengj
Copy link
Collaborator

No, \mu should definitely not produce the micro codepoint. This would be inconsistent with how all of the other greek letters are treated.

Yes, typing option-m on MacOS produces the micro sign, not mu. But using Greek input mode on MacOS (which is what I used to use for Greek letters in Julia prior to the LaTeX substitutions) produces mu.

@stevengj
Copy link
Collaborator

As discussed in JuliaLang/julia#5903, it might be worthwhile to normalize µ (micro) to μ (mu) in identifiers, as one of a limited set of additions to NFC normalization.

@timholy
Copy link
Collaborator Author

timholy commented Jun 29, 2014

I'll be happy with any decision that synchronizes these two.

@Keno Keno closed this Oct 6, 2015
@Keno Keno reopened this Oct 6, 2015
@Keno
Copy link
Owner

Keno commented Oct 6, 2015

Now that tab completion is more prevalent, I think this should be merged, even if it's not the µ you get from the keyboard.

@stevengj
Copy link
Collaborator

stevengj commented Oct 6, 2015

Why not just export both versions?

@Keno
Copy link
Owner

Keno commented Oct 6, 2015

Oh, huh, somehow I had not considered that option ;). Great idea!

@Keno
Copy link
Owner

Keno commented Oct 6, 2015

Done

@Keno Keno closed this Oct 6, 2015
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.

4 participants