Quote:
Originally Posted by Corinne
Thanks Ruben. I've read that not everyone uses epub but prefers mobi.
|
Hi Corinne;
Depends on

The choice is based mainly due to the e-reader that one has. For example, some people with a Kobo Reader, will prefer an .epub, and some others with a Kindle, will prefer a .mobi.
Quote:
Then I've read that it's a good idea to provide both.
|
That's true and you should do that (because you don't know what e-reader the reader will have).
Quote:
Kind of just going with it all at the moment.
|
If you have a good .epub/.mobi, then you'll have a good .mobi/.epub. So, if you learn how to make a good ebook, to convert one in other is a piece of cake.
Quote:
I'm still proofing and doing a bit more polishing. I plan on studying the tutorials once I'm done to devote time to a mobi TOC. I appreciate the direction in what to 'click' on. But the options are not quite clear to me yet.
|
Please, don't bother for what I'm going to tell you, but you don't need to reinvent the wheel

If you have issues in order to create a TOC for a .mobi, then do the following:
1. In the library of this forum, there are hundreds, millars of ebooks. Just download one of them (the title of your choice) and then, open it in Calibre (since you like to work with that program). For this time, download the .epub from this link:
https://www.mobileread.com/forums/sh...d.php?t=188092
2. Once the .epub is loaded in Calibre, do right click in it, and select the command "Edit book".
3. In the Edit Window you can see in the pane to left, the different .xhtml files that compone the ebook. At the very end of that pane, you can see a file named toc.ncx. This file is the TOC of the .epub, BUT THAT TOC, DOESN'T WORK in .mobi. So you need to build a TOC for .mobi from that ".toc.ncx". How to do that?
4. In the pane of the left, do click in the file Cover.xhtml.
5. Now, in the menu bar, select the commands Tools/Table of Contents/Insert inline Table of Contents.
6. Once you did that, you'll see above Cover.xhtml a new file named toc.xhtml. Do click and drag that file so it appears below the file "Title.xhtml" (or where you want).
7. Now do click again in the command "Tools" and select the subcomand "Set semantics". In the dialog that appears, in the field "Choose a file" select "toc.xhtml" and in the field "Type of semantics" choose "Table of Contents". You should have something like the following picture:
Press "Ok" to close the dialog.
8. Save the changes and close the Edit windows.
9. Now do click in the buttom "Convert books" and as output format choose "mobi".
10. In the same dialog, do click where you read "MOBI Output" and there, where you read "MOBI file type" choose "both".
11. Press "OK". Now you have a mobi file (from an epub file) with a working TOC. If you like, you can open the mobi with Kindle Previewer to see how it looks.
With Calibre you can generate the TOC for mobi in the process of convert the epub to mobi (as I explained in a previous post) or in the way I indicated you now.
What if the epub doesn't have the toc.ncx (since from this file we have built the mobi toc)? Well, you'll have to build one

How to do that?
1. Open again the ebook in the Calibre Edit window.
2. In the pane to the left, select the file "toc.xhtml" (the file created in the process I described above), do right click and select "Delete the selected file" (all our work is gone

). Now go to the very end of the left pane, select the file "toc.ncx" and again, do right click and delete the file. The epub now is without a TOC and you are in the worst of all worlds

Don't worry that is easy to rebuild it.
3. Select the command Tools/Table of Contents/Edit Table of Contents. In the dialog that appears, select the buttom "Generate ToC from major headings" (also you could play with the others options). Press "Ok" and now, at the end of the left pane, you have again, the toc.ncx file. It was easy, isn't it?
Regards
Rubén