After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775855 - Support unit conversion and unit preferences
Support unit conversion and unit preferences
Status: RESOLVED FIXED
Product: recipes
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: 2.0
Assigned To: Recipes maintainer(s)
Recipes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-12-08 18:37 UTC by Matthias Clasen
Modified: 2017-09-19 12:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2016-12-08 18:37:36 UTC
Another expected feature in cooking apps. I should be able to say that I want to see metric or imperial units. Not sure if more detailed preferences are necessary.
Comment 1 Peter Oliver 2016-12-19 19:46:30 UTC
I would find automatic dimension conversion useful.  I frequently find myself looking at, e.g., http://www.wolframalpha.com/input/?i=2+cups+flour to convert US volume measures to grammes.  I do not own US measuring cups, and find it more convenient to weigh ingredients rather than squint at a measuring jug.

I realise, however, that this requires a database of ingredient densities, so is much harder than a simple unit conversion.
Comment 2 Kai Willadsen 2016-12-23 22:02:37 UTC
(In reply to Matthias Clasen from comment #0)
> Not sure if more detailed preferences are necessary.

Sadly, more detailed preferences might be useful, since "standard" units like tablespoon and cup vary across countries, even ignoring imperial/metric. Australia is probably the worst example of this; we have a standard 20mL (instead of 15mL) metric tablespoon measure, which is a huge difference in something like a baking recipe.
Comment 3 hugh 2016-12-27 14:29:06 UTC
Imperial and US Customary units differ too.  The fluid ounce is slightly different and the gallon has a different number of ounces in each system (and all units that are related to the gallon).

Even though the Imperial system has been officially eliminated in most countries, it will live on in recipes.
Comment 4 Josh Triplett 2016-12-27 16:43:29 UTC
Doing a direct conversion of a recipe written in one unit to another unit will likely produce unusual measurements, such as "4.058 tsp" of something.

If someone ends up cooking the recipe with minor changes to the ingredients, such as snapping all the measurements to the nearest easily measured amount (for instance, "4 tsp"), perhaps Recipes could provide a convenient way to contribute a "validated" variant, and show that instead of an auto-converted version when people request a conversion.  An auto-converted version could show an appropriate note somewhere saying that the recipe was auto-converted from $unit_system, and a suggestion to write down and contribute a variant with converted measurements.

A similar system of "variants" could also allow for substitutions, such as for people who modify a recipe for their dietary requirements.
Comment 5 jeff 2017-01-20 21:48:37 UTC
I would definitely like to see conversion to weights from volumes, as well as conversion from metric to imperial etc. A preference to show units using non-abbreviated forms would be nice as well, it took me a while to realize that "dl" stood for deciliter - a unit that's infrequently used in the US even when we do use metric unit.

Also, from looking at some of the recipes included so far I think that it would be useful to have some indication (esp when creating a recipe) that certain measurements are ambiguous, especially the "pkg" unit and that the ingredient description should more precisely specify the size of the package.  This is important because package sizes can vary based on a number of factors like geographical region, brand, time (it's not uncommon for manufacturers to change package sizes to maintain profit margins without changing the price of the product), "family" or "value" sized packages, etc.
Comment 6 Matthias Clasen 2017-03-04 17:49:29 UTC
this is an outreachy project idea: https://wiki.gnome.org/Apps/Recipes/Contributing/Units
Comment 7 Matthias Clasen 2017-09-19 12:38:33 UTC
I've merged this work now