04-12-2011, 07:43 AM | #1 |
Addict
Posts: 202
Karma: 10802
Join Date: Sep 2010
Device: Kindle Paperwhite, iPhone 5, iPad Air, Nexus 7
|
Add to chapter marks to mobi file?
Whats the easiest way to edit a mobi file to add chapter marks?
Please dont say convert it to epub in Calibre and edit with Sigil |
04-12-2011, 08:00 AM | #2 | |
Feral Underclass
Posts: 3,622
Karma: 26821535
Join Date: Jan 2010
Location: Yorkshire, tha noz
Device: 2nd hand paperback
|
Quote:
You could also extract the html from the mobi file, add header tags to it in the relevant places, then re-generate the mobi with mobicreator. |
|
Advert | |
|
04-12-2011, 11:47 AM | #3 |
Treasure Seeker
Posts: 18,708
Karma: 26026435
Join Date: Mar 2010
Device: Kobo HD Glo, Kindles, Kindle Fires, Andriod Devices
|
Calibre using Heuristics processing sometimes works. Sometimes the right xpath regular expression will do it. You can quickly view the code of your book in the Search and Replace Wizard to see what it is so you know what regex will work if Heuristics processing fails to find the chapters.
Make a backup of your mobi file so you can drag into Calibre each time you need run a test conversion. I don't use Sigil at all. |
04-12-2011, 12:01 PM | #4 |
Groupie
Posts: 174
Karma: 1498858
Join Date: Aug 2010
Device: Kindle 3
|
My apology in advance... I'm writing a book and go from an HTML file, add the photos in Sigil, create a TOC, (check it in the TOC editor), and then convert to a mobi with Calibre.... I find it a fairly easy task.....
Again, SORRY!!!!! |
04-12-2011, 12:46 PM | #5 |
Mrawr?
Posts: 1,109
Karma: 15039064
Join Date: Aug 2010
Device: kindle 3 wifi
|
This is what I do when I edit my own files:
1. I make sure all my "Chapter 1/2/3/4 etc" are Heading 1 (from styles and formatting) 2. Then I save as HTML 3. Use Mobipocket Creator to make .PRC (and there I create a TOC by specifying "h1, class, western" in the Tags' 1st Level <-- remember Heading 1) 4. Simply convert .PRC to .MOBI by using Calibre PS: I use OpenOffice to edit the files but I'm pretty sure it will work in Word as well. And, sometimes, it works with other tags (in HTMLs I'm too lazy to edit) but most of the times I have to use h1, class, western. Other times, when the book is already a .MOBI/.PRC I just run it through Calibre once and voila, chapter marks! But again it does not always work. People have explained it to me but it just flies over my head... |
Advert | |
|
04-12-2011, 02:35 PM | #6 |
Wizzard
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
|
04-12-2011, 03:00 PM | #7 |
Addict
Posts: 202
Karma: 10802
Join Date: Sep 2010
Device: Kindle Paperwhite, iPhone 5, iPad Air, Nexus 7
|
I guess the biggest concern for me is not laziness but changes to formatting due to conversion to epub and then back again.
|
04-12-2011, 03:04 PM | #8 |
Wizzard
Posts: 11,517
Karma: 33048258
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International, Sony PRS-T1, BlackBerry PlayBook, Acer Iconia
|
In which case, Mobiunpack and manual NCX creation, though mildly tedious, will give you the least formatting changes since it'll leave the actual Mobi formatting untouched, which Mobi-ePub-Mobi almost certainly won't.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epub file to mobi, but some caracters appear as question marks | abatsukh | Conversion | 13 | 01-28-2021 11:20 PM |
Strange text characters and missing chapter marks on Kindle 3 | Grahamk | Conversion | 7 | 02-28-2011 02:14 AM |
Xpath expression for detecting chapter marks | p3aul | Calibre | 5 | 11-14-2010 11:14 PM |
PRC with no chapter marks. Best way add them and convert for Kindle mobi? | neonbible | Calibre | 0 | 10-19-2010 08:01 AM |
can calibre creat a TOC by reading numerals as chapter marks | p3aul | Calibre | 7 | 10-04-2010 04:18 AM |