Lurker News

Comments (146) 44 threads

Earlier comments
defanor#
This reminds me of RDF recipe ontologies (as they can be used with RDFa: e.g., schema.org's Recipe[1] and the food ontology[2], and there are/were dedicated spiders to search those, such as openrecipes[3]), but with a custom syntax; might be nice to define mappings to/from those, for compatibility. Though unfortunately the larger open recipe databases I saw online tend to use custom (sometimes XML-based, at least) formats/structures, so there's nothing quite readily usable (that I'm aware of) as a result.

[1] https://schema.org/Recipe
[2] https://www.bbc.co.uk/ontologies/fo
[3] https://github.com/fictivekin/openrecipes

xutopia4 replies#
The only thing missing would be a substitute... for example "vinegar or lemon juice" is impossible to describe in the current language spec.
dubadub1 reply#
Good point, any idea how it could look like?
vborovikov2 replies#
How about

  [@raw organic cane sugar, @honey]{3%tbsp}
Here square brackets indicate that the ingredient will have variations separated by commas.
quisnam#
Good idea. I'd prefer the at sign in front of the brackets, though.

  @[sugar, honey]{3%tbsp}
It should be easier to parse and allows for brackets to be used elsewhere without escapes.
dubadub#
Interesting idea, how about the case when quantity varies for different ingredient? For example 2 tbsp of raw organic cane sugar or 3 honey.
splatcollision#
You could be inspired by the link reference syntax from markdown, and use the following where subs are possible:

add @acid{1%tsp} to @milk{1%cup} to create acidulated milk
[acid]{lemon juice|apple cider vinegar}
Anyway great spec and language!

gizdan#
Lots missing really, you can add nutrition and scaling things to that list.
doublepg231 reply#
Will need to check this out.

I've been looking for a way to index my mother's recipes in a useful way, was somewhat motivated two years ago.
I wanted something that:
1. produced well formatted PDFs for printing (my mother prefers paper).
2. it would substitute different ingredients. i.e. this recipe contains milk, a simple button or keybind would change it to an appropriate milk substitute.
3. automatically produced different measurements.
I tried GNOME Recipes [1] as it checked a lot of boxes but it has some big bugs still that make it basically unusable.
I considered maybe doing something org-mode and emacs, but kind of lost interest after that...
[1] https://wiki.gnome.org/Apps/Recipes

dubadub1 reply#
All great ideas, I've taken a note.

I'm not sure about "3. automatically produced different measurements.". What do you mean by that?

doublepg23#
Like the ability to double measurements. In the emacs example you'd be able to hit a key bind, enter how much to divide or multiply the recipe and it would automatically change it.

Load more comments