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 01-20-2011, 06:04 PM   #1
cafedo
Junior Member
cafedo began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
Creating my custom recipes: enlarge image in blog post

Hi everybody!
I've done a simple custom recipes for this blog: http://borisjr.blogspot.com/.
This is the result:

class AdvancedUserRecipe1295559267(BasicNewsRecipe):
title = u'BorisJr'
oldest_article = 7
max_articles_per_feed = 100
no_stylesheets = True
remove_javascript = True
keep_only_tags = [dict(name='div', attrs={'class':'post hentry'})]
remove_tags = [dict(name='div', attrs={'class':'post-footer'})]
extra_css = '''
Apple-style-span {color:black;}
td.tr-caption {font-size:14px;}
'''
feeds = [(u'BorisJr', u'http://borisjr.blogspot.com/feeds/posts/default')]

The result on my Kindle is pretty well, but I've two question:
- it's possible to enlarge a little bit the image content in each post? Maybe do i have to enlarge margin of the post converted? How?
- Using this command <Apple-style-span {color:black;}> I can't change article font color (wich is red) in black, probably because I can't attach very well the real css class of article text. So the article in Kindle appears faded; what i have to do to prevent this?

Thanks in advance..
cafedo is offline   Reply With Quote
Old 01-20-2011, 06:27 PM   #2
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,861
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by cafedo View Post
I've done a simple custom recipes for this blog
There is a Calibre Recipes sub-forum for questions like this.
DoctorOhh is offline   Reply With Quote
Old 01-21-2011, 02:57 PM   #3
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 cafedo View Post
The result on my Kindle is pretty well, but I've two question:
- it's possible to enlarge a little bit the image content in each post? Maybe do i have to enlarge margin of the post converted? How?
Yes. you can scale images. set the CSS to 100% min-width may do what you want. Of course, you can't get any more image data/pixels than the source image has. Look at the comics.com recipe for info. You can also use Image Magick tools to do some of this.

Quote:
- Using this command <Apple-style-span {color:black;}> I can't change article font color (wich is red) in black, probably because I can't attach very well the real css class of article text. So the article in Kindle appears faded; what i have to do to prevent this?

Thanks in advance..
Remove style or CSS you don't want and add extra-css you do want.
Starson17 is offline   Reply With Quote
Old 01-23-2011, 08:16 AM   #4
cafedo
Junior Member
cafedo began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
Ok, I will try and then I will give you a feedback..

Carlo
cafedo 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
Custom recipes (archive, read-only) kovidgoyal Recipes 2842 09-26-2010 08:34 AM
Creating recipes - neccessary skills? fcoulter Calibre 3 07-18-2010 11:55 AM
Donations for Custom Recipes ddavtian Calibre 5 01-23-2010 04:54 PM
Help understanding custom recipes andersent Calibre 0 12-17-2009 02:37 PM
Help Creating custom RSS feed need only the image Malakai Calibre 0 07-31-2009 04:28 PM


All times are GMT -4. The time now is 04:37 PM.


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