-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tournant can not parse decimal fractions from Gourmand #12
Comments
Hi, could you please provide an example how the fraction is written in the XML file? |
I am using Gourmand 1.0.0. |
I see. You mean numbers in decimal representation. Gourmand is very inconsistent, it uses While it would be very easy to treat I addressed this issue to Gourmand but as there is no active development, I wouldn't expect a fix on this side. However, at the side of Tournant, any solution will always be a bad compromise: Should the app assume that the every file has the same locale as the Android device, neglecting the possibility of an exchange between different devices or people speaking different languages? Should the app introduce complicated settings for the user who may or may not know about the decimal separator used in the file? And how should Tournant behave when exporting to an XML file? This problem can only be solved on Gourmand's side. Either by exporting with only the same (i.e. dot) delimiters or by specifying the locale in the file. Until there is a solution for that, you can try to check |
Let's try this. From version 2.2 on, Tournant will parse and write XML files with commas depending on the language of your device. You can change the decimal separator in the settings of the app (e.g. if you need to open recipes from colleagues using a different locale). But beware: Tournant now ignores everything that is not a digit or the configured decimal separator so instead of an empty amount, you may oversalt your soup. ;-) |
just wondering if this is ever going to be fixed. |
Could you please elaborate what is not working for you? |
not sure if this is the same issue assuming based on what i read here it is if not let me know and will open a new issue. When trying to add a fraction amount in a recipe like 1 and half or even half or maybe even a quarter it does not allow. So based on what i read here i tried to use a comma which did not let me put so tried a period but just put it was 1.5 not putting 1/2 the proper way. |
If you want to use a commas instead of a periods, you can change that in the settings. You should be able to input |
Ok not sure but for some reason that setting doesn't make a difference and also it says it's for import and export settings, not in the app. Also just wondering why adding fractions is opening a can of worms? |
The decimal separator should match the locale on your device. If this is not the case, would you tell me the locale on your phone? Maybe I missed something.
The amount is saved as a You can of course write 1/2 in the same field like the unit. Will look the same. Just no calculations possibly then. |
If in Gourmand a specific ingredient is defined as a fraction of a whole Tournant will not display this value. The displayed value is empty.
The text was updated successfully, but these errors were encountered: