|
|
Thread Tools | Search this Thread |
07-27-2013, 08:39 AM | #1 |
Junior Member
Posts: 9
Karma: 272
Join Date: Jun 2013
Location: Italy
Device: Kobo Glo
|
Kobo Glo gets stuck when using the TOC to jump to a certain chapter.
Product: Kobo Glo (untested on other devices)
Firmware: 2.8.1 Plugins: Kobo Touch Extended Driver 1.5.0 (not really needed) File types: KePub Sideloaded or from Kobobooks: both On external SD: internal memory only. It has not been tested on external SD. Steps to reproduce:
Workaround: setting any fonts exept "document default" one. Note:in order to recreate the issue with kepub coming directly from kobobooks, here is a an example:http://www.kobobooks.it/ebook/Favole...EnZWdMA5Ww&r=1 You cannot download it for free though, and it is protected with adobe drm. In general, almost all ebooks from Garzanti publisher (italian books) are suitable to reproduce said issue. Update: When the screen gets blank, endlessly trying to load the page, here is a way to recover. Just tap on the title so that a menu appears at the top of the screen. Then tap in the middle of the page. All characters will get back again. Of course, this does not solve the fact that the chapter loaded might not be the one you had selected. Last edited by stefano.p; 08-02-2013 at 04:47 AM. Reason: A new workaround |
07-27-2013, 10:54 AM | #2 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
I had no problem jumping to chapter 3, but my touch (FW 2.6.1) hung up after setting some highlights and paging.
If you look at the xhtml files, you will notice that in each file the tag <span class="koboSpan" id="kobo.6.2"> is not closed before the next kobo tag, <span class="koboSpan" id="kobo.6.3">, opens. Instead, it is closed at the end of the chapter. This causes problems with highlighting, and probably also with the TOC navigation. You can try this: put </span> in front of <span class="koboSpan" id="kobo.6.3"> in each file, and delete the last but one </span> in the paragraph (= in the chapter). Try setting a highlight that contains the heading and some lines of the following text. With the original version, the whole chapter will be highlighted. With the modified version, it works as it should. If the kobo spans of this book are set by the most recent plugin for calibre, you might consider writing a bug report. Note: I only looked at testTOC_0.kepub.epub. Last edited by tshering; 07-27-2013 at 10:58 AM. |
Advert | |
|
07-27-2013, 11:22 AM | #3 | ||
Junior Member
Posts: 9
Karma: 272
Join Date: Jun 2013
Location: Italy
Device: Kobo Glo
|
Quote:
Quote:
If you try the second file you'll notice that you can't jump to Section 2.2 from the TOC. No crash in 2.6.1, but you'll jump to the wrong chapter. |
||
07-27-2013, 12:46 PM | #4 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
|
07-27-2013, 01:21 PM | #5 | |
Generally Awesome Person
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
I ran every test file through a XML validator and I can't find where this occurs. What I saw is that the worse case is a <span> opened at the start of a paragraph may not close until the end of that same paragraph. Can you point me at a file in either of these test files where a span isn't closed until the very end? That would be a serious problem and I very much doubt that books would display properly. With the spans being properly balanced as they are, this would actually not be a good thing Not saying the way it is now doesn't break highlighting (I've never tried nor has it been reported to me). |
|
Advert | |
|
07-27-2013, 03:00 PM | #6 |
Grand Sorcerer
Posts: 12,752
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I thunk the issue is more with the Kobo.js than the actual firmware. Remove Kobo.js and I have no issues at all with the first ePub.
|
07-27-2013, 03:07 PM | #7 | |
Connoisseur
Posts: 78
Karma: 165868
Join Date: Jan 2012
Device: Nook Touch
|
Quote:
I didn't had the time to examine this problem but I think that it is very likely that it is caused by the 'extra' span. I know that it is perfectly legal in HTML, but probably the code that Kobo uses to trace the pieces of text in a kepub doesn't expect it to be like this and so misbehaves. |
|
07-27-2013, 03:11 PM | #8 |
Junior Member
Posts: 9
Karma: 272
Join Date: Jun 2013
Location: Italy
Device: Kobo Glo
|
I have checked both test files and each paragraph has the first span that is closed at the end of the same paragraph and not at the very end. So this should be ok.
|
07-27-2013, 03:28 PM | #9 | |
Junior Member
Posts: 9
Karma: 272
Join Date: Jun 2013
Location: Italy
Device: Kobo Glo
|
Quote:
I have downloaded some other "original" kepub and they all share the same Kobo.js Anyway, let's keep in mind that this issue will disappear once we choose to override the embedded font with any one available in the menu. Thus I suspect that there must be something missing in kobo's algorithms. |
|
07-27-2013, 03:43 PM | #10 | |
Generally Awesome Person
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
Quote:
|
|
07-27-2013, 03:50 PM | #11 |
Grand Sorcerer
Posts: 12,752
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
@jgoguen: One suggestion for you... Could you maybe embed in a converted kEpub the version of your driver that did the conversion? Might help when people send a file that is having "issues" for you to be able to validate that the conversion was done with the driver you thought was being used?
|
07-27-2013, 04:00 PM | #12 |
Generally Awesome Person
Posts: 1,082
Karma: 2178847
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
|
I see no reason why not. It certainly wouldn't hurt anything.
|
07-27-2013, 04:10 PM | #13 | |||
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Quote:
Quote:
Last edited by tshering; 07-27-2013 at 04:16 PM. |
|||
07-27-2013, 04:17 PM | #14 |
Grand Sorcerer
Posts: 12,752
Karma: 75000002
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
One more experiment I tried was to change all the span id's to be unique; this helped in the first test document, I could now jump to chapter 3 successfully, but did not help in the second test document.
(I took the brute force approach of changing kobo. to kobo.# where # was the digit on the html file's name). |
07-27-2013, 04:19 PM | #15 |
Junior Member
Posts: 9
Karma: 272
Join Date: Jun 2013
Location: Italy
Device: Kobo Glo
|
If this can help, please find attached the epub version of both tests books. The kepub versions was obtained using plugin v1.5.0, as I have already specified.
So anyone can verify it in case of any doubt Nevertheless, let's not forget that the issue reported in this thread can also be reproduced with "original kepub" coming from kobobooks. |
Tags |
embedded fonts, kepub, kobo glo freezes |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Kobo Glo is stuck after firmware update | fedcod | Kobo Reader | 28 | 06-18-2013 01:43 AM |
TOC chapter jump blank page - kindle | wyatt650 | Sigil | 3 | 04-12-2013 04:27 PM |
PW: Gesture for chapter jump gone? | mmatting | Amazon Kindle | 18 | 10-18-2012 08:21 PM |
Chapter jump tag? | wornways | Kindle Formats | 2 | 06-02-2011 07:57 AM |
Chapter jump tag? | wornways | Amazon Kindle | 2 | 06-01-2011 05:41 PM |