05-29-2017, 10:54 PM | #1 |
Junior Member
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 . . .</span></p> 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. |
05-29-2017, 11:19 PM | #2 |
Resident Curmudgeon
Posts: 74,188
Karma: 129333564
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.
|
05-30-2017, 12:10 AM | #3 |
Junior Member
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.'. It recommends declaring the entity or using the hex: Code:
& # xA0; or & # 160; 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 |
05-30-2017, 12:21 AM | #4 | ||
Grand Sorcerer
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
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> 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. |
||
05-30-2017, 03:27 AM | #5 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
  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   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 |
05-30-2017, 07:29 AM | #6 |
Junior Member
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...) |
05-30-2017, 07:31 AM | #7 |
Resident Curmudgeon
Posts: 74,188
Karma: 129333564
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.
|
05-30-2017, 07:33 AM | #8 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2017
Device: Kindle Keyboard 3G (B006)
|
epubcheck
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.
|
Tags |
epub, kobo, missing text |
|
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 |