View Single Post
Old 10-12-2010, 07:22 AM   #2
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Quote:
Originally Posted by muwa View Post
Hi All,

I have tried to create a recipe for Novaya Gazeta but couldn't make it work. Tried straight rss feed without any modifications. Then found the way to get printable pages (by appendig ?print=<some number> for all url requests). Neither one worked. Every time I get only one page view for entire article which is also cut on the right side. By the way, internal Calibre viewer shows entire articles but Kindle doesn't.

Can anyone help me to explain what I am doing wrong?

Thanks,
Mike
You state that the internal Calibre viewer shows the entire article but the kindle does not. This leads me to believe that is is a tables issues.
Try adding this to your recipe and see if it helps.
Spoiler:

Code:
no_stylesheets = True
conversion_options = {'linearize_tables' : True}

 def preprocess_html(self, soup):
        for item in soup.findAll(attrs={'style':True}):
            del item['style']
        return soup
TonytheBookworm is offline   Reply With Quote