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-26-2014, 05:29 AM   #1
skoll1975
Member
skoll1975 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2012
Device: Kindle
New recipe NZZ Webpaper

Hi Kovid,

please find attached the revised recipe for NZZ Webpaper (payed version).

Obviously there was a recent change in src/calibre/ebook/oeb/parse_utils that added additional syntax checks for HTML. They broke my recipe because it used incomplete HTML files that were not accepted by parse_utils after the change (shame on me ...).

So the new version delivers more correct HTML than the old one.

In detail: the function parse_html is now looking for a string "<html" - if it doesnt find one, the call of check_for_html5 fails in line 276 because of undefined value in variable pre. Maybe you want to add some additional checks to handle this condition.

Regards,

Bernd
Attached Files
File Type: zip nzz.zip (1.5 KB, 196 views)
skoll1975 is offline   Reply With Quote
Old 04-26-2014, 05:42 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: 39,813
Karma: 17764952
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
updated.
kovidgoyal is online now   Reply With Quote
Advert
Old 05-13-2014, 09:20 AM   #3
gr650
Member
gr650 doesn't littergr650 doesn't litter
 
Posts: 18
Karma: 172
Join Date: Oct 2011
Device: Boox M90
Does anyone have an idea why the recipe doesn't download the article images? I get a nicely navigable epub, but without the images (which are there in the webpaper version). I'm running the ebook-convert commandline conversion.

Just automated the epub creation to run in the morning, putting the epub file straight into my dropbox: http://chruss.wordpress.com/2014/05/...-ebook-reader/
gr650 is offline   Reply With Quote
Old 05-16-2014, 01:19 AM   #4
skoll1975
Member
skoll1975 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Jun 2012
Device: Kindle
Hi gr650,

I deliberately removed the images from the webpaper, because I wanted a small epub result (think about the 100 mb the official download packages have) and greyscale images are not displayed nicely on my kindle anyway.

So, it's not a bug, it's a feature.

Regards,

Bernd
skoll1975 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
New recipe NZZ Webpaper skoll1975 Recipes 8 09-08-2014 04:38 AM
Update to NZZ Webpaper skoll1975 Recipes 3 05-25-2013 11:57 PM
Neue Zürcher Zeitung NZZ Webpaper Update skoll1975 Recipes 0 04-24-2013 02:47 PM
New Recipe: NZZ Folio skoll1975 Recipes 0 07-07-2012 06:49 AM
Neue Zürcher Zeitung: Webpaper skoll1975 Recipes 0 06-10-2012 09:43 AM


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


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