From: Erik Hetzner <egh@e6h.org>
To: Ken Mankoff <mankoff@gmail.com>
Cc: Xebar Saram <zeltakc@gmail.com>,
Fletcher Charest <fletcher.charest@gmail.com>,
org mode <emacs-orgmode@gnu.org>,
Robert Horn <rjhorn@alum.mit.edu>
Subject: Re: org-cook
Date: Mon, 17 Mar 2014 07:52:45 -0700 [thread overview]
Message-ID: <87fvmgj2rm.wl%egh@e6h.org> (raw)
In-Reply-To: <m2y508evw0.fsf@gmail.com>
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/>.
next prev parent reply other threads:[~2014-03-17 14:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 7:24 org-cook Xebar Saram
2014-03-15 17:38 ` org-cook Erik Hetzner
2014-03-15 18:03 ` org-cook Xebar Saram
2014-03-15 18:18 ` org-cook Erik Hetzner
2014-03-16 0:40 ` org-cook Robert Horn
2014-03-17 14:22 ` org-cook Fletcher Charest
2014-03-17 14:26 ` org-cook Xebar Saram
2014-03-17 14:30 ` org-cook Fletcher Charest
2014-03-17 14:34 ` org-cook Ken Mankoff
2014-03-17 14:52 ` Erik Hetzner [this message]
2014-03-15 18:25 ` org-cook Alan Tyree
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fvmgj2rm.wl%egh@e6h.org \
--to=egh@e6h.org \
--cc=emacs-orgmode@gnu.org \
--cc=fletcher.charest@gmail.com \
--cc=mankoff@gmail.com \
--cc=rjhorn@alum.mit.edu \
--cc=zeltakc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).