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

Add alternate names with µ for micro instead of u #142

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

corranwebster
Copy link
Contributor

@corranwebster corranwebster commented Jul 2, 2021

This also changes several labels that were using u for "micro".

This keeps the old names around, so no code should break.

Fixes #135.

@mdickinson
Copy link
Member

Please could you add some tests? For example, a test that 'µf' has the appropriate relationship to 'f' would be useful.

@@ -71,7 +71,7 @@

m = meter
nm = nanometer
um = micrometer
µm = um = micrometer
Copy link
Member

Choose a reason for hiding this comment

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

Probably worth adding a test that both µm (using MICRO SIGN) and μm (using GREEK SMALL LETTER MU) are parsed correctly with this definition. They are right now, but that could change if we move away from using eval at some point in the future.

Copy link
Member

Choose a reason for hiding this comment

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

FWIW, and somewhat surprisingly, Unicode TR 25 says that GREEK SMALL LETTER MU is the preferred character here. (See section 2.5 of http://www.unicode.org/reports/tr25/)

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.

Have unit names with µ for micro- prefix and allow other symbolic unit names
2 participants