Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2010, 05:17 PM   #1
PeterMzizi
Member
PeterMzizi began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2010
Device: sony prs 300
Dilbert - does not fit Sony PRS 300

I am using 0.7.33
I find that the Dilbert cartoons do not fit the Sony screen in normal (portrait) or landscape orientation.
I saw from the closed sticky that this problem existed some time ago and was apparently fixed but I have had this over several earlier versions.

The cartoons display fine in Calibre's own viewer and have done so in all versions I have used.

While I am here, any chance of a recipe for The Reverend Fun?
http://www.reverendfun.com/features/rss/?language=en

Many thanks
PeterMzizi is offline   Reply With Quote
Old 12-11-2010, 07:02 PM   #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 PeterMzizi View Post
I am using 0.7.33
I find that the Dilbert cartoons do not fit the Sony screen in normal (portrait) or landscape orientation.
Try this:
Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
'''
http://www.dilbert.com
'''

from calibre.web.feeds.recipes import BasicNewsRecipe
import re

class DilbertBig(BasicNewsRecipe):
    title                  = 'DilbertBig'
    __author__             = 'Darko Miletic big images added by Starson17'
    description            = 'DilbertBig'
    reverse_article_order = True
    oldest_article         = 15
    max_articles_per_feed  = 100
    no_stylesheets         = True
    use_embedded_content   = True
    encoding               = 'utf-8'
    publisher              = 'UNITED FEATURE SYNDICATE, INC.'
    category               = 'comic'
    language               = 'en'

    conversion_options = {
                             'comments'        : description
                            ,'tags'            : category
                            ,'language'        : language
                            ,'publisher'       : publisher
                         }

    feeds = [(u'Dilbert', u'http://feeds.dilbert.com/DilbertDailyStrip' )]

    def get_article_url(self, article):
        return article.get('feedburner_origlink', None)

    preprocess_regexps = [
        (re.compile('strip\..*\.gif', re.DOTALL|re.IGNORECASE), lambda match: 'strip.zoom.gif')
        ]

    def preprocess_html(self, soup):
       for tag in soup.findAll(name='a'):
           if tag['href'].find('http://feedads') >= 0:
              tag.extract()
       return soup

    extra_css = '''
                    h1{font-family:Arial,Helvetica,sans-serif; font-weight:bold;font-size:large;}
                    h2{font-family:Arial,Helvetica,sans-serif; font-weight:normal;font-size:small;}
                    img {max-width:100%; min-width:100%;}
                    p{font-family:Arial,Helvetica,sans-serif;font-size:small;}
                    body{font-family:Helvetica,Arial,sans-serif;font-size:small;}
		'''

I don't have a Sony, but I prefer this modification of Dilbert. It may have no effect, but I'd be interested in your report.
Starson17 is offline   Reply With Quote
Advert
Old 12-12-2010, 02:00 PM   #3
PeterMzizi
Member
PeterMzizi began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2010
Device: sony prs 300
Starson17
Yes this does resize the cartoon to fit the screen - a little small in portrait but fine in landscape
Many thanks for this fix.
Peter
PeterMzizi is offline   Reply With Quote
Old 12-12-2010, 02:35 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 PeterMzizi View Post
Starson17
Yes this does resize the cartoon to fit the screen - a little small in portrait but fine in landscape
Many thanks for this fix.
Peter
It's designed to be used in landscape (or on a wide screen monitor) for normal wide comic "strips" and in portrait for the few comics that are taller than they are wide.. It just sizes the width of the image to the max width available.

It also works well on the PC screen where you can resize the window you are viewing in.

Thanks for the report.
Starson17 is offline   Reply With Quote
Old 12-28-2010, 03:43 PM   #5
PeterMzizi
Member
PeterMzizi began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2010
Device: sony prs 300
At some point between using 0.7.33 and 0.7.35 the standard Dilbert recipe has started fine
PeterMzizi is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sony OUTLET STORE: REFURB PRS-300 for $80, PRS-600 for $103.99 USD gardenstate Sony Reader 0 11-15-2010 03:53 PM
Refurbished PRS-600 & PRS-300 at Sony USA DonaldL. Deals and Resources (No Self-Promotion or Affiliate Links) 3 10-13-2010 07:57 PM
Aktuelle Sony Reader (PRS-300/700/900) ‚besser‘ als PRS-500? FraPe Sony Reader 4 02-19-2010 01:34 AM
Canadian perspective of the recent Sony ebook readers - PRS-300/PRS-600/PRS-2121 nrapallo News 1 08-29-2009 10:38 AM
Sony PRS-300 and PRS-600 press release and gallery Alexander Turcic News 0 08-05-2009 04:01 AM


All times are GMT -4. The time now is 06:38 AM.


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