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 05-26-2011, 05:11 PM   #1
jennie
Member
jennie began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2010
Device: kindle 3
Kathimerini recipe on Kindle 3: Only first page shows

The Kathimerini (greek) recipe works just fine on my computer, but when trying to read on the kindle, only one page/screen per article will show. If I use a smaller font, I can see more content, but it is always only one screen/page per article. It might be a css issue, but I can't figure it out. (I just downloaded the latest calibre binary 0.8.2, on ubuntu 10.10).

P.S.: This line could also be added to the recipe, although it doesn't make any real difference, just eliminates some warnings:
Code:
    encoding               = 'windows-1253'
jennie is offline   Reply With Quote
Old 05-27-2011, 12:03 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,330
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Try adding

conversion_options = { 'linearize_tables': True}
no_stylesheets = True
kovidgoyal is offline   Reply With Quote
Advert
Old 05-27-2011, 04:06 AM   #3
jennie
Member
jennie began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jun 2010
Device: kindle 3
Thanx! That did the trick.

Updated code:
Spoiler:
Code:
from calibre.web.feeds.recipes import BasicNewsRecipe

class Kathimerini(BasicNewsRecipe):
    title                  = 'Kathimerini'
    __author__             = 'Pan'
    description            = 'News from Greece'
    max_articles_per_feed  = 100
    oldest_article         = 100
    publisher              = 'Kathimerini'
    category               = 'news, GR'
    language               = 'el'
    encoding               = 'windows-1253'
    conversion_options     = { 'linearize_tables': True}
    no_stylesheets         = True
    remove_tags_before     = dict(name='td',attrs={'class':'news'})
    remove_tags_after      = dict(name='td',attrs={'class':'news'})
    remove_attributes      = ['width', 'src','header','footer']

    feeds = [(u'\u03a0\u03bf\u03bb\u03b9\u03c4\u03b9\u03ba\u03ae',
  'http://wk.kathimerini.gr/xml_files/politics.xml'),
 (u'\u0395\u03bb\u03bb\u03ac\u03b4\u03b1',
  ' http://wk.kathimerini.gr/xml_files/ell.xml'),
 (u'\u039a\u03cc\u03c3\u03bc\u03bf\u03c2',
  ' http://wk.kathimerini.gr/xml_files/world.xml'),
 (u'\u039f\u03b9\u03ba\u03bf\u03bd\u03bf\u03bc\u03af\u03b1',
  'http://wk.kathimerini.gr/xml_files/economy_1.xml'),
 (u'\u0395\u03c0\u03b9\u03c7\u03b5\u03b9\u03c1\u03ae\u03c3\u03b5\u03b9\u03c2',
  'http://wk.kathimerini.gr/xml_files/economy_2.xml'),
 (u'\u0394\u03b9\u03b5\u03b8\u03bd\u03ae\u03c2 \u039f\u03b9\u03ba\u03bf\u03bd\u03bf\u03bc\u03af\u03b1',
  'http://wk.kathimerini.gr/xml_files/economy_3.xml'),
 (u'\u03a0\u03bf\u03bb\u03b9\u03c4\u03b9\u03c3\u03bc\u03cc\u03c2',
  'http://wk.kathimerini.gr/xml_files/civ.xml'),
 (u'\u039c\u03cc\u03bd\u03b9\u03bc\u03b5\u03c2 \u03a3\u03c4\u03ae\u03bb\u03b5\u03c2',
  'http://wk.kathimerini.gr/xml_files/st.xml')]

    def print_version(self, url):
        return url.replace('http://news.kathimerini.gr/4dcgi/', 'http://news.kathimerini.gr/4dcgi/4dcgi/')
jennie is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
TOC for news only shows "Front Page"? etienne66 Calibre 10 12-05-2010 10:05 AM
How to add my own html page to recipe naisren Recipes 3 11-17-2010 04:37 PM
recipe to pull web page similar to 'print/save as pdf' JPD Recipes 15 09-29-2010 09:20 AM
Kindle 2 shows up at the FCC TadW News 4 02-07-2009 10:13 PM
Kindle shows up in a commercial carld Amazon Kindle 1 09-05-2008 12:49 PM


All times are GMT -4. The time now is 01:09 AM.


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