Quote:
Originally Posted by aquatic_rent
Hi all,
I just grabbed an H2O edition 2 yesterday and immediately loaded some epubs to try things out.
I've noticed that one epub is missing chunks of text throughout the book.
I've pulled the epub up in Calibre, where it displays fine, to diagnose. It looks like it happens most often after ellipses, which are encoded in the epub with non-breaking spaces, in a line like:
Code:
all those stresses . . .</span></p>
It will just choke at the first non-breaking space and then skip several lines of text, sometimes all the way to the next Chapter heading.
|
That code is not a problem. I have plenty of books with exactly that in it and have not seen anything missing.
Quote:
To make this harder to diagnose, it does not happen with all non-breaking spaces, or even all ellipses.
I've tried altering fonts and spacing and margins, turning off the device, and reloading the epub. I even trimmed the epub down to the section that was having problems, to isolate it. It reproduced, but didn't give me any clues about what in the epub was causing the issue.
I tried searching the forums, I found some issues about missing text, but they did not seem related. (In a post on an older Kobo, it seems like they could see the top few pixels of the next line of text then empty space on the device. With this issue, it cuts the text then places the very next letter after cut text next, so you might get two words mashed together without a space.)
Appreciate any recommendations for how I can help diagnose what's going on. (I tried emailing Kobo support, the email address in this forum redirects to a live chat that no one answered... I'll try again during other hours, maybe it was just closed.)
|
As Jon said, it is probably an error in the code. The most likely culprit is incorrect nesting of tags. I've seen this problem with code that looked like:
Code:
<p>So I sang to her...</p>
<p><span class="green">First lyric line</p>
<p>Second lyric line</p>
<p>Third lyric line</span></p>
<p>She seemed to like it...</p>
When I read this on the Kobo, everything after the last line of the song was missing. The calibre viewer showed it all (and gave a very different ending to the night than I was expecting). I had to fix the code in the calibre editor to see it on the Kobo.
If you open the book in the calibre editor, run the check function (the little bug in the toolbar). It will show any errors like this for you to fix.
Edit: To slow!