10-19-2010, 01:20 PM | #1 |
Feral Underclass
Posts: 3,622
Karma: 26821535
Join Date: Jan 2010
Location: Yorkshire, tha noz
Device: 2nd hand paperback
|
Sigil type program for mobi
Is there one? I want something that will change the paragraph indent, space between paragraphs, and fix spelling mistakes. I know I can convert them to epub with Calibre and use Sigil before converting back, but sometimes Calibre removes spaces between words when you do that.
|
10-19-2010, 01:36 PM | #2 |
Grand Sorcerer
Posts: 27,463
Karma: 192992430
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
There are no programs that I know of that will allow you to edit mobi's on-the-fly. Basically because all of the details of the mobi format are not known (it's proprietary).
If the Calibre to epub->Sigil edit->Calibre to mobi approach is less than satisfactory, you can try unpacking the mobi with mobiunpack.py (search these forums for a download link), editing the source and converting it back to a mobi with MobiPocket Creator or Kindlegen. |
Advert | |
|
10-19-2010, 02:09 PM | #3 |
Feral Underclass
Posts: 3,622
Karma: 26821535
Join Date: Jan 2010
Location: Yorkshire, tha noz
Device: 2nd hand paperback
|
When I do that with mobicreator, it changes all the quotes to ’s. Something to do with character encoding?
|
10-19-2010, 09:05 PM | #4 |
Wizzard
Posts: 11,517
Karma: 33048258
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International, Sony PRS-T1, BlackBerry PlayBook, Acer Iconia
|
Yes. It's an indication that your UTF-8 has gotten loaded/interpreted as probably Latin-1, or maybe Windows-1252 (I forget which Mobipocket Creator is supposed to use as its default).
If you use KindleGen, the -unicode option should take care of that when reconverting, although you may have to stick in a <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> if it proves stubborn. Or you can just go and change all the quotes to the appropriate HTML entity, although that's a bit less human-readable and inconvenient when editing, I find. |
10-21-2010, 04:50 PM | #5 |
Feral Underclass
Posts: 3,622
Karma: 26821535
Join Date: Jan 2010
Location: Yorkshire, tha noz
Device: 2nd hand paperback
|
Thanks, putting the content type in the header of the html fixes it. How are things like indent width and space between paragraphs controlled in mobi files?
|
Advert | |
|
10-21-2010, 07:50 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
|
Indent width via width attribute in the <p> tag. Set it to <p width="0"> for the equivalent of CSS text-indent: 0; any other integer for a custom indent.
Space between paragraphs is done via a blank <p> with an inside. It will be incredibly tedious to add spacing by hand, even via a simple search/replace, unless you're just using one occasionally for a section divider, so I advise if you want lines between all your paragraphs to set it via an external CSS stylesheet which KindleGen (and probably Mobipocket Creator) will automatically "translate" during the conversion to Mobi format. |
10-22-2010, 04:45 AM | #7 |
frumious Bandersnatch
Posts: 7,514
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
|
10-22-2010, 12:45 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
|
Oops, my mistake. I'd mobiunpack'ed enough wonky Kindle samples that had mysterious superfluous blank <p>'s that I thought that must be what they were for. Glad to know better now, thanks.
A link to the official Mobipocket file format documentation, if it helps the OP any. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preserving format from ePub (Sigil) to Mobi | jeff47 | Calibre | 9 | 10-22-2010 10:17 PM |
Sigil to MOBI tutorials by pdurrant | crutledge | Sigil | 25 | 10-21-2010 06:07 AM |
Sigil ePub to MOBI | crutledge | Calibre | 1 | 10-08-2010 12:04 PM |
Error with Sigil Cannot use the program anymore | ericp20 | Sigil | 1 | 08-24-2010 07:27 AM |
Large type (Mobi/CyBook)? | PhysicsTeacher | Reading and Management | 4 | 05-25-2005 03:16 PM |