thinkle / gourmet

Gourmet Recipe Manager
GNU General Public License v2.0
338 stars 139 forks source link

html export with microdata or microformats support #31

Closed ockham closed 11 years ago

ockham commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

<!DOCTYPE HTML>

::microdata SAMPLE:: Cipolle di Tropea in agrodolce

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.

ockham commented 11 years ago

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.

Lamecarlate commented 9 years ago

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