View Single Post
Old 01-07-2010, 08:26 PM   #1094
lorenzov
Member
lorenzov began at the beginning.
 
lorenzov's Avatar
 
Posts: 23
Karma: 12
Join Date: Jan 2010
Location: Edinburgh, UK
Device: SONY PRS600, Apple iPhone 3G
recipes from blogs

hi guys,

after doing some translation work to support Calibre, i'm slowly getting the hack of recipes and would very much appreciate any expert suggestions to solve a number of issues.

To start with what i can contribute with, i thought that Steve's last post is useful to ask how to solve a couple of issues i'm having with recipes to create ebooks from blog feeds. this i believe will be quite interesting for many other calibre users, at least from what i can tell from the questions in the thread

attached there is a possible first attempt to Men's fitness which i found interesting because there are tons of nested tables and not too easy to render. in fact there are some odd things to fix...

to start with the articles' index. i noticed this also in other recipes (i.e. darknet) in which the index of articles is on the second page, even though there is a single feed.
i was trying to figure out how to put the list of articles in the first page taking the example from the atlantic recipe, but i was not able to do what i wanted.

second, like it or not, i realised that there are plenty of 'malformed' feeds in which html tags don't have neither an id or class in the css, but it is not possible to delete them referring to the 'name' because otherwise all the other malformed tags are also removed.
i'm wondering if the beautifulSoup stuff would help, but i haven't figured out how to use that yet...

a while back someone asked if it would have been possible to do a recipe workshop. as personally i find the recipes the most powerful feature of calibre i'm wondering if a wiki section on recipes will provide extra info and support for all of us avid users of calibre?

for example, one of the things i could not find out is a 'template' for recipes to submit, therefore i kind of copied the format from some of them trying to be comprehensive, but i might find out that half of the things are actually useless.

finally, i'm working on a number of recipes for italian sources, if you have requests or would like to cooperate feel free to get in touch!

lorenzo
Attached Files
File Type: zip mensFitness.zip (763 Bytes, 185 views)

Last edited by lorenzov; 01-07-2010 at 08:30 PM.
lorenzov is offline