Quote:
Originally Posted by Themus
Now one 'dumb' question. Can I create a TOC inside my ePub with Calibre? I know I can with MobiCreator, but I am hoping I can skip using that application and move directly to Calibre. Otherwise, I have to use MobiCreator for the internal, inside the ePub TOC, and then import that into Calibre to get my final product.
|
It depends how much effort you want to put in and how comfortable you are with Calibre's Tweak-epub feature...
You could try the following approach:
If you have an EPUB with a correct 'external' TOC but no internal TOC you can convert EPUB to MOBI with
Convert - MOBI Output - 'Do not add TOC to book' unchecked and probably
Convert - StructureDetection - Detect chapter at set to
/ so that the existing external TOC doesn't get messed up. This will put an internal TOC at the end of the MOBI.
If you then convert the MOBI back to EPUB the internal TOC should remain. It will still be at the end of the EPUB.
If you want to move the internal TOC to the front of the new EPUB it should be as simple as using the Tweak-epub option to manually edit the EPUB
content.opf file's <spine> list, in a text editor, to move the last item (the TOC) up to a more suitable position near the top.
Caveat: MOBI doesn't support some of the styling that EPUB does so an EPUB-MOBI-EPUB conversion may lose some styles in the process (e.g. dropcaps).
I should add that I don't don't do this myself as I can't be bothered with internal TOCs
Edit: Should have added that if you have a .html file with all the correct <h1>, <h2> ... etc heading tags then a ZIP to MOBI to EPUB would also work and, I guess, so would an RTF to MOBI to EPUB.