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 04-23-2011, 07:04 PM   #1
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
Sony PRS-650 - Calibre newsfeed - Le Monde – Cicero – Recipes -

On my reader, the Sony PRS-650, I can’t read the French newspaper « Le Monde » every time when a picture is part of the article (however, I can on calibre). The same applies to the German monthly “Cicero”. I believe it might have to do with the recipes for the newsfeed. Is there any solution for this problem?
I do have other newspapers and journals than those downloaded with the newsfeed function of calibre that I want to store in the collection “Periodical” on the memory card of my reader. I tried everything to adapt the tags in calibre in all different ways, but I didn’t succeed. I have already read some about this problem this in other threads of this forum, but as for me I have to say: the proposed solutions didn’t work. Any other ideas?
See for instance
http://www.mobileread.com/forums/showthread.php?t=99374
http://oldbugs.calibre-ebook.com/ticket/8125

wonderose

Last edited by wonderose; 05-14-2011 at 09:55 PM.
wonderose is offline   Reply With Quote
Old 04-23-2011, 09:25 PM   #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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Make sure your output profile in calibre is set to SONY.
kovidgoyal is online now   Reply With Quote
Old 04-24-2011, 02:43 PM   #3
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Moderator Notice
Moved to correct forum.
Manichean is offline   Reply With Quote
Old 04-25-2011, 09:14 PM   #4
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
Thanks for your answer!
Right at the beginning of using calibre (as some epub files wouldn't work on my PRS-650) I changed the output profile to Sony Reader. I did that in preferences - conversion - Common Options- - Page Setup.
Was that what you meant?
wonderose is offline   Reply With Quote
Old 04-25-2011, 09:23 PM   #5
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yes that is what I meant. The other thing to do is make sure your are sending the files to your device with the send to device button in calibre.
kovidgoyal is online now   Reply With Quote
Old 04-26-2011, 09:27 AM   #6
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
Up until now the newsfeed was downloaded and managed automatically by calibre. Following your line of thought I converted the feed of Le Monde and Cicero that I had got over the last few days to a new epub file with the output profile being set to Sony reader. I then sent it manually back to the reader. But nothing changed: readable on caliber, with all kind of nice pictures attached to the text, yet unreadable on my Sony PRS-650 (as far as the articles with pictures are concerned).

Last edited by wonderose; 04-26-2011 at 01:52 PM.
wonderose is offline   Reply With Quote
Old 04-26-2011, 11:30 AM   #7
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then you have to figure out what markup is causing the reader to choke and add some code to the recipe to filter it out.
kovidgoyal is online now   Reply With Quote
Old 04-26-2011, 01:52 PM   #8
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
That I have already tried – to no avail. For me, python code is like wandering through the jungle. In the end I always get lost. Perhaps we should move this thread to the recipes Forum.

There, by the way, I found the recipe I have been using for quite some time now: “Improved recipe for Le Monde”
http://www.mobileread.com/forums/sho...ighlight=monde

Thanks for your help!

wonderose

Last edited by wonderose; 04-28-2011 at 12:30 AM.
wonderose is offline   Reply With Quote
Old 04-26-2011, 01:57 PM   #9
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Add a call to self.adeify_images in the preprocess function, that often fixes ADE rendering bugs.
kovidgoyal is online now   Reply With Quote
Old 04-28-2011, 02:03 AM   #10
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
I did this:

def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
alink.replaceWith(tstr)
return self.adeify_images(soup)

But no improvement - nor even any change.
Is the code how you intended it to be?

Last edited by wonderose; 04-28-2011 at 08:05 AM.
wonderose is offline   Reply With Quote
Old 04-28-2011, 11:07 AM   #11
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Yeah that is it. Well, it was worth a shot.
kovidgoyal is online now   Reply With Quote
Old 04-28-2011, 11:15 AM   #12
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
Well, then thanks a lot for your help!
wonderose is offline   Reply With Quote
Old 06-28-2011, 12:30 PM   #13
sonasi
Junior Member
sonasi began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2011
Device: positron2@hotmail.com
Solution

I had the same problem on my Nook. When an article contained a picture, nothing in the article showed up except the headline. The solution is to insert the following line in the recipe, in order to exclude the images at the top of some articles:

remove_tags = [dict(name='div', attrs={'class':['LM_atome']})]

Hope this helps someone!
sonasi is offline   Reply With Quote
Old 07-01-2011, 02:31 PM   #14
wonderose
Enthusiast
wonderose began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Apr 2011
Location: Berlin, Germany
Device: Android Tablets
Terrific!

After adding your line, the recipe works without fault.

Thank you very much!
wonderose is offline   Reply With Quote
Old 08-23-2011, 05:05 AM   #15
Bryan790
Banned
Bryan790 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2011
Device: Bryan790
sonasi, i've faced the same problem on the kindle. probably the provided link will suit me too..
Bryan790 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
Sony PRS-950 or PRS-650, or even the Kindle 3 sivajayaraman Which one should I buy? 9 04-15-2011 03:28 AM
Perdue dans le monde des readers (PRS-650, E-60, Orizon ou Opus ?) Zuya Assistance 26 02-28-2011 12:36 PM
Here are my Recipes built for the Sony 650 mufc Recipes 2 01-29-2011 06:24 PM
disconnecting Sony PRS-650 from Calibre Arroll Calibre 8 01-18-2011 03:40 AM
Calibre and Sony PRS 650 eBook reader robertpolson Calibre 1 09-21-2010 02:44 PM


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


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