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 02-07-2012, 08:05 PM   #1
kiavash
Old Linux User
kiavash began at the beginning.
 
Posts: 36
Karma: 12
Join Date: Jan 2012
Device: NST
Question Nook doesn't show 'Microwave and RF' recipe's epub

Sorry if this post is in the wrong forum. Not sure if it is recipe related or ebook-convert.

While trying to write a recipe for Microwave and RF magazine, I came across very strange issue.

While the Calibre's own ebook reader has no problem reading the produced .epub, when I upload it to NST, the articles are not shown correctly. Only the first page of each article is shown and the rest is ignored, meaning flipping the page goes to the end of the article instead of the next page. To add more salt to the wound, Moon+ reader shows the .epub correctly.

Attached is the recipe and its .epub output.

I thought it may had been caused by "table" property so I tested these codes
Spoiler:
PHP Code:
        # Converts all the article pages into one body
        
for body in soup.findAll('span'):
            
body.name 'font'
            
        
# Removes tables to make it compatible with Mobi
        
for table in soup.findAll('table'):
            
table['class'] = table['id']
            
table['id'] = ''
            
table.name 'font' 

but the same results on NST.

Please
Attached Files
File Type: zip mwrf.zip (368.1 KB, 228 views)
kiavash is offline   Reply With Quote
Old 02-07-2012, 10:04 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: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There's something in the markup that the Nook doesn't like. First try adding

conversion_options = {'linearize_tables':True}
kovidgoyal is offline   Reply With Quote
Advert
Old 02-09-2012, 12:55 PM   #3
kiavash
Old Linux User
kiavash began at the beginning.
 
Posts: 36
Karma: 12
Join Date: Jan 2012
Device: NST
Thumbs up

Thanks a lot. You are really a guru!

I promise to return the favor by soon posting the recipe once it is clean and ready to be included in the wonderful calibre!
kiavash is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recipe for Microwave Journal kiavash Recipes 17 01-12-2013 01:31 AM
Nook STR: epub show only cover molokom Conversion 1 06-30-2011 06:45 AM
Calibre EPUB books won't show up in Nook Color? weplayedpirates Barnes & Noble NOOK 0 06-17-2011 12:34 PM
IPAD vs. Microwave cheerio6414 Apple Devices 2 05-10-2010 08:13 PM
iPad iPad + microwave = mess scottjl Apple Devices 5 05-04-2010 01:52 PM


All times are GMT -4. The time now is 03:46 PM.


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