Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 05-29-2017, 10:54 PM   #1
aquatic_rent
Junior Member
aquatic_rent began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2017
Device: Kindle Keyboard 3G (B006)
Missing text on Kobo H20 Edition 2 [SOLVED]

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&nbsp;.&nbsp;.&nbsp;.</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.

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.)

Thanks for any recommendations!

Last edited by aquatic_rent; 05-30-2017 at 07:31 AM.
aquatic_rent is offline   Reply With Quote
Old 05-29-2017, 11:19 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
RMDSK (ADE) does not like code that has errors. So it could be your code has errors. Run one of the ePub with the problem through Calibre's eBook editor and run the book check on it and fix all the errors. Then run the same ePub through epubcheck and fix any errors. Then load it back on your Kobo and see if it displays correctly.
JSWolf is offline   Reply With Quote
Old 05-30-2017, 12:10 AM   #3
aquatic_rent
Junior Member
aquatic_rent began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2017
Device: Kindle Keyboard 3G (B006)
nbsp not declared

Oh thanks, that was the perfect recommendation.

The error checker built into Calibre didn't find the issue, but EPUB-Checker confirmed:

Code:
Fatal Error while parsing file 'The entity "nbsp" was referenced, but not declared.'.
Googling that error, this StackOverflow post points out that nbsp is not a recognized XML entity (even though it's about something completely different).

It recommends declaring the entity or using the hex:

Code:
& # xA0; or & # 160;
(But without spaces, apparently deleting those on this forum breaks the text, even in a CODE block)

There were other errors, lots of "parsing file 'element "span" not allowed here;"

Too many, and I'm not sure how to fix them. Those weren't marked "FATAL" though. I'll try find and replace on the nbsp's and hope that goes most of the way.

Repairing every error could get really time consuming... really hope this is find and replace.

(Maybe this was all because I converted from .mobi?)

Thanks!

StackOverflow link: https://stackoverflow.com/questions/...erenc#13012488

Last edited by aquatic_rent; 05-30-2017 at 12:14 AM. Reason: adding stackoverflow link
aquatic_rent is offline   Reply With Quote
Old 05-30-2017, 12:21 AM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by aquatic_rent View Post
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&nbsp;.&nbsp;.&nbsp;.</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!

Last edited by davidfor; 05-30-2017 at 12:27 AM.
davidfor is offline   Reply With Quote
Old 05-30-2017, 03:27 AM   #5
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
&nbsp and other such entities are not allowed in epubs unless you have a suitable DOCTYPE declared at the top of the file. Here is an example of the beginning of a .xhtml file that uses &nbsp in the text and passes epubcheck:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Last edited by GeoffR; 05-30-2017 at 03:30 AM. Reason: spelling
GeoffR is offline   Reply With Quote
Old 05-30-2017, 07:29 AM   #6
aquatic_rent
Junior Member
aquatic_rent began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2017
Device: Kindle Keyboard 3G (B006)
nbsp not declared

Thanks for all your suggestions and help.

For any others that hit this issue:

I did not have errors with tags, calibre's error check didn't show any errors even when I still had this issue. Tag nesting still worth checking to rule things out, could easily cause problems for some.

I'm guessing davidfor's files with nbsp worked because of correct headers.

Some of my embedded html files in the epub had a full header with a DOCTYPE, some didn't, which explains why this behaved inconsistently throughout the book. No idea why my headers were only half correct.

FIX: I used find and replace in Calibre's editor for all instances of nbsp to #160. (You may want a leading ampersand a/o trailing semicolon to avoid false positives.) That was fast, and seems to have fixed it. Double checking the headers of all 30 or so files would probably be the better school solution, but the find/replace was very fast, so if someone else has this issue, I'd try it first.

Thanks again to everyone who weighed in!

(Now how to mark this thread resolved...)
aquatic_rent is offline   Reply With Quote
Old 05-30-2017, 07:31 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You should still check with epubcheck. It catches errors that Calibre doesn't.
JSWolf is offline   Reply With Quote
Old 05-30-2017, 07:33 AM   #8
aquatic_rent
Junior Member
aquatic_rent began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2017
Device: Kindle Keyboard 3G (B006)
epubcheck

Quote:
Originally Posted by JSWolf View Post
You should still check with epubcheck. It catches errors that Calibre doesn't.
Oh definitely that too. I tried to mention before, your suggestion was how I confirmed nbsp was causing what epubcheck alarmingly called "FATAL ERRORS," so this is a great case study for epubcheck finding things calibre doesn't. Thanks for the original recommendation there.
aquatic_rent is offline   Reply With Quote
Reply

Tags
epub, kobo, missing text


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Collections on Kobo H20 wiped. Josieb1 Devices 4 03-02-2017 04:19 PM
Buy Kobo Aura H20 uppon2 Flea Market 1 12-08-2014 11:41 AM
Kobo H20 murg Kobo Reader 3 08-18-2014 08:10 PM
Kobo Touch - Converted EPUBs - Missing text smg669 Devices 3 01-21-2014 08:28 PM
Kobo Aura - Missing text for epubs bargainofoz Kobo Reader 11 09-26-2013 06:20 AM


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


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