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 04-28-2021, 07:45 AM   #16
SirBeardAlot
Member
SirBeardAlot began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
Quote:
Originally Posted by davidfor View Post
@SirBeardAlot: I tried the three scrambled versions that you sent. Only one of them caused any problems on my test device. This was the whose title started with "Finna dolda ting".

Firstly, one thing that was mentioned, but I didn't explicitly ask, is what format are you using? I didn't have any problems with the books as epubs. It was when I changed to using the KoboTouchExtended driver that the problem arose. This transformed the books to kepub. And as I suspected early, triggered a problem with the ToC. But, not one I had seen before.

The three books are ePub 3. The have the ToC as both an NCX and NAV document. For ePub3, the device is using the NAV document to get the ToC.

When I looked at the NAV document, called "ncc.xhtml" in each book, there where three sections:
  • The basic ToC for chapters. This matched the NCX.
  • A page list.
  • The landmarks.

They were in that order and the landmarks were the largest section. As a test, I deleted the landmarks section, and the book was able to be processed by the device. I tried another version with the landmarks, but, without the page list and it didn't work.

Looking at the NAV document, the calibre editor showed it as 153.4KB. When I removed the landmarks, it dropped to 20.4KB. My assumption is that it was the sheer size of the text in the landmarks section that is causing the problem. There were only about 70 entries, so it had to be that. Or there was an error in them.

Beyond that, I can't say much. I know very little about how the NAV document works and even less about the landmarks. I have seen them before but not really looked at them. One thing that does look strange is that each landmark has "epub:type" of either "annotation" or "sidebar". My vague understanding is that they should point to sections in the book, such as the frontmatter, the backmatter and the first page of "real" content. As such, I would expect less entries and for them to be smaller. I don't know if this makes them invalid or not.

Thank you for looking into the matter! Regarding the format, I am using the KoboTouchExtended driver, and therefor converting the epubs into kepub.

I am looking in the epub you mentioned, and i can see that there's something odd going on in the ncc.xhtml. The landmarks looks way too long, and also the coding of the text looks incorrect. As if the file has been converted from UTF-8 to something else, which has turned letters like Ä into ä.

I am not sure what the landmarks are used for but I've had invalid landmarks in other books converted from daisy 2.02 into epub3 (found when checking the file in Calibre), and I have therefor removed them completely without noticing any problems whatsoever with the books when reading them.


I removed the landmarks from the book and it seems to be working just fine adding the book now. Will try with the other two as well. The only odd thing I am noticing is that during the processing, where it usually hung at 6%, it just stops at 6%. The processing goes very very fast, much faster than I am used to. I would expect it to go up to 100%, even if it would be fast.

But then again, this might be normal, since everything seems to be working (adding more books at the same time made the process longer, but it ended at 65%.).

Your help is very much appreciated! I couldn't have solved this on my own.

Last edited by SirBeardAlot; 04-28-2021 at 08:45 AM.
SirBeardAlot is offline   Reply With Quote
Old 04-28-2021, 09:46 AM   #17
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,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by SirBeardAlot View Post
Thank you for looking into the matter! Regarding the format, I am using the KoboTouchExtended driver, and therefor converting the epubs into kepub.

I am looking in the epub you mentioned, and i can see that there's something odd going on in the ncc.xhtml. The landmarks looks way too long, and also the coding of the text looks incorrect. As if the file has been converted from UTF-8 to something else, which has turned letters like Ä into ä.
The landmarks looked weird to me. That probably wasn't helped by the use of the ScrambleEbook plugin, but, as the language was set to Swedish, the non-scrambled version probably wouldn't have been any better for me.
Quote:
I am not sure what the landmarks are used for but I've had invalid landmarks in other books converted from daisy 2.02 into epub3 (found when checking the file in Calibre), and I have therefor removed them completely without noticing any problems whatsoever with the books when reading them.
I think the creator of the book was using the landmarks for something they weren't really intended for. Or just did it what they were for. From some quick reading, they are supposed to show the major sections of the book for navigation and accessibility.
Quote:
I removed the landmarks from the book and it seems to be working just fine adding the book now. Will try with the other two as well. The only odd thing I am noticing is that during the processing, where it usually hung at 6%, it just stops at 6%. The processing goes very very fast, much faster than I am used to. I would expect it to go up to 100%, even if it would be fast.

But then again, this might be normal, since everything seems to be working (adding more books at the same time made the process longer, but it ended at 65%.).
The processing is never completely linear. It always starts at 6 or 8 percent. And always disappears before 100%. Possibly at 86%, but, I haven't watched it closely recently. But exactly what happens depends on how many books need to be processed and how big they are. And the bigger the ToC, the longer it takes to process a book.
davidfor is offline   Reply With Quote
Advert
Old 04-28-2021, 02:10 PM   #18
SirBeardAlot
Member
SirBeardAlot began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
Quote:
Originally Posted by davidfor View Post
The landmarks looked weird to me. That probably wasn't helped by the use of the ScrambleEbook plugin, but, as the language was set to Swedish, the non-scrambled version probably wouldn't have been any better for me.

I think the creator of the book was using the landmarks for something they weren't really intended for. Or just did it what they were for. From some quick reading, they are supposed to show the major sections of the book for navigation and accessibility.
Your help has been invaluable davidfor.

Regarding the landmarks. They weren't at all that big in size in the other two books, but somehow it seems that the conversion to kepub in combination with those landmarks (or something) messed things up. At least with one of them ("Generation..."). I know for sure caused this problem. Not sure about the third one.

Quote:
Originally Posted by davidfor View Post

The processing is never completely linear. It always starts at 6 or 8 percent. And always disappears before 100%. Possibly at 86%, but, I haven't watched it closely recently. But exactly what happens depends on how many books need to be processed and how big they are. And the bigger the ToC, the longer it takes to process a book.
Ahh I see. So that's not really an issue then.
SirBeardAlot is offline   Reply With Quote
Old 04-28-2021, 02:13 PM   #19
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Note that if you *always* see the progress bar going from 6 to gone *without* having added new content, that means you have (at least) one book left on the device that Nickel is repeatedly failing to import.
NiLuJe is offline   Reply With Quote
Old 04-29-2021, 02:40 AM   #20
SirBeardAlot
Member
SirBeardAlot began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2019
Device: Kobo Libra H20
Quote:
Originally Posted by NiLuJe View Post
Note that if you *always* see the progress bar going from 6 to gone *without* having added new content, that means you have (at least) one book left on the device that Nickel is repeatedly failing to import.
That's a very good point. Thankfully I am not seeing it without adding any content.

Quote:
Originally Posted by davidfor View Post
I think the creator of the book was using the landmarks for something they weren't really intended for. Or just did it what they were for. From some quick reading, they are supposed to show the major sections of the book for navigation and accessibility.
Yes I think you are correct. I just read the following:

Quote:
Does adding aria-label or title to an untitled section create a landmark?

Yes, so care needs to be taken not to overload the landmarks list in this way. When a section element has a label, it is handled as though the region role has been applied to it, which makes the section a landmark.
Overloaded landmarks may have been the issue with my books.

Last edited by SirBeardAlot; 04-29-2021 at 02:49 AM.
SirBeardAlot is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Libra Libra H2O disconnecting from PC jenieliser Kobo Reader 6 07-28-2020 04:20 PM
CC & Fire 8.9 HDX disconnecting itself from Calibre Skydog Calibre Companion 4 12-28-2014 01:51 AM
Troubleshooting Kindle 3 freezes/reboots infinitely Geoffrey Amazon Kindle 18 10-15-2014 02:03 PM
Kindle 3 freezes/reboots infinitely Geoffrey Kindle Developer's Corner 5 05-05-2013 09:43 PM
Kobo Touch not disconnecting properly from Calibre OR Kobo Desktop - Windows 7 JBlyth Devices 1 08-03-2011 06:50 AM


All times are GMT -4. The time now is 05:25 PM.


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