08-31-2010, 12:06 PM | #1 |
Member
Posts: 13
Karma: 10
Join Date: Jul 2010
Device: Kindle Touch
|
Quick way to fix simple things in mobi
Hello guys,
I would like to know if there is a quick way to fix simple things like deleting section breaks and adding page breaks. So is there a tool that will let me open a mobi books, delete, delete, delete, and save? Or what would be the easiest way to accomplish this task? Thank you |
08-31-2010, 12:56 PM | #2 |
Addict
Posts: 248
Karma: 100148
Join Date: Jul 2010
Location: Germany, Munich
Device: Kindle 3 & DX Graphite, PocketBook 302 & Pro 603
|
Not that I know of.
You have to "unpack" the mobi first, you can find the script (mobi2html) for that in the sticky mobi2mobi gui thread. With a decent HTML editor, like notepad++ (Open Source & Free) you can clean up the code, and than use mobipocket creator to build the mobi file again (or the html2mobi command line tool). With notepad++ you can search and replace several identical instances at once. Example: if you look at the HTML and find all chapters start with <h2> tags, you can replace them with <mbp:pagebreak/><h2> and you get the break before the chapter... |
Advert | |
|
08-31-2010, 01:05 PM | #3 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Might be easier to convert the book to ePub with Calibre, edit it with Sigil, and then convert back to Mobi. Mobi to ePub conversion is pretty "lossless" in my experience.
|
08-31-2010, 01:09 PM | #4 |
Addict
Posts: 248
Karma: 100148
Join Date: Jul 2010
Location: Germany, Munich
Device: Kindle 3 & DX Graphite, PocketBook 302 & Pro 603
|
But ePub to mobi messes formatting up IMHO, at least with the ePubs I tried converting for convenient kindle-reading
|
08-31-2010, 01:10 PM | #5 |
Member
Posts: 13
Karma: 10
Join Date: Jul 2010
Device: Kindle Touch
|
bear4hunter,
Great info thank you. In the process of converting mobi to html, fix the errors and convert back to mobi, does the book not loose the metadata and toc etc. or would it go back to it's original state except the changes I make? HarryT, I was initially hoping for a sigil like tool for mobi but I think I may also try your idea to see which one works the best. Does metadata, toc stay the same after conversion? |
Advert | |
|
08-31-2010, 01:16 PM | #6 |
Addict
Posts: 248
Karma: 100148
Join Date: Jul 2010
Location: Germany, Munich
Device: Kindle 3 & DX Graphite, PocketBook 302 & Pro 603
|
With mobipocket creator, you can enter the metadata before compiling, you can also link to the TOC etc.
just make sure you have a TOC inside the HTML, and the TOC is anchored, like <a name="TOC"/> In Creator, you can add the Guide Item for the TOC etc. It takes little time to get use, but the learning curve is not steep and very short. Using mobi2mobi (a script coming along with the aforementioned GUI as well), you can edit/alter/add some metadata as well, so does the GUI using the script. |
08-31-2010, 02:21 PM | #7 |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Mobiunpack.py will extract all html/images from a mobi and create an opf file. You can edit the html and then just import the opf file into MobiPocket creator (or KindleGen) to recreate the mobi.
https://www.mobileread.com/forums/sho...d.php?p=774836 |
08-31-2010, 02:40 PM | #8 |
Member
Posts: 13
Karma: 10
Join Date: Jul 2010
Device: Kindle Touch
|
Does the opf file contain the metadata and toc also?
|
08-31-2010, 03:44 PM | #9 | |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Quote:
To answer a question from another post: yes, a Mobi TOC and metadata will "survive" a conversion to and then back from ePub format unscathed. |
|
08-31-2010, 03:47 PM | #10 |
Grand Sorcerer
Posts: 27,548
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
The opf contains the metadata and if the mobi has a toc, then the opf has a link in the "guide" section of the manifest that points to the toc's fileposition, yes.
|
08-31-2010, 04:14 PM | #11 | |
Member
Posts: 13
Karma: 10
Join Date: Jul 2010
Device: Kindle Touch
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Simple and quick tool to convert epub to mobi? (on Mac!) | FlorenceArt | Kindle Formats | 35 | 12-12-2012 03:37 AM |
Classic Looking for the quick fix | jrh | Barnes & Noble NOOK | 2 | 10-03-2010 06:19 PM |
a simple epub/lit to mobi converter that isn't calibre? | grechzoo | General Discussions | 18 | 08-18-2010 05:20 PM |
HTML to .MOBI: large l.h. margin; text cuts off on the rt. Ideas how to fix? | thorn | Calibre | 1 | 02-21-2010 01:47 AM |
Get a quick Sudoku fix on the iRex iLiad | Alexander Turcic | iRex | 20 | 04-04-2007 05:12 AM |