Comments (4)
When I first came up with the idea of ORF, I had wanted to make it a zip file, like the open document formats that LibreOffice uses, so that media could be stored inside.
At the time we were looking at XML to follow suit with those formats, but YAML is much simpler to write and maintain. Then there's the problem with people making huge ORF files embedded with all sorts of binary data.
Eventually I tentatively decided that including URLs to media, rather than the actual media itself, would address these issues while still allowing for media to be associated with recipes.
@costrouc what are your thoughts on this?
from openrecipeformat.
I really appreciate the YAML format exactly because it is easy to read. Since urls are allowed you got me thinking that there is already support for images. Images can be included via a datauri. So I'd say it's solved.
I have looked at the documentation and spec. What field would be used for the media url? Can't find it.
Why I care is that I was considering to make an Polymer web component that would render these recipes (would be nice to have an image with each). Maybe will attempt this at a hackathon.
from openrecipeformat.
Hello together
Any updates or progress here yet?
For my recipe collection, there are pictures showing the finished recipe as well as pictures of some of the steps.
I would find that cool to include in the openrecipeformat. But if that's not desired I guess I'll limit that to the html version of the recipe....
from openrecipeformat.
In the current definition, you can add notes to each ingredient, step or recipe. These are fields for free text, so you can add either a link to an image or an image as a datauri.
notes:
- https://upload.wikimedia.org/wikipedia/commons/5/56/Tiger.50.jpg
The open question is if you're supposed to format the link in a specific way. Two obvious methods come to mind, either HTML or Markdown. Markdown Links and images would fit quite well into the YAML format, as long as you quote the string:
notes:
- "![](https://upload.wikimedia.org/wikipedia/commons/5/56/Tiger.50.jpg)"
HTML would make redering a web page quite simple and can be included without quotes or in single qoutes (because double quotes are usually used for attributes):
notes:
- '<img src="https://upload.wikimedia.org/wikipedia/commons/5/56/Tiger.50.jpg" />'
from openrecipeformat.
Related Issues (17)
- oven_* as top level information - and using oven more than once HOT 3
- Divided Ingredients List HOT 4
- Possibility to tag used ingredients in step
- More information HOT 1
- Validator software possible? HOT 1
- How does this format relate with schema.org spec? HOT 1
- Problems with navigation (reaching examples) HOT 3
- Open Recipe Format and hRecipe - State of art ?
- Setup ReadTheDocs automatic build integration
- Add basic convertor of other formats to/from ORF HOT 1
- Example of recipe using duration
- oven type would be nice
- bake_time vs oven_time HOT 2
- Recipes in the examples folder fail to be parsed by pyYAML HOT 5
- Suggestion for some improvements to the format with an example HOT 2
- Develop a JSON Schema HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openrecipeformat.