Coder Social home page Coder Social logo

Comments (4)

techhat avatar techhat commented on September 4, 2024

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.

costrouc avatar costrouc commented on September 4, 2024

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.

DO1JLR avatar DO1JLR commented on September 4, 2024

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.

telepath avatar telepath commented on September 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.