Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 03-02-2026, 06:07 PM   #1
greenskye
Member
greenskye began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2010
Device: none
Fix out of order book - I must be missing something obvious

Downloaded a fanfic via fanficfare and due to various reasons the chapters are all out of order.

No problem, I'll just edit the ToC so the chapters are in the right order. Except editing the ToC only seems to apply for navigating the book by the ToC. If, for example, you reach the end of the chapter and hit 'next page' it will take you to the next file from the original order, not the next chapter as defined by the TOC. This is manageable I suppose, but I'd still like to actually fix the order.

All of my files are unhelpfully named 'file0001','file0019', etc. To properly reorder the files, I'd have to manually compare the TOC, see what file it's linked to and then reorder that file to be where its supposed to be.

It seems like this should've been an easy problem to solve, one that doesn't involve tediously figuring out that file0052 is actually chapter 2.

Can I somehow reorder the file order to match the ToC? Or can I at least apply the ToC chapter names to the files so they're easier to reorder myself?
greenskye is offline   Reply With Quote
Old 03-02-2026, 06:55 PM   #2
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,781
Karma: 9501034
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
The file browser in the left window. Are the files in the correct order there? If not, dragging each file to the correct position will fix the order in the opf.
Karellen is online now   Reply With Quote
Old 03-02-2026, 07:06 PM   #3
lomkiri
Groupie
lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.lomkiri ought to be getting tired of karma fortunes by now.
 
lomkiri's Avatar
 
Posts: 187
Karma: 1537710
Join Date: Jul 2021
Device: N/A
Have you checked the book in the editor ? (menu tools / check book, or F7)
Sometime the elements are not linear, i.e. files are not in the order of the reading, but the opf gives the right order. Some devices may not understand this. So "check book" detects this and offers to make all files linear,. If it is this your problem, one click will solve it.
lomkiri is offline   Reply With Quote
Old 03-02-2026, 08:39 PM   #4
greenskye
Member
greenskye began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by Karellen View Post
The file browser in the left window. Are the files in the correct order there? If not, dragging each file to the correct position will fix the order in the opf.
No they are not in the correct order, that was what I was saying. I'm aware I can reorder them, but they are not named sensibly, so doing so is tedious. I will have to look up what each file is supposed to be (file0052 might be chapter 3 and file0053 might be chapter 22 for example). If I could mass rename files to their chapter names, then this would be easier to reorder. Obviously I can spend the ~30-60 minutes reordering this book, but I want to know how to solve it in a less tedious way.

It's kind of crazy to me that you can't a) rename files based on the ToC or b) reorder files to match ToC order.

Quote:
Originally Posted by lomkiri View Post
Have you checked the book in the editor ? (menu tools / check book, or F7)
Sometime the elements are not linear, i.e. files are not in the order of the reading, but the opf gives the right order. Some devices may not understand this. So "check book" detects this and offers to make all files linear,. If it is this your problem, one click will solve it.
Check book didn't seem to detect the files being out of order. I'm only getting a couple of comments about missing generic font families and that's it.
greenskye is offline   Reply With Quote
Old 03-02-2026, 09:04 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,457
Karma: 31000056
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Have a look at the Sigil plugins, there's one called TocSaver that hints a doing something like what you want.

BR
BetterRed is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I fix 'file missing'? ownedbycats Devices 1 03-06-2025 09:51 PM
How to fix missing spaces between dictionary words DVdm Editor 9 03-11-2023 06:26 PM
Reg Ex Syntax to Exclude Genres - I'm Missing Something Obvious GeekyGal Library Management 3 08-19-2012 11:35 PM
Regex - Library Order Fix? penguinaka Library Management 3 07-29-2011 04:59 AM
(another) FIX: New York Times Missing Articles bcollier Recipes 11 02-11-2011 04:16 PM


All times are GMT -4. The time now is 01:57 AM.


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