Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 10-02-2020, 12:52 PM   #1
vikarti
Zealot
vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.
 
Posts: 129
Karma: 1004974
Join Date: May 2013
Location: N/A
Device: Primary: Bookfusion + a lot of Android devices
wrong order in epub

I generated epub file from big collection of htmls. (via calibre)
Toc.ncx was manually generated in Calibre's editor and correct order.
Files themselves are not in correct order.
spine in metadata.ofx is also not in correct order.

Calibre's epub reader doesn't read book in correct order but shows toc.

Moon+ ignores toc.ncx


how to re-order book's files and spine according to order in toc.ncx? (it's difficult to move around approx 100 files with names like index-<3 random digits>.html )
vikarti is offline   Reply With Quote
Old 10-02-2020, 01:36 PM   #2
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 808
Karma: 5235364
Join Date: Nov 2019
Device: none
I only use sigil but I'm guessing it's the same in Calibre's editor; you manually click and drag the html files up or down in the file browser on the left. Maybe/hopefully there's something better because that will be tedious.
hobnail is offline   Reply With Quote
Old 10-02-2020, 06:58 PM   #3
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: 59,929
Karma: 56644595
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by hobnail View Post
I only use sigil but I'm guessing it's the same in Calibre's editor; you manually click and drag the html files up or down in the file browser on the left. Maybe/hopefully there's something better because that will be tedious.
Yes it is the same way (n Calibre) of dragging the HTML file up/down until they are in the correct order.
JSWolf is offline   Reply With Quote
Old 10-03-2020, 12:48 AM   #4
vikarti
Zealot
vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.
 
Posts: 129
Karma: 1004974
Join Date: May 2013
Location: N/A
Device: Primary: Bookfusion + a lot of Android devices
Why toc.ncx is ever needed if it couldn't be used by almost anything?
Ok. is there way to at least rename files according to names in toc.ncx?
vikarti is offline   Reply With Quote
Old 10-03-2020, 01:26 AM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 8,585
Karma: 39207265
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by vikarti View Post
Why toc.ncx is ever needed if it couldn't be used by almost anything?
Ok. is there way to at least rename files according to names in toc.ncx?
toc.ncx as you may have guessed from the name is a table of contents navigation document. On my Kobo ereader, when I look at an epub2, that's the file that supplies the table of contents. For epub3, it is replaced by a XHTML navigation document rather often called nav.xhtml though many epub3 also have a toc.ncx for use by older renderers.

IF the HTML ToC file associated with the html file collection you imported has the files in the correct order, the files will be imported in the correct order. If you just imported a bunch of files, well, GIGO.

See this message thread Importing HTML files with the wrong chapter order and this link to the calibre FAQs: How do I convert a collection of HTML files in a specific order? for a bit more information. Note the breadth and depth first option as this has bit me on the butt on a couple of occasions.

Last edited by DNSB; 10-03-2020 at 01:27 AM. Reason: Truly the Google-fu is running weak these days.
DNSB is online now   Reply With Quote
Old 10-03-2020, 06:53 AM   #6
vikarti
Zealot
vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.vikarti ought to be getting tired of karma fortunes by now.
 
Posts: 129
Karma: 1004974
Join Date: May 2013
Location: N/A
Device: Primary: Bookfusion + a lot of Android devices
Quote:
Originally Posted by DNSB View Post

IF the HTML ToC file associated with the html file collection you imported has the files in the correct order, the files will be imported in the correct order. If you just imported a bunch of files, well, GIGO.

See this message thread Importing HTML files with the wrong chapter order and this link to the calibre FAQs: How do I convert a collection of HTML files in a specific order? for a bit more information. Note the breadth and depth first option as this has bit me on the butt on a couple of occasions.
Thanks!
Given that it's rather easy to generate html toc from arleady existing toc.xml - this was good enough solution for my puproses. I unpacked book and re-imported with breath-first option enabled (calibre restart was necessary for it to be applied for some reason).
vikarti is offline   Reply With Quote
Old 10-03-2020, 07:12 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: 59,929
Karma: 56644595
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by vikarti View Post
Why toc.ncx is ever needed if it couldn't be used by almost anything?
Ok. is there way to at least rename files according to names in toc.ncx?
The NCX is the ToC. It's used in most cases. If it's not used, it's the fault of the reading software. For example, on my H2O, the ToC controls display the NX ToC. Then having a link in that to go to the HTML ToC is silly as you then change page to get there when you are already at the ToC.

Calibre and Sigil have ToC editors.
JSWolf is offline   Reply With Quote
Old 10-03-2020, 04:14 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 8,585
Karma: 39207265
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
Quote:
Originally Posted by vikarti View Post
Thanks!
Given that it's rather easy to generate html toc from arleady existing toc.xml - this was good enough solution for my puproses. I unpacked book and re-imported with breath-first option enabled (calibre restart was necessary for it to be applied for some reason).
Good to hear that my advice was helpful to you.
DNSB is online now   Reply With Quote
Reply

Tags
epub, epub 2, spine, toc problems

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing HTML files with the wrong chapter order amckenzie4 Conversion 10 09-02-2020 10:46 AM
Touch Wrong order of authors and books in series cosmicbite Kobo Reader 1 06-07-2015 08:37 PM
Wrong author sorting order Gnolive PocketBook 3 11-15-2013 04:32 PM
Wrong sort order when slash (/) in ebook name rfog Calibre 4 07-31-2012 09:55 AM
Books added to Reader in wrong order BeccaAnn Calibre 2 12-23-2009 09:47 PM


All times are GMT -4. The time now is 12:00 AM.


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