Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 07-02-2010, 07:36 PM   #1
mharring
mharring
mharring began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2010
Location: Los Angeles
Device: Kindle/iPad
Editing mobi file for toc

How does one edit a mobi file created in Calibre? I am saving a Word doc, with links, as a htm file and then converting that (zipped) in Calibre to mobi and ePub for Kindle and iPad.

The mobi file looks great on my Kindle but it doesn't link to the Table of Contents in the Kindle menu - the selection is grayed out. I know how to get Kindle to recognize this as I have edited the prc file in Mobipocket Creator by inserting a <toc> anchor into the code.

But my Creator conversion is screwing up all the punctuation symbols while my Calibre conversion looks great. So my question is how do I edit the mobi file in Calibre or some other editing program to insert the two simple lines of code? Creator will not import a file with a mobi extension, which is bizarre since it is their file format. Needs a .obf file?

Also wondering how to create a .prc file from my mobi file.

Thanks....
mharring is offline   Reply With Quote
Old 07-02-2010, 10:12 PM   #2
mharring
mharring
mharring began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2010
Location: Los Angeles
Device: Kindle/iPad
Searching the forum I found discussions about Mobi2oeb that is supposed to be a tool in Calibre. But I can't seem to find it. Is this one of those add-on tools in Perl that require the Windows OS? I'm working in OS X on the Mac.

My mobi file from Calibre is really clean, but the Kindle menu doesn't recognize the Table of Contents. I need to get this in there. To me navigation is the essence of eBooks and the navigational tools to date are pretty primitive. Will I live long enough for convergence in formatting?
mharring is offline   Reply With Quote
Old 07-02-2010, 10:33 PM   #3
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
The easiest way is to let Calibre auto-detect the chapters. See Structure Detection and Table of Contents. By default, calibre will assume chapters start at either <h1> or <h2> tags that have any of the words (chapter, book, section or part) in them or that have the class=”chapter” attribute. I assume MS Word Headings get mapped to heading tags as part of the DOC to HTML export. Since you have control over the document, changing the chapter detection to all <h1> or <h2> tags (e.g. if your chapters don't all start with Chapter) or using a multi-level setup should be relatively easy to make work.

Usually, .mobi and .prc are interchangeable filename extensions (i.e. just rename the file from .mobi to .prc). The only exception might be if you are targeting very old handheld devices, which might have some image size restrictions.
wallcraft is offline   Reply With Quote
Old 07-03-2010, 10:27 PM   #4
mharring
mharring
mharring began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2010
Location: Los Angeles
Device: Kindle/iPad
@wallcraft,
Thanks. Unfortunately that won't work for me. The book I'm formatting is historical fiction so there are no chapters in the TOC - just things like maps and other reference materials like character bios, Afterword, illustrations, images, etc. The TOC is programmed perfectly now and I don't want to try to force an automated TOC as I'm sure that will raise all kinds of problems. But the TOC works real well in the Kindle mobi file - it just doesn't recognize the TOC from the menu pad. This requires a simple fix of adding a couple of lines of code that Kindle reads and recognizes as a toc identity. I can do this really easy in Mobi Creator but Creator is now not recognizing all my punctuation symbols. No " ' ... or any accents. Fixing the mobi created by Calibre looks a whole lot cleaner than trying to fix Creator's conversions at this point. Not sure why the symbols problem except that I have switched from XP to Leopard for my MS Word.

What is mobi2oeb and where do I find it? People write here that one can convert mobi to html in Calibre and then edit and rebuild, but my conversions menus in Calibre don't show this option.

Glad to hear the mobi and prc files may be interchangeable. Hope so.
Thanks again.
mharring is offline   Reply With Quote
Old 07-03-2010, 11:13 PM   #5
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
Quote:
Originally Posted by mharring View Post
What is mobi2oeb and where do I find it? People write here that one can convert mobi to html in Calibre and then edit and rebuild, but my conversions menus in Calibre don't show this option.
The Calibre documentation still lists OEB as an output type, but I agree that the GUI does not show it. I suggest converting the HTML to ePub using Calibre, then rename the .epub to .zip and unzip it. An ePub is just a zip container with HTML/XML plus an .opf file which you can import into MobiPocket Creator, it is essentially OEB 2.0 vs the 1.1 typically used as input by MobiPocket.
wallcraft is offline   Reply With Quote
Old 07-04-2010, 04:12 PM   #6
mharring
mharring
mharring began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2010
Location: Los Angeles
Device: Kindle/iPad
Quote:
An ePub is just a zip container with HTML/XML plus an .opf file which you can import into MobiPocket Creator, it is essentially OEB 2.0 vs the 1.1 typically used as input by MobiPocket.
Thanks. I didn't know that. I'll give it another try. Just learning about these file formats.
mharring is offline   Reply With Quote
Old 07-11-2010, 03:01 PM   #7
TWiTCommander
Member
TWiTCommander began at the beginning.
 
Posts: 20
Karma: 20
Join Date: Jul 2010
Device: kindle
since you are working with html files, try using sigil instead of word. sigil is an html editor and outputs epub. use calibre or kindlegen to convert to mobi.

sigil does all the work of creating the toc, etc that a kindle will need. the only thing you need to do is to select an image as the cover image in sigil.
TWiTCommander is offline   Reply With Quote
Old 09-16-2012, 06:50 AM   #8
karenbryant
Member
karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.karenbryant ought to be getting tired of karma fortunes by now.
 
Posts: 24
Karma: 496542
Join Date: Dec 2011
Device: nook
Hi,
I too have this problem. Did you find a solution? I don;t want to mess about converting to ePub and then back again to mobi just to make the mobi recognise the toc location. I also have a toc in the eBook I'm perfectly happy with and I don't want Calibre to make its own generated toc due to how well formatted etc I have made the one in the book.
Any help appreciated!
Thanks,
Karen
karenbryant is offline   Reply With Quote
Old 09-16-2012, 09:13 AM   #9
mncowboy
Wanderer
mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.mncowboy ought to be getting tired of karma fortunes by now.
 
mncowboy's Avatar
 
Posts: 104
Karma: 472218
Join Date: Jan 2011
Device: Kindle 3, PaperWhite 2
TWitCommander stated the workflow I use. Word to Sigil to create the EPUB, use Kindle Previewer to create the mobi file.
This workflow gives you much more control over the formatting and conversion process.
Bob
mncowboy is offline   Reply With Quote
Old 09-16-2012, 10:21 AM   #10
mzmm
Groupie
mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.mzmm has not lost his or her sense of wonder.
 
mzmm's Avatar
 
Posts: 161
Karma: 86115
Join Date: Feb 2012
Device: iPad, Kindle Touch, Sony PRS-T1
Quote:
Originally Posted by TWiTCommander View Post
since you are working with html files, try using sigil instead of word. sigil is an html editor and outputs epub. use calibre or kindlegen to convert to mobi.
i agree - although using this method still produces the greyed-out toc mentioned earlier in the post.

to take care of that, you can open the epub and insert a <refence type="toc" title="toc" href="my_toc.html"/> in the guide element of the opf before using calibre or kindlegen to convert to mobi.
mzmm is offline   Reply With Quote
Reply

Tags
kindle, mobi, mobi2mobi, prc, toc

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools for Editing Kindle .mobi Files? GJN Kindle Formats 33 12-26-2013 02:05 PM
MOBI TOC HELP NEEDED LITTLE L Calibre 1 09-28-2010 10:34 AM
Best Practices for TOC in Mobi ldespain Kindle Formats 11 09-25-2010 08:54 PM
Newbie to editing opf file pda_junkie Workshop 2 05-08-2010 09:58 AM
Bood Designer - horizontal bars & TOC editing DoctorBri Sony Reader 5 09-17-2007 10:33 AM


All times are GMT -4. The time now is 07:51 AM.


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