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

[FIX] unicode: replace greek mu and omega by micro and ohm signs #73

Merged
merged 1 commit into from
Nov 12, 2018

Conversation

sappelhoff
Copy link
Member

@sappelhoff sappelhoff commented Oct 27, 2018

There is actually a difference between µ and μ.

Previously we had the greek Mu sign, but what we really want is the micro sign.

cf. https://twitter.com/stefanappelhoff/status/1055122338080006144

edit: This same error was also true for the omega sign, which should be an ohm sign:

@jasmainak
Copy link
Collaborator

This should not happen though. See quote from wikipedia below:

The symbol for the prefix comes from the Greek letter μ (mu)

probably something to do with UTF8 vs ASCII ?

@sappelhoff
Copy link
Member Author

The symbols have different unicode signs (U+00B5 vs. U+03BC), so copy pasting from the spec (as I did) can lead to problems.

In my case this was indeed a UTF-8 / ASCII issue (Python3 vs. Python2)

@jasmainak
Copy link
Collaborator

ah I see. Seems nasty. Perhaps something to check in the validator too?

@chrisgorgo
Copy link
Contributor

@jasmainak perhaps, but would not make it a high priority (worth opening an issue anyway).

Pinging @bids-standard/bep_leads for comments. Unless anyone objects I will merge this on 2018-11-02.

@sappelhoff
Copy link
Member Author

sappelhoff commented Oct 27, 2018

Perhaps something to check in the validator too?

+1

... as far as I know there are no unit checks implemented anyways at this point. So this adds one to the list.

@dorahermes
Copy link
Member

we had a long discussion about these units (which I can't find, maybe @robertoostenveld @choldgraf ?), but I remember a useful suggestion from @satra about the symbol used for micro

@satra
Copy link
Collaborator

satra commented Oct 28, 2018

here is the ascii-based units representation we discussed:

http://people.csail.mit.edu/jaffer/MIXF/MIXF-10

@jasmainak
Copy link
Collaborator

ascii-based unit representations sound like a great idea!

@chrisgorgo
Copy link
Contributor

Is the consensus to go with @satra suggestion instead of this PR? If so @sappelhoff could you update your branch accordingly?

@sappelhoff
Copy link
Member Author

Sure, but does accepting the ascii-based units mean rejecting the other units?

I could imagine leaving our units as they are currently (plus the fix of this PR) ... and then adding a link to our document that links to the ascii units suggested by @satra

@CPernet
Copy link
Collaborator

CPernet commented Nov 8, 2018 via email

@sappelhoff
Copy link
Member Author

@chrisfilo: in my opinion, this PR should be merged and we should have a separate discussion whether or not we want ...

  • ...the existing unicode representation for unit symbols and prefixes
  • ...a pure ASCII representation
  • ...a mixture of both

@sappelhoff sappelhoff changed the title [minor] replace greek mu by micro sign [MRG] unicode: replace greek mu and omega by micro and ohm signs Nov 12, 2018
@chrisgorgo chrisgorgo merged commit 1f8b240 into bids-standard:master Nov 12, 2018
@sappelhoff sappelhoff deleted the minor_fix_unit branch November 12, 2018 16:06
@sappelhoff sappelhoff changed the title [MRG] unicode: replace greek mu and omega by micro and ohm signs [FIX] unicode: replace greek mu and omega by micro and ohm signs Sep 8, 2020
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.

6 participants