View Single Post
Old 04-12-2011, 02:35 PM   #6
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 11,517
Karma: 33048258
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International, Sony PRS-T1, BlackBerry PlayBook, Acer Iconia
To add chapter marks to a pre-existing Mobi file with a decent HTML table of contents already inside it, I'd say
  1. unpack using the Mobiunpack script
  2. copy-paste the TOC section and then
  3. regexp or otherwise search/replace the HTML bits surrounding the chapter titles and anchor links to create an NCX
  4. fill in the PlayOrder and other necessary pieces
  5. regenerate the Mobi, linking your new NCX
It's not exactly easy, but it takes marginally fewer steps than the Calibre to Sigil to Calibre/KindleGen round-trip.
ATDrake is offline   Reply With Quote