Thread: EPUB output
View Single Post
Old 07-31-2009, 11:37 AM   #528
ekaser
Opinion Artiste
ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.
 
ekaser's Avatar
 
Posts: 301
Karma: 61464
Join Date: Mar 2009
Location: Albany, OR
Device: Nexus 5, Nexus 7, Kindle Touch, Kindle Fire
Quote:
Originally Posted by kovidgoyal View Post
Look for a <pre> tag in the html and convert it to <p> tag.Don't forget to convert the closing tag as well.
Thanks! That turned out not to be the problem, but it got me looking in the right place. It turned out (I think) to be a problem with the <DIV> blocks (after comparing the two files further). I ended up removing all of the <DIV> and </DIV> markers, except for a few around headings, and that fixed the problem.

Now here's the (possibly) interesting thing. The mis-performing .LIT file is one that I bought over 6 years ago to use on a Pocket PC. At the time, for whatever reason, I'd used the CLIT program to split the LIT file apart into it's HTML components. When recently starting conversions of favorite books to epubs (in preparation for receiving my first eInk reader), I downloaded Calibre, started figuring out how to use it, and used the original .LIT files as the source to convert from, resulting in the EPUB file that didn't wrap. After unZIPing the epub and figuring out that the DIVs appeared to be the problem, I remember/realized that I also had the HTML files that had been generated by CLIT. So out of curiousity, I used Calibre to convert that HTML file to an epub, and it worked fine! So, I think (not 100% sure, but pretty sure) that the problem occurred in Calibre's conversion of the LIT file to its internal HTML format.

Everett
ekaser is offline   Reply With Quote