-
Notifications
You must be signed in to change notification settings - Fork 80
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
Zn(NO3)2.6H2O fails to parse in 0.8.3, regression? #223
Comments
I think this is the known issue noted in #207, #211, and here. I assume just the to unicode parsing is broken but the rest are working? I haven't done further research on the unicode alternatives, so I don't know if they have added subscript/superscript decimal separators or if a better option has arisen. I know I have a bad solution ready in a branch somewhere, but I would really like unicode to add the decimal separators. |
@ibressler , thank you for reporting this. To me this looks like a regression. And I think we need to take regressions seriously (i.e. avoid breaking existing code whenever feasible). @jeremyagray For a subscript dot in unicode this might work (it looks alright in my terminal but I know unicode support is iffy on other platforms): >>> print("H₂\u0323₃")
H₂̣₃ it doesn't look that great in my webbrowser though. But I guess most solutions are better than the current state. Would you agree? The superscript dot I tried doesn't look great, but I think it might be acceptable? >>> print("Ca²\u02d9³⁺")
Ca²˙³⁺ This is what it looks like on a chromebook (my travelling laptop): |
The aesthetics are horrible, but that was the original problem with the fix. Let me find that original fix and I'll use these characters as stand-in decimal separators, hopefully in a day or two. |
Thank you @jeremyagray ! I'm on vacation at the moment, so no need to stress since I won't be able to upload to PyPI for another couple of days either way. |
Even after we fix the unicode printing issue we will be facing another problem, i.e. the ambiguity between floating point stoichiometries and crystal water. I do know that we discussed this. But it escaped my mind that the change is now between
I'm leaning towards creating a 0.8.x branch, reverting the parser changes there, bumping version on master to be upcoming 0.9.x and start thinking of a migration path for "crystal water dot". Perhaps requiring interpunct to get "crystal water behavior"? Any thoughts regarding this @ibressler? |
Thanks for your feedback and fixes for this, it's very much appreciated!
So, the interpunct should be fine. |
Thank you @ibressler. I'm leaning toward accepting asterisk ( |
I can't remember if this is a regression. We (I?) addressed the hydrate/decimal subscript issue in the parser by using |
So I have released both:
Let me know if there are any further issues. |
With version 0.8.2, the formula
Zn(NO3)2.6H2O
was parsed just fine:With version 0.8.3, I get an error:
Is this intended?
Thanks for more info on that!
Best wishes
Ingo
The text was updated successfully, but these errors were encountered: