|
|
Thread Tools | Search this Thread |
09-08-2011, 10:43 AM | #1 |
Enthusiast
Posts: 43
Karma: 576732
Join Date: Jun 2011
Device: Kindle
|
Paragraph spaces in ePub to Mobi conversion disrupts indent formatting
I've been trying to convert a commercial epub book to mobi in Calibre, but the epub has those annoying small spaces between paragraphs. The conversion is successful, BUT the book is formatted so that the first line of each chapter and mid-chapter breaks have NO indenting -- which is the way the book should read. There are no formatted paragraph breaks when I view with Sigil -- just different CSS style for each of the first "no-indent" paragraphs.
Calibre adds indents to all the "no-indent" paragraphs when I use the "Remove spacing between paragraphs", stripping away the original first-line formatting intent. If I enable Heuristic Processing, checking off "delete blank lines between paragraphs" I still come up with the same results. The only way to convert the book to mobi in Calibre is to leave all these options open -- resulting with those darned small lines between paragraphs so prevalent with epubs. Is there any workaround for this in Calibre? or just a bug I'll have to live with? Last edited by markpearl; 09-08-2011 at 11:05 AM. |
09-08-2011, 11:29 AM | #2 | |
Well trained by Cats
Posts: 30,120
Karma: 57259780
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Space between paragraphs are usually "blank lines" Indent, is just that Indent. Look at the 'noindent" class in the stylesheet text-indent: 0 (or, and this can be tricky depending on/if the styles Cascade: no line entry.) Last edited by theducks; 09-08-2011 at 11:32 AM. Reason: Missed it was a Mobi conversion |
|
Advert | |
|
09-08-2011, 11:42 AM | #3 |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
MOBI does not support style sheets. Mobi uses a super set of HTML 3. It allows for limited inline styling which calibre will translate form EPUB to what Mobi supports.
You need to have the EPUB formatted without paragraph spacing and with the first paragraph unindented with css before converting to Mobi. This will produce the output you want. |
09-08-2011, 11:47 AM | #4 | ||
Member
Posts: 19
Karma: 10
Join Date: Feb 2011
Device: Kindle
|
Quote:
I have a very similar problem as Mark -- here's my situation: There are no visible blank lines between the spaced paragraphs that I can see in Sigil: Code:
<p class="normal">It was Sarah who gave Emily her first information about sex. They were eating orange popsicles and fooling around a broken hammock in the yard of their house in Larchmont, New York – that was one of the other suburban towns they lived in after Tenafly – and as Emily listened her mind filled with confused and troubling images.</p> <p class="bodytext">‘And you mean they put it up in<i>side</i> you?’</p> <p class="bodytext">‘Yup. All the way. And it hurts.’</p> <p class="bodytext">‘What if it doesn’t fit?’</p> <p class="bodytext">‘Oh, it fits. They make it fit.’</p> Here's the bodytext from the stylesheet.css: Quote:
I'm not a Sigil or Calibre "Power User" to know how to remedy this situation to either 1) remove the spaces in the ePub before converting to Mobi -- or 2) remove the spaces diring a Calibre mobi conversion while preserving the noindent format. Last edited by vanpelten; 09-08-2011 at 11:50 AM. |
||
09-08-2011, 12:00 PM | #5 | |
Well trained by Cats
Posts: 30,120
Karma: 57259780
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
having a (nonsense, in usage) unit may confuse things |
|
Advert | |
|
09-08-2011, 12:03 PM | #6 | |
Enthusiast
Posts: 43
Karma: 576732
Join Date: Jun 2011
Device: Kindle
|
Quote:
|
|
09-08-2011, 12:19 PM | #8 | |
Enthusiast
Posts: 43
Karma: 576732
Join Date: Jun 2011
Device: Kindle
|
Quote:
So much to learn...the mind boggles. |
|
09-08-2011, 02:45 PM | #9 |
Member
Posts: 19
Karma: 10
Join Date: Feb 2011
Device: Kindle
|
That link to John's website was a Godsend for me too! I managed to correct these same issues by using his suggested reformatting of CSS areas affecting the key areas. Only in a few books I've converted using calibre going from epub to mobi is it a major hassle due to their unwieldy length and complexity of the book -- a perfect example is the Pevear & Volokhonsky translation of "War and Peace" -- way too many variables and impossible length. So I'll have to settle for first-page & paragraph indents in mobi. I'll live
I wonder why Calibre's Blank Space Removal switch in the conversion process also forces an indent by default. Is it not possible to have it just remove blank paragraph spaces while offering indenting as a user option -- thus preserving the original indent formatting? Anyone know? |
09-08-2011, 05:58 PM | #10 | ||
Member
Posts: 19
Karma: 10
Join Date: Feb 2011
Device: Kindle
|
Quote:
Quote:
|
||
09-08-2011, 06:05 PM | #11 |
Well trained by Cats
Posts: 30,120
Karma: 57259780
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
09-08-2011, 06:06 PM | #12 | |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
The conversion sub forum within the calibre forum (where we are now) is the place for this. This is the correct location for this question. |
|
09-08-2011, 09:04 PM | #13 | |
creator of calibre
Posts: 44,151
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
p, div { margin: 0pt; padding: 0pt } in extra css in the conversion settings. |
|
09-09-2011, 01:42 PM | #14 |
Member
Posts: 19
Karma: 10
Join Date: Feb 2011
Device: Kindle
|
@user_none:
Sorry very much for jumping the gun I was concerned that perhaps my question was buried in the rest of my original post. @kovidgoyal: What a perfect solution for my problem, many thanks!! I tried it with that EPUB version of "War and Peace" and the conversion to Mobi was perfect. Thank you again! |
09-11-2011, 06:41 PM | #15 | |
Enthusiast
Posts: 43
Karma: 576732
Join Date: Jun 2011
Device: Kindle
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Old Thread] PDF to Epub conversion (spaces between letters) | mastroalex | Conversion | 8 | 10-09-2011 10:39 PM |
Huge Sentence and Paragraph Spaces EPub to Mobi | Dasha | Amazon Kindle | 10 | 06-06-2011 06:43 PM |
Can't get rid of paragraph spaces converting to Mobi | vanpelten | Conversion | 7 | 03-10-2011 05:00 PM |
TXT conversion to ePub or LRF - paragraph formatting | Zapped | Calibre | 6 | 10-23-2009 05:06 PM |
First Line indent for Mobi conversion | tbergman | Calibre | 7 | 09-06-2009 09:09 AM |