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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2011, 06:34 AM   #1
poldem
Member
poldem began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Mar 2011
Device: kindle
adding contents to the recipe feed

I have made my first recipe.
At the moment it collects title, author and contents.

I would like to add a small newspaper logo, which is not contained in the feed, but it is available on the web site where the feed is located.

The required action is adding an image just before the end of the title <DIV> (substituting the current title with current title + image reference).
I know how it should be handled in HTML, but do not know how to do it in the recipe.

please help !
poldem is offline   Reply With Quote
Old 03-26-2011, 09:51 AM   #2
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by poldem View Post
I have made my first recipe.
At the moment it collects title, author and contents.

I would like to add a small newspaper logo, which is not contained in the feed, but it is available on the web site where the feed is located.

The required action is adding an image just before the end of the title <DIV> (substituting the current title with current title + image reference).
I know how it should be handled in HTML, but do not know how to do it in the recipe.

please help !
I'm not sure exactly what you are asking.

Images are added to the article content the same way they are handled in HTML - as <img>.
Starson17 is offline   Reply With Quote
 
Advertisement
Old 03-26-2011, 10:24 AM   #3
poldem
Member
poldem began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Mar 2011
Device: kindle
I want to add my own contents, which is not in the feed.
In this particular case this is an image (newspaper logo).

There is no special purpose for this, just estetic
poldem is offline   Reply With Quote
Old 03-26-2011, 05:48 PM   #4
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by poldem View Post
I want to add my own contents, which is not in the feed.
In this particular case this is an image (newspaper logo).

There is no special purpose for this, just estetic
Use BeautifulSoup and insert your img as a tag where you want it with preprocess_html. If you need to pull the image from your site because it changes, you can use index_to_soup to get it.

Last edited by Starson17; 03-26-2011 at 08:05 PM.
Starson17 is offline   Reply With Quote
Old 03-26-2011, 06:10 PM   #5
poldem
Member
poldem began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Mar 2011
Device: kindle
thanks, this will take some time ...
poldem is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a feed to a collection Lev667 Amazon Kindle 2 03-05-2011 10:14 PM
Adding a feed to the built-in NY Times recipe t0s Recipes 3 03-03-2011 12:26 PM
Adding Table of Contents to ePub problems... cates Calibre 2 10-10-2010 05:18 PM
how to remove Table of Contents at the end of news feed TonytheBookworm Calibre 4 09-21-2010 11:19 AM
News Feed Table of Contents NewVMan Calibre 5 07-28-2009 08:24 PM


All times are GMT -4. The time now is 12:33 PM.


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