From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Hetzner Subject: Re: org-cook Date: Mon, 17 Mar 2014 07:52:45 -0700 Message-ID: <87fvmgj2rm.wl%egh@e6h.org> References: <87mwgr4b2b.wl%egh@e6h.org> <87lhwb496i.wl%egh@e6h.org> Reply-To: Erik Hetzner Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPYuW-0005Bc-LY for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 10:53:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPYuS-0007Bp-19 for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 10:53:04 -0400 Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:47537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPYuR-0007Bj-Qx for emacs-orgmode@gnu.org; Mon, 17 Mar 2014 10:52:59 -0400 Received: by mail-pa0-f47.google.com with SMTP id lj1so5773422pab.6 for ; Mon, 17 Mar 2014 07:52:58 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff Cc: Xebar Saram , Fletcher Charest , org mode , Robert Horn 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 .