Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2023, 11:19 AM   #1
howardgo
Member
howardgo began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Apr 2020
Device: Kobo Aura One
Non-Linear TOC

It appears that KOReader does not handle a non-linear TOC very well. Both Analog and Asimov's magazines have recently changed (finally) their digital subscriptions over to epub and pdf files available outside of a particular vendor's application. The epub files they send have the content in the same order as the print version and the TOC matches the print as well. However, the TOC is grouped by section or length of story and is not sequential. This means that the chapter title and length are all wrong in KOReader, as well as the chapter ticks in the progress bar.

Click image for larger version

Name:	PrintTOC.jpg
Views:	76
Size:	1.29 MB
ID:	202777 Click image for larger version

Name:	KOReaderTOC.jpg
Views:	81
Size:	874.9 KB
ID:	202778

As you can see in the photo, in KOReader it shows that I am on a flash fiction story entitled "The Queen of Copies Meets Her Match" when I am actually on the top level section page entitled Poetry.

Is there any way to accommodate this unusual TOC? Perhaps leverage the file order in the spine of the .opf file?

I can always use Calibre to create a replacement TOC that is sequential, but I'm hoping there is a way for KOReader to handle this. The Calibre reader seems to handle it alright. In the screenshot below I am on the same page as the KOReader photo. Calibre is showing me in the correct section of the TOC. The chapter lengths and titles also appear correctly in the Calibre reader.

Click image for larger version

Name:	CalibreTOC.png
Views:	69
Size:	369.5 KB
ID:	202779
howardgo is offline   Reply With Quote
Old 07-23-2023, 02:22 PM   #2
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,479
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Hard to tell you much without an actual sample ;o).

(Also, this'll probably get better coverage on GitHub)
NiLuJe is offline   Reply With Quote
Advert
Old 07-23-2023, 04:04 PM   #3
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,215
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Though in theory a non-linear TOC is possible, it's a stupid decision by the formatter/designer.
Compare a paper book. The Contents page at the start is always linear. If you want the content grouped in some non-linear way you put specialized indexes.

So the system TOC should really be strictly linear, even if non-linear works on something. The "grouped by" "contents" is a special index and thus should be inline pages at the start or end of the book and get an entry in the system TOC.

I think many physical eink only support linear, though a Kindle isn't epub, you usually upload epub file to KDP.

All kinds of mad things work in the Calibre viewer that shouldn't be in widely compatible ebooks, because it's a custom use of a web browser. I only use it to check links and that the (system) TOC is matching the original Wordprocessor inline automatically built contents page, which unsurprisingly is always linear!

Last edited by Quoth; 07-23-2023 at 04:08 PM.
Quoth is offline   Reply With Quote
Old 07-24-2023, 03:20 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
What is relevant is what the format specification says, regardless of what is supported by other readers or what is customary in paper books. I'm not fully updated with respect to ePub 3, but from what I understand of the NCX specification (the only TOC format supported in ePub 2), it specifically allows for out-of-order TOC items, provided their "playOrder" attributes are consecutive and ordered in reading progression.
Jellby is offline   Reply With Quote
Old 07-24-2023, 07:59 AM   #5
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,215
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Yes, but just because something is in a specification doesn't mean it's a good idea to use. There are loads of things in epub3 that shouldn't be in a "real" ebook.

Out-of-order lists by some other criterion isn't a table of contents, even if a spec allows it. It should be a special index page. The TOC should then include that and be sequential, Anything else, even in a spec, makes not sense.

And also any such illogical TOC can't be automatically built. It would have to be manually edited everytime the source of the ebook is changed in structure.

Last edited by Quoth; 07-24-2023 at 08:02 AM.
Quoth is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does *anything* support linear=no? Skeezix ePub 38 10-27-2019 05:55 PM
Is there a plugin to make non-linear items linear? deback Conversion 4 11-28-2017 12:30 AM
Create TOC from non linear structure Cilex Conversion 3 10-01-2016 08:16 PM
File is non-linear -- what does that mean? Paula-59 Conversion 4 02-01-2016 06:39 PM
Linear narrative (or not) mr ploppy Writers' Corner 25 02-03-2012 03:55 PM


All times are GMT -4. The time now is 12:33 PM.


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