Replies: 5 comments 1 reply
-
|
Thanks for idea @tobei. This will be definitely good addition to the language. |
Beta Was this translation helpful? Give feedback.
-
|
I think this would be very useful - I really like recipes that can be cooked with a range of different ingredients, for example a fruit pudding recipe that can be made with blackberries, blueberries or apples. A syntax I think could work for this is separating the ingredients with a pipe symbol in a similar way to bitwise-OR operators in many languages etc and also very similar to what has been proposed here #50 (comment) : Optionally a quick shorthand could also be added - useful when the quantities etc are the same for each option: If an empty ingredient was used, the ingredient could be marked as optional, which covers #50: For completeness I would suggest the same syntax be added to utensils: In terms of shopping lists, I would suggest that the first ingredient that is found in the shopping list config file be used - this supports the use cases of dietary requirements (specify only the things you can eat in the config file) and store availability. Stretching further, I think it could become a part of a variants system, where one recipe can be cooked in several ways. I will add a separate discussion for that though. If you'd like a PR for this, let me know and I'll see what I can do :) |
Beta Was this translation helpful? Give feedback.
-
|
I'm thinking on a different approach. If you put the alternatives within some kind of marker with an "or" separator (say "[ ]") and adding the condition ("if you can't find", "if you prefer", etc) to the end, in a similar way to the shorthand preparations notation. It would need rewording work on the part of the user writing the recipe, as it's not a "natural" way of writing, but I'd say it'd pay the effort.
Render:
Render:
Maybe it would also allow for multiple options
Render:
I understand that different languages have different grammar and, therefore , can have different structures for this kind of conditionals/disjunctive clauses, but I can say that this works both in English and Spanish. I'd also say that the list of ingredients should reflect the fact that they're alternatives
|
Beta Was this translation helpful? Give feedback.
-
|
I feel like to give the most flexibility to cooks, you'd need two different additional syntax forms.
Syntax: Advantage:
Syntax: Advantage: possibility to choose how to handle the in-place display. Could be by concatenating the options with " or ", or by having a dropdown menu somewhere to choose which version you'd want to use Several additional thoughts which would require even more syntax:
|
Beta Was this translation helpful? Give feedback.
-
|
As I mentioned in #75 (comment) some ingredients might be a substitute for multiple in a recipe. As an example a cocktail recipe might call for "simple syrup, lemon juice" but this can be relaced with sour-mix, if it's on hand. A recipe for ramen might have a whole set of steps for building the soup base, but a pre-made soup base might be on hand. Often times recipes are organised into ingredient categories, e.g. "Ingredients for the soup base". Though maybe interlinking recipes and having more component-based recipes is better? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Some ingredients can be hard to find or unsuitable for some diet (maybe two separate usecases). Having a syntax to mark an ingredient as optional or suggesting alternative ingredient that can be substitued because they have similar taste, or vegan alternative, or not so important in the recipe could be useful.
That way the original recipe could feature all the original ingredients (e.g. Tabasco), but could feature a more general alternative as Spicy Sauce if Tabasco can't be found, or for baking 10g fresh yeast could have a 5g dry yeast alternative if fresh yeast isn't available.
Beta Was this translation helpful? Give feedback.
All reactions