Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2024, 09:54 PM   #1
DizzyIzzy
Junior Member
DizzyIzzy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2024
Device: Ibooks/Calibre
How to fix page numbers and book progress after re-arranging book chapters

Hi, everyone! I’m using Calibre for the first time since I found out I can merge 2 epubs in 1 and re-arrange the chapters using the app.

I’m planning to do a tandem read on 2 books and some chapters overlap between them thus the need to rearrange the chapters.

I succeeded in merging the two ebooks and re-arranging the chapters, however, I noticed that the page numbers are wrong (they retain the original page numbers when they merged, not when the TOC was arranged). The book progress also follows the original flow that’s why it came out wrong.

Can I fix it? Here’s the picture for your reference.

Sorry for the noob question. I just want to enhance my reading experience so I don’t need to switch the books every now and then. Thanks in advance for your help! 🙏🏼
Attached Thumbnails
Click image for larger version

Name:	IMG_8604.jpg
Views:	76
Size:	143.6 KB
ID:	206129  
DizzyIzzy is offline   Reply With Quote
Old 01-30-2024, 10: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,104
Karma: 4911876
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
What app is that screenshot from?
That table of contents looks like neither the nav.xhtml or toc.ncx and is probably just a compiled xhtml page, similar to the chapter pages.
And it seems to be referencing "real" page numbers from a pbook? Is that correct?
Karellen is offline   Reply With Quote
Old 01-30-2024, 11:58 PM   #3
DizzyIzzy
Junior Member
DizzyIzzy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2024
Device: Ibooks/Calibre
Quote:
Originally Posted by Karellen View Post
What app is that screenshot from?
That table of contents looks like neither the nav.xhtml or toc.ncx and is probably just a compiled xhtml page, similar to the chapter pages.
And it seems to be referencing "real" page numbers from a pbook? Is that correct?
This is from iBooks. I converted the epub from Calibre and I’m reading the book using iBooks. Yes, these are the real page numbers when I merged the 2 books. That’s why the book progress comes out wrong too (for ex: since Book 2, Chapter 2 is page 1000, it shows 50% progress but the reality is I’m just 25% done since I moved the chapter earlier.) I hope you understood my explanation.

I want the page numbers to follow the sequence of the TOC. Is this possible? I didn’t edit the htmls yet, just the order of the TOC to avoid making a mistake.
DizzyIzzy is offline   Reply With Quote
Old 01-31-2024, 09:35 AM   #4
fogice
Groupie
fogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of light
 
Posts: 156
Karma: 12092
Join Date: May 2014
Device: Kobo Libra 2
Quote:
Originally Posted by DizzyIzzy View Post
I want the page numbers to follow the sequence of the TOC. Is this possible? I didn’t edit the htmls yet, just the order of the TOC to avoid making a mistake.
If I read this correctly, you used 'Edit TOC' and moved the entries up and down? That doesn't actually change the reading order of the chapters, unless you return to the TOC between every chapter. If you moved CH03 between CH01 and CH02, and you read through the end of CH01, CH02 will open next.

You need to go to 'Edit Book' and drag the chapters up and down in the File Browser in the lower-left part of the window. After you get them in order, you can 'Edit TOC', delete all the entries, and then auto-generate new entries from Files.

Of course, this isn't as easy as it sounds, because the chapters will probably have nonsensical names. So, you may have to open every chapter, then rename the file to match the chapter, then sort them. This will probably be a slog.
fogice is offline   Reply With Quote
Old 01-31-2024, 11:36 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,816
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The TOC does not care what the file names are, just that the entry points to one that exists.

Sensible names are for Humans (most who normally do not see those)
The order of files (echoed in the NCX) governs the reading order. I frequently move files I consider 'fluff', but want to keep, to the end. I never touche the TOC (FWIW If you delete a file, in the EDITOR, it removes the TOC entry, no need to fix that )
theducks is online now   Reply With Quote
Old 01-31-2024, 12:51 PM   #6
DizzyIzzy
Junior Member
DizzyIzzy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2024
Device: Ibooks/Calibre
It works!

Quote:
Originally Posted by fogice View Post
If I read this correctly, you used 'Edit TOC' and moved the entries up and down? That doesn't actually change the reading order of the chapters, unless you return to the TOC between every chapter. If you moved CH03 between CH01 and CH02, and you read through the end of CH01, CH02 will open next.

You need to go to 'Edit Book' and drag the chapters up and down in the File Browser in the lower-left part of the window. After you get them in order, you can 'Edit TOC', delete all the entries, and then auto-generate new entries from Files.

Of course, this isn't as easy as it sounds, because the chapters will probably have nonsensical names. So, you may have to open every chapter, then rename the file to match the chapter, then sort them. This will probably be a slog.

Thank you, fogice and theducks! Noted on the TOC. I learned it the hard way that the reading order was not changed. But used all your tips and they worked! Good thing the chapters in the Browser were recognizable so I rearranged everything easily. Now it matches the new TOC, the page numbers are in order, and the book progress is now accurate.

Thank you for the help, everyone! Cheers!
DizzyIzzy is offline   Reply With Quote
Old 01-31-2024, 01:26 PM   #7
fogice
Groupie
fogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of lightfogice is a glorious beacon of light
 
Posts: 156
Karma: 12092
Join Date: May 2014
Device: Kobo Libra 2
Excellent! And a cool project as well.
fogice is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Location in book and page numbers PapaQuebec Calibre 2 11-29-2020 03:22 PM
Aura HD Page numbers do not work for entire book bearymore Kobo Reader 6 07-15-2015 08:25 PM
Page Numbers or Book Progress? Japes PocketBook 6 06-18-2011 05:03 AM
Book Page Numbers kevinofengland Amazon Kindle 61 05-07-2011 06:13 AM
Guttenberg Project Book with Page Numbers mikeayers Amazon Kindle 5 03-06-2011 04:33 AM


All times are GMT -4. The time now is 11:02 AM.


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