/recipe-notation

A prototype for a cooking recipe notation.

Primary LanguageRust

Recipe Notation

This is a super quick and super dirty proof-of-concept for a recipe notation. It's inspired by Cooking for Engineers tabular recipe notation:

Tabular recipe notation

But it's different. So. Whatever.

Read anything here at your own risk. This is some bad Rust code. I deliberately cut almost every possible corner to PoC this quickly.

Usage

$ cat recipe | cargo run | dot -Tsvg > recipe.svg

Example

1 Cream: butter (225g, softened),
         sugar (300g, granulated)
2 Beat: #1, sour cream (230g)
3 Mix: #2, eggs (2, large)
4 Mix: #3, vanilla extract (15mL)
5 Toast: pecans (25g, chopped)
6 Process to crumbs: #5
7 Whisk: #6, baking powder (14g), salt (1.5g),
         all-purpose flour (125g, sifted)
8 Fold in: #7, #4

Output

Output