I use EPUB Unzip and EPUB Zip to crack open .epub files and then, after tweaking the code, zipping them back into an .epub file. I have MobiUnpack for cracking open .mobi files. Is there something like EPUB Zip for zipping them back into .mobi files?

I have Kindlegen, and use it through Kindle Previewer to convert epub files to mobi files. (But Kindle Previewer does not create a navigable toc, which Calibre does.) My question is whether there's a program which can be used to make unpacked mobi files (i.e. the folder holding all the mobi bits and pieces) back into a mobi file, in the way that EPUB Zip makes the folder containing unzipped epub files back into an epub file.

rstoothoff, did you ever find a solution to packing the files from your unzipped .mobi back into a .mobi file. I've got the same issue, a directory with .xhtml, css, etc that I've tweaked and now I want to preview my changes to see what's what.

Hi, you wrote: "I have Kindlegen, and use it through Kindle Previewer to convert epub files to mobi files. (But Kindle Previewer does not create a navigable toc, which Calibre does.)"

I'm trying to create a mobi from an epub, but, like you say, Kindlegen doesn't create a proper TOC. But I understand that Kindlegen is the better option than Calibre if you want to make fully compliant mobi files.

I'm trying to create a mobi from an epub, but, like you say, Kindlegen doesn't create a proper TOC. But I understand that Kindlegen is the better option than Calibre if you want to make fully compliant mobi files.

Get the latest Sigil Beta version (build 0.5.906). It has an option to generate an inline HTML TOC, if the chapter headings are formatted as headings (h1, h2, h3 ...).
(Select Tools > Table of Contents > Create HTML Table of Contents.)
Sigil will also automatically add additional guide information required for .mobi files

Hi, you wrote: "I have Kindlegen, and use it through Kindle Previewer to convert epub files to mobi files. (But Kindle Previewer does not create a navigable toc, which Calibre does.)"

I'm trying to create a mobi from an epub, but, like you say, Kindlegen doesn't create a proper TOC. But I understand that Kindlegen is the better option than Calibre if you want to make fully compliant mobi files.

Do you use a combination of Kindlegen and Calibre? If so, how?

Thanks in advance.

That is not correct. If the source files have an NCX file which contains TOC information then KindleGen will create a "proper" TOC. It won't conjure one up from thin air though.