metric-cooking icon indicating copy to clipboard operation
metric-cooking copied to clipboard

Unconverted ingredient on this recipe page

Open ghost opened this issue 6 years ago • 2 comments

https://foodwishes.blogspot.ro/2012/02/garlic-shrimp-not-necessarily-in-that.html

1 1/2 tbsp [22 ml] olive oil 1 pound [450 g] shrimp salt to taste 6 cloves garlic, minced fine 1/4 tsp red pepper flakes 2 tbsp cold butter [28 g], cut in 4 pieces ...

Highlighted the unconverted ingredient (red pepper flakes).

Thanks for the awesome addon btw :+1:

ghost avatar Mar 24 '18 11:03 ghost

Thanks for the report! The reason is that I've hardcoded a condition that if the result is less than 4ml (or 4g), I don't output the conversion, since amounts that small cannot be reasonably measured anyway with anything but a measuring spoon. Here, we would have about 1.2ml. Personally, I have a set of measuring spoons with labels like "1/4 tsp", so that's what I'd use here. I suppose it might be useful to have this optional, though, and if I get around to implementing an options dialog I'll add an option for it.

falk-hueffner avatar Mar 27 '18 18:03 falk-hueffner

Maybe adding something like [< 4 g] or [< 4 ml] or [less than 4 g] or really just the actual amount even if it's tiny would help make this seem less like a bug. Gram-level measurements are doable, I have a pretty cheap kitchen scale and while somewhat flaky, it responds ok usually to single gram differences.

ghost avatar Mar 27 '18 18:03 ghost