Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 11-02-2011, 08:58 AM   #1
mattst
Enthusiast
mattst began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
Code which creates recipe feed xhtml?

The way Calibre formats the code for the display of .mobi pages from recipe feeds is excellent. In particular the navigation method is superb, the 'Sections and Articles' page with the feeds list on the left and article list on the right is outstanding design. So to is the way (on my Kindle) pressing the next or previous page buttons scrolls the articles list of the currently selected feed, leaving the feed list in place. When viewing any article page the permanency of the 'View Sections & Articles' link at the bottom is also excellent design. I also very much like the professional looking solid black underline bar which denotes the currently selected link, instead of the more usual hand pointer icon.

I am currently formatting some mobi books from a collection of wikipedia pages (and a few others). I would like to use a similar interface. I have been looking through the Calibre source code to find the xhtml (or such like) which Calibre uses as a template to format the feeds from recipes, but have been unable to find it.

Can someone point me to the right file(s) in the Calibre source code please?

Also if anyone has the xhtml and other files used to create a recipe feed mobi file as an example then I would appreciate it a lot.

Many, many thanks. Best wishes, etc.
mattst is offline   Reply With Quote
Old 11-02-2011, 12:43 PM   #2
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
What you're looking for doesn't exist. The formatting you're referring to is a product of the Kindle itself. When it detects a MOBI that is of the periodical type it automatically displays the file in that way. It's actually overriding the formatting in the file itself.
user_none is offline   Reply With Quote
Advert
Old 11-02-2011, 12:48 PM   #3
mattst
Enthusiast
mattst began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
Thanks for the info. user_none, appreciated.

Is there any way I can examine the (presumably temp) files which ebook-convert creates in order to build the .mobi file from the recipe it's been given? That way I can examine the xhtml/html and see how I can recreate it for my own purposes.

Thanks again.
mattst is offline   Reply With Quote
Old 11-02-2011, 01:13 PM   #4
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Have a look at this for information on the topic.

You can run a conversion from the command line and use the debug(?) flag to output all intermediate stages of a conversion.
user_none is offline   Reply With Quote
Old 11-02-2011, 01:33 PM   #5
mattst
Enthusiast
mattst began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Nov 2011
Device: Kindle
Thanks again user_none.

Cheers.
mattst is offline   Reply With Quote
Advert
Reply

Tags
feed, recipe, source code

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find Dialog and XHTML Code View jondolar Sigil 0 10-18-2011 10:16 AM
Graphical layout vs. semantically "correct" XHTML code Iznogood Workshop 16 04-05-2011 08:14 AM
RECIPE Request: MLB.COM RSS Feed fung Recipes 0 03-26-2011 11:42 PM
adding contents to the recipe feed poldem Recipes 4 03-26-2011 05:10 PM
Recipe with only one feed miwie Recipes 1 11-23-2010 09:53 AM


All times are GMT -4. The time now is 08:49 AM.


MobileRead.com is a privately owned, operated and funded community.