Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-12-2018, 04:52 AM   #1
bizzybody
Addict
bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.
 
Posts: 294
Karma: 7742186
Join Date: Apr 2007
Location: Idaho, USA
Device: Various PalmOS PDAs, Android Phones, Sharper Image Literati
Fixing huge paragraph spacing?

I have an epub with huge gaps between paragraphs. Every paragraph begins with <p class="s10"> or some other number.

In Calibre I used its find and replace in all text files function to make every paragraph start with just <p> They all already end in </p>

After saving, I opened it in Sigil and there it shows the text with no space between paragraphs. But when I open that same edited file in Edge or in Calibre's editor - and when converted to AZW3 it's like I did nothing to the book, exactly the same gaps of 4 or so lines that are more than a single text line high. How can epub reading software and Calibre still be applying classes to the paragraphs when I've changed them all to plain paragraph tags?

Is this something that needs fixed in the css? I'd rather not have any font or size specified. Here's the content of stylesheet.css

Code:
.body {
    display: block;
    line-break: strict;
    line-height: 1.2;
    white-space: pre-wrap
    }
.c {
    font-weight: bold;
    line-height: 1.2
    }
.c1 {
    color: #009;
    text-decoration: underline
    }
.c2 {
    font-style: normal;
    line-height: 1.2
    }
.c3 {
    font-style: italic
    }
.c4 {
    font-style: normal
    }
.c5 {
    font-style: italic;
    text-decoration: underline
    }
.c6 {
    font-weight: normal
    }
.c7 {
    font-style: italic;
    font-weight: normal
    }
.calibre {
    display: block;
    font-family: "book antiqua";
    font-size: 1.29167em;
    line-height: 1.2;
    padding-left: 0;
    padding-right: 0;
    margin: 0 5pt
    }
.calibre1 {
    display: block;
    line-height: 1.2
    }
.s {
    -webkit-hyphens: none;
    display: block;
    font-size: 1.54839em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    line-height: 1.2;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    margin: 0% 0
    }
.s1 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: justify;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0
    }
.s2 {
    -webkit-hyphens: none;
    display: block;
    font-size: 1em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    line-height: 1.2;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    margin: 0% 0 1.2821%
    }
.s3 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    margin: 0% 0
    }
.s4 {
    -webkit-hyphens: none;
    break-after: page;
    display: block;
    font-size: 1.29032em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    line-height: 1.2;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    margin: 0% 0
    }
.s5 {
    -webkit-hyphens: none;
    display: block;
    font-size: 1.29032em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    line-height: 1.2;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    margin: 0% 0 1.2821%
    }
.s6 {
    -webkit-hyphens: none;
    display: block;
    font-family: "Baskerville";
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: justify;
    text-indent: 3.8462%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0 1.2821%
    }
.s7 {
    -webkit-hyphens: none;
    display: block;
    font-family: "Baskerville";
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0 1.2821%
    }
.s8 {
    -webkit-hyphens: none;
    break-after: page;
    display: block;
    font-family: "Baskerville";
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0 1.2821%
    }
.s9 {
    -webkit-hyphens: none;
    break-after: page;
    display: block;
    font-size: 1.54839em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    line-height: 1.2;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    margin: 0% 0
    }
.s10 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: justify;
    text-indent: 3.8462%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0
    }
.s11 {
    -webkit-hyphens: none;
    break-after: page;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: justify;
    text-decoration: none;
    text-indent: 3.8462%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0
    }
.s12 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 3.8462%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0
    }
.s13 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: italic;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: justify;
    text-decoration: none;
    text-indent: 3.8462%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0
    }
.s14 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: justify;
    text-decoration: none;
    text-indent: 3.8462%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0
    }
.s15 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: justify;
    text-decoration: none;
    text-indent: 3.8462%;
    text-transform: none;
    white-space: normal;
    margin: 0% 0
    }
.s16 {
    -webkit-hyphens: none;
    display: block;
    font-size: 0.77419em;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    hyphens: none;
    letter-spacing: 0;
    padding-left: 0%;
    padding-right: 0%;
    text-align: center;
    text-decoration: none;
    text-indent: 0%;
    text-transform: none;
    margin: 0% 0
    }
bizzybody is offline   Reply With Quote
Old 03-12-2018, 05:18 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The first thing to do is open in the Calibre editor and go to the tools menu. Select the menu option to remove unused CSS and then post the CSS again.
JSWolf is offline   Reply With Quote
Advert
Old 03-12-2018, 05:23 AM   #3
bizzybody
Addict
bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.
 
Posts: 294
Karma: 7742186
Join Date: Apr 2007
Location: Idaho, USA
Device: Various PalmOS PDAs, Android Phones, Sharper Image Literati
OK, here it is after. Says it removed 5.

Code:
.body {
  display: block;
  line-break: strict;
  line-height: 1.2;
  white-space: pre-wrap;
}
.c1 {
  color: #009;
  text-decoration: underline;
}
.c2 {
  font-style: normal;
  line-height: 1.2;
}
.c3 {
  font-style: italic;
}
.c4 {
  font-style: normal;
}
.c5 {
  font-style: italic;
  text-decoration: underline;
}
.c6 {
  font-weight: normal;
}
.c7 {
  font-style: italic;
  font-weight: normal;
}
.calibre {
  display: block;
  font-family: "book antiqua";
  font-size: 1.29167em;
  line-height: 1.2;
  padding-left: 0;
  padding-right: 0;
  margin: 0 5pt;
}
.s {
  -webkit-hyphens: none;
  display: block;
  font-size: 1.54839em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  line-height: 1.2;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  margin: 0% 0;
}
.s1 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: justify;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0;
}
.s2 {
  -webkit-hyphens: none;
  display: block;
  font-size: 1em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  line-height: 1.2;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  margin: 0% 0 1.2821%;
}
.s3 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  margin: 0% 0;
}
.s4 {
  -webkit-hyphens: none;
  break-after: page;
  display: block;
  font-size: 1.29032em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  line-height: 1.2;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  margin: 0% 0;
}
.s7 {
  -webkit-hyphens: none;
  display: block;
  font-family: "Baskerville";
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0 1.2821%;
}
.s9 {
  -webkit-hyphens: none;
  break-after: page;
  display: block;
  font-size: 1.54839em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  line-height: 1.2;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  margin: 0% 0;
}
.s10 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: justify;
  text-indent: 3.8462%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0;
}
.s11 {
  -webkit-hyphens: none;
  break-after: page;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: justify;
  text-decoration: none;
  text-indent: 3.8462%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0;
}
.s12 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 3.8462%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0;
}
.s13 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: italic;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: justify;
  text-decoration: none;
  text-indent: 3.8462%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0;
}
.s14 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: justify;
  text-decoration: none;
  text-indent: 3.8462%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0;
}
.s15 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: justify;
  text-decoration: none;
  text-indent: 3.8462%;
  text-transform: none;
  white-space: normal;
  margin: 0% 0;
}
.s16 {
  -webkit-hyphens: none;
  display: block;
  font-size: 0.77419em;
  font-style: normal;
  font-variant: normal;
  font-weight: bold;
  hyphens: none;
  letter-spacing: 0;
  padding-left: 0%;
  padding-right: 0%;
  text-align: center;
  text-decoration: none;
  text-indent: 0%;
  text-transform: none;
  margin: 0% 0;
}
bizzybody is offline   Reply With Quote
Old 03-12-2018, 05:28 AM   #4
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Here's the second thing to do: add the following to the stylesheet:

Code:
p {margin: 0;}
You should also define a text-indent for paragraphs.
doubleshuffle is offline   Reply With Quote
Old 03-12-2018, 05:52 AM   #5
bizzybody
Addict
bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.
 
Posts: 294
Karma: 7742186
Join Date: Apr 2007
Location: Idaho, USA
Device: Various PalmOS PDAs, Android Phones, Sharper Image Literati
Add it where? Just paste that at the top or bottom?

The spacing of the lines within paragraphs is fine, I want to reduce the space between them to just one or perhaps 1.5 lines.

After I made the first post I used Calibre to convert it to DOCX then opened that with Word 2003. Then I selected all, went to Format, Paragraph. Set before and after spacing to Auto and Line spacing to 1. Looks exactly like it ought to in Word. Then I converted that DOCX to AZW3. In Kindle Android it's ALL the same line spacing, none extra between paragraphs.

At least it's standable to read now on my phone, but I still want to get the thing hacked so what Calibre spits out into AZW3 is displayed *properly on my phone*, no matter what it looks like in any program on my computer.
bizzybody is offline   Reply With Quote
Advert
Old 03-12-2018, 06:02 AM   #6
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
I never do conversions from docx, so I can't tell you about all that stuff. But regarding the paragraph styles, they are usually put after the body styles, but it shouldn't really matter where you put them.

Last edited by doubleshuffle; 03-12-2018 at 06:06 AM.
doubleshuffle is offline   Reply With Quote
Old 03-12-2018, 06:05 AM   #7
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Oh, but wait, what I posted will leave no space between the paragraphs. Perhaps you should do it like this:

Code:
p {margin-top:0.2em; margin-bottom: 0; margin-left:0; margin-right:0}
You can set the top margin to whatever value you like.
doubleshuffle is offline   Reply With Quote
Old 03-12-2018, 06:16 AM   #8
bizzybody
Addict
bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.
 
Posts: 294
Karma: 7742186
Join Date: Apr 2007
Location: Idaho, USA
Device: Various PalmOS PDAs, Android Phones, Sharper Image Literati
I went to the top of the stylesheet.css and pasted that then saved. It converted it to this
Code:
p {
  margin-top: 0.2em;
  margin-bottom: 0;
  margin-left: 0;
  margin-right: 0;
}
But didn't change anything with how it's displayed. Can I send you the book so you can see what the heck is wrong with it?
bizzybody is offline   Reply With Quote
Old 03-12-2018, 06:22 AM   #9
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Well, since you posted this in the Sigil forum, I was assuming you wanted epub output. But you want azw3. Have you opened your book in the calibre editor and run an error check on it?

Or, since you have docx conversion in your workflow, why don't you use Toxaris' conversion program for that (which, I have read here, is supposed to be the best)?

Wait, I'll fetch a link...
doubleshuffle is offline   Reply With Quote
Old 03-12-2018, 06:22 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,752
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
This is better CSS code. If I could see the eBook, then I could probably remove a number of classes from the CSS. It's rather poor CSS (overall). Oh and for most paragraphs, you can remove whatever clasas is most used for <p> as <p> is defined to not need such.

Code:
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
p {
  margin-top: 0;
  margin-bottom: 0;
  text-indent: 1.2em
}
.c1 {
  color: #009;
  text-decoration: underline;
}
.c2 {
  font-style: normal;
}
.c3 {
  font-style: italic;
}
.c4 {
  font-style: normal;
}
.c5 {
  font-style: italic;
  text-decoration: underline;
}
.c6 {
  font-weight: normal;
}
.c7 {
  font-style: italic;
  font-weight: normal;
}
.calibre {
  display: block;
  font-family: "book antiqua";
  font-size: 1.3em;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
}
.s {
  font-size: 1.6em;
  text-align: center;
  text-indent: 0;
  margin: 0;
}
.s1 {
  text-indent: 0;
  margin: 0;
}
.s2 {
  text-align: center;
  text-indent: 0;
  margin: 0 0 1.3%;
}
.s3 {
  text-align: center;
  text-indent: 0;
  margin: 0;
}
.s4 {
  font-size: 1.3em;
  text-align: center;
  text-indent: 0;
  margin: 0;
}
.s7 {
  display: block;
  font-family: "Baskerville";
  text-align: center;
  text-indent: 0;
  white-space: normal;
  margin: 0 0 1.3;
}
.s9 {
  font-size: 1.5em;
  text-align: center;
  text-indent: 0;
  margin: 0;
}
.s10 {
  text-indent: 1.2em;
  margin: 0;
}
.s11 {
  text-indent: 1.2em;
  margin: 0;
}
.s12 {
  text-align: center;
  text-indent: 1.2em;
  margin: 0;
}
.s13 {
  text-indent: 1.2em;
  margin: 0;
}
.s14 {
  text-indent: 1.2em;
  margin: 0;
}
.s15 {
  text-indent: 1.2em;
  margin: 0;
}
.s16 {
  text-indent: 0;
  margin: 0;
}
JSWolf is offline   Reply With Quote
Old 03-12-2018, 06:25 AM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
This is not really a Sigil topic. It is an issue with understanding css/html. Use the Inspector in Sigil's Preview or the Live CSS feature in calibre to determine what exact css is being applied the paragraphs and adjust accordingly.

It's probably the "white-space: pre-wrap" being applied to the body that's fouling things up.

Last edited by DiapDealer; 03-12-2018 at 04:11 PM.
DiapDealer is offline   Reply With Quote
Old 03-12-2018, 06:28 AM   #12
doubleshuffle
Unicycle Daredevil
doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.doubleshuffle ought to be getting tired of karma fortunes by now.
 
doubleshuffle's Avatar
 
Posts: 13,944
Karma: 185432100
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
Here's the link to Toxaris' Word add-in:

https://www.mobileread.com/forums/sh...d.php?t=213372
doubleshuffle is offline   Reply With Quote
Old 03-12-2018, 06:33 AM   #13
bizzybody
Addict
bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.
 
Posts: 294
Karma: 7742186
Join Date: Apr 2007
Location: Idaho, USA
Device: Various PalmOS PDAs, Android Phones, Sharper Image Literati
I use Calibre for converting to AZW3. Sigil for things I can figure out to fix in epubs, usually removing page numbers and the author's name and book title from the top of every page on old scanned books. (WTH is with that? Do the publishers think readers will forget what book they're reading and who wrote it?)

Converting to DOCX was an attempt to see if MS Word could fix the paragraph spacing, which it did for itself (and would print on paper) but Calibre converted it with line AND paragraph spacing the same.

If someone wants the book to doctor, I'll e-mail it.
bizzybody is offline   Reply With Quote
Old 03-12-2018, 06:48 AM   #14
bizzybody
Addict
bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.bizzybody ought to be getting tired of karma fortunes by now.
 
Posts: 294
Karma: 7742186
Join Date: Apr 2007
Location: Idaho, USA
Device: Various PalmOS PDAs, Android Phones, Sharper Image Literati
4:47 AM here (Mountain Daylight Time) so I'm going to bed
bizzybody is offline   Reply With Quote
Old 03-12-2018, 03:32 PM   #15
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by DiapDealer View Post
This is not really a Sigil topic. It is an issue with
It's probably the "white-space: pre-wrap" being applied the the body that's fouling things up.
Almost certainly.
That will display newlines and spaces BETWEEN paragraphs as well as within them. And many editors feel free to add space between pars to "pretty" the code display, some may do it automatically on opening or saving, as that normally has no effect on the displayed page.

Can't think of any reason you would want that.
So just delete it.

I once wrestled with a book with this set until I worked it out, I suspect the author had done it deliberately to screw with anyone trying to edit it.
AlanHK is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre paragraph spacing ebookscovers Conversion 4 02-01-2018 09:37 PM
Paragraph spacing Banks ePub 2 08-09-2012 05:24 PM
Preference: Paragraph indent or a little paragraph spacing? 1611mac General Discussions 48 11-11-2011 12:43 AM
Nook Paragraph Spacing poppies ePub 3 04-21-2011 12:01 AM
Paragraph spacing jhempel24 Calibre 5 08-24-2010 12:14 AM


All times are GMT -4. The time now is 08:58 AM.


MobileRead.com is a privately owned, operated and funded community.