Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html export with microdata or microformats support #31

Closed
ockham opened this issue Dec 24, 2012 · 5 comments
Closed

html export with microdata or microformats support #31

ockham opened this issue Dec 24, 2012 · 5 comments

Comments

@ockham
Copy link
Collaborator

ockham commented Dec 24, 2012

Converted from SourceForge issue 3565626, submitted by SourceForge user no. 3480783 on 2012-09-07 17:10:03 UTC.

I would love two things:

  1. html export with a rich snippets (microdata, microformats, and RDFa) tagging (better if we can choose between standards)
  2. html should not have any formatting, CSS could be used instead.
    Once the html export tagging is implemented, css formatting would be very easy, sort of skinnable.
    I'm not able to develop such export plugin feature, but I could contribute writiung CSS to create such skins (screen/ipade/print ready).
    It would be also be great for the export plugin to be able to create an index page to linking to all the axported recipes, when exporting many.
    References:
    http://microformats.org/wiki/hrecipe
    http://schema.org/Recipe
    I would be glad to contribute, but I'm not a programmer.
@ockham
Copy link
Collaborator Author

ockham commented Dec 24, 2012

Submitted on 2012-09-14 18:00:11 UTC.

dear thomas - I know what you say about css- but I would like to switch from "arbitrary" classes to meaningful (microformats/microdata...) classes/id.
If you look at my sample, I would then use a table for the ingredients, in columns ingredient+quantity+unit+optional - I love html5 and would like to discuss the best formatting for a recipe.

I didn't notice the index functionality - thank you.

@ockham
Copy link
Collaborator Author

ockham commented Dec 24, 2012

Submitted by SourceForge user thomas_hinkle on 2012-09-07 22:39:04 UTC.

The current HTML export does use CSS and classes to amke it very easy to "skin" recipes. You're welcome to contribute new CSS files -- you can look at an HTML export for an example of how it works right now.

Also, the export plugin already includes an index page (there are two ways to export -- if you export a webpage from the Index view, gourmet creates a folder with an index.html, a css file and individual pages).

@ockham
Copy link
Collaborator Author

ockham commented Dec 24, 2012

Submitted on 2012-09-07 17:50:05 UTC.

<title>::microdata SAMPLE:: Cipolle di Tropea in agrodolce</title> <style> </style>

Cipolle di Tropea in agrodolce

delle

-

tempo di preparazione:1 notte
tempo di cottura:7 minuti
porzioni:1 kg cipolle

Ingredienti

quantità ingrediente
1 kg cipolle di Tropea
1/3 litro acqua a temperatura ambiente
1/3 litro aceto di vino
1/3 litro olio extra vergine d'oliva
1 cucchiaio zucchero
1 cucchiaino sale

Istruzioni

Portare ad ebollizione tutti gli ingredienti, cipolle escluse.

Calare le cipolle pulite, se grandi, tagliate in pezzi.

Lasciar bollire per 7 minuti.

Lasciar raffreddare nel liquido di cottura.

Per una lunga conservazione imbarattolare coperte di liquido e sterilizzare bollendo i barattoli.

Nutrienti
calorie2464 Cal
grassi229 g
grassi saturi32 g
proteine11 g
carboidrati35 g
colesterolo0 g
zuccheri53 g
sodio46 mg
(senza condimenti)

calcolato da WolframAlpha

@ockham
Copy link
Collaborator Author

ockham commented Jan 6, 2013

The microformat request should be fixed by the patch coming with issue #4 (which as been applied). As for the CSS styling part, I've created issue #680.

@ockham ockham closed this as completed Jan 6, 2013
@Lamecarlate
Copy link
Contributor

I would like to reopen this issue: microdata (itemscope, itemprop, etc) do not work with html4, only with html5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants