At Mon, 17 Mar 2014 10:34:55 -0400,
Ken Mankoff wrote:
>
> Hi,
>
> This isn't directly related to Org, but I'll mention it anyway since
> people are discussing quantities and "scale" for their
> recipes. Various programming languages have "physical units" packages
> that can make working with units quite fun. I use the python
> "Quantities" package
> http://pythonhosted.org/quantities/user/tutorial.html . It lets you
> define custom quantities such as how many grams of butter are in a
> stick, etc. A wrapper to this would let you convert Org recipe
> shopping lists from units of "g" and "teaspoon" to units of "sticks"
> and "fluid oz".
Hi Ken,
emacs calc also handles units. For org-cook [1] I extended the
definitions as follows (calc already has definitions for fluid oz):
(setq math-additional-units
'((pinch "tsp / 8" "Pinch")
(drop "tsp / 76" "Drop")
(dash "drop * 6" "Dash")
(jigger "floz * 1.5" "Jigger")
(gill "floz * 4" "Gill")))
best, Erik
1. https://gitorious.org/org-cook/org-cook/
--
Sent from my free software system <http://fsf.org/>.