I got a problem, I got some epub books that the chapters is wrong, often they are liked from first page to "main-1.xhtml" (Chapter 1), "main-2.xhtml" (Chapter 2), "main-3.xhtml" (Chapter 3) etc. But not all, some does have for exemple main-1 and main-2 only (main-1 and 2 is merged and chapter 3 is on main-2)
Sorry if I am confusing. But is there a way to add a new page so I can copy and paste the text to a separate xhtml-file in the epub editor in calibre, or split the file where the new chapter starts? I like that editor.
Evangelist Karma: 2289864 Join Date: May 2013 Location: Ontario, Canada Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo FormaThe easiest way I find for sorting out chapters is to arrange the files so that each chapter heading is at the top of a file. Then Use the Edit TOC tool, erase any existing entries, and use the Generate ToC from Files option. That will give you an NCX TOC with each file as an entry, and the beginning text of each file as the title text (Chapter 1, Chapter 2, etc., if that is what your first lines are in the files.)
To split files with the editor, use the blue split-file tool at the bottom of the preview pane.
To merge files, select two or more files in the file browser panel, and right-click. One of your choices will be to merge the files.
Sometimes, the start of a chapter will not split properly because it is buried in a paragraph or a useless -- you just have to edit the code to fix that before you can do the split.
You can often find chapter heading that are not with obvious with regex searches. I've seen a lot of books with just 1, 2, 3, etc. that have no style different from the main text, and they are hard to spot. A regex search something like
\d+) will often make finding them easier.