-
Notifications
You must be signed in to change notification settings - Fork 56
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
contextualize conversions #49
Comments
Your custom definitions are loaded last and override any built-ins, so you can redefine
You can change the built-in definitions by editing the
Neither.
The workflow supports Pint's contexts (just enter the context name first before any numbers). Fundamentally, the workflow is just a dumb frontend to Pint, and not intended to be much more than that. Guessing which units are meant from context is something that would have to be implemented by Pint. |
FWIW: The ISO Standard symbol for the I didn't know I have updated the
and that seems to do the trick for me. |
The problem is that
pint
uses distinct mapping while in reality there is some kind of ambiguity without a proper context.For example: Does
kn
meanskilo newton
orknots
? Doesh
meanhour
or the Planck constant?It would be great to evaluate the possible meaning of the source expression and the target expression. If there is a match in types it's very likely that's the context the user meant. Or even show the result of both if possible.
No way in hell I will remember I have to use
kpm
forkm/h
orknots
instead ofkn
. It's hard to build up muscle memory for this.I guess replacing the dictionary with units that I use could be an option. But so far I only found how to add new units. No problem to drop the Planck constant. But it would be sad to drop newton.
The text was updated successfully, but these errors were encountered: