Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-02-2013, 09:42 AM   #1
Paxman53
Connoisseur
Paxman53 began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jan 2011
Device: 7" Tablet - Aldiko Reader Premium
Paragraph Break

Not sure if this is a Calibre or Sigil related question, so I hope someone can guide me in the right direction?

At present I insert a para break by using <p class="calibre7">&nbsp;</p> to reflect a corresponding space in the hard copy of the book. Using Enter/Space in Sigil to create.

Code View:

<p class="calibre7">But it was clear that the lady did not believe him.</p>

<p class="calibre7">&nbsp;</p>

<p class="calibre">It was about ten o’clock that night.</p>

Book View:

But it was clear that the lady did not believe him.

It was about ten o’clock that night.


This works fine when I transfer the epub onto my tablet using Aldiko as the reader.

However I find that now if I have to convert the book again (for covers etc.) that Calibre (Version 9.28) removes the &nbsp leaving just <p class="calibre7"></p>, effectively removing the space originally created. I'm sure this didn't happen in previous versions of Calibre.

If in Sigil (Version 0.7.2) I just press enter to create a space it shows up as <p class="calibre7"><br /></p> which creates the space in Sigil, but this doesn't show up on the E-Reader.

What should I now be using to insert a space that Calibre will not remove in subsequent conversions, and that the E-reader can recognize?

Thanks in advance.
Paxman53 is offline   Reply With Quote
Old 05-02-2013, 09:53 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,470
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Paxman53 View Post
Not sure if this is a Calibre or Sigil related question, so I hope someone can guide me in the right direction?

At present I insert a para break by using <p class="calibre7">&nbsp;</p> to reflect a corresponding space in the hard copy of the book. Using Enter/Space in Sigil to create.

Code View:

<p class="calibre7">But it was clear that the lady did not believe him.</p>

<p class="calibre7">&nbsp;</p>

<p class="calibre">It was about ten o’clock that night.</p>

Book View:

But it was clear that the lady did not believe him.

It was about ten o’clock that night.


This works fine when I transfer the epub onto my tablet using Aldiko as the reader.

However I find that now if I have to convert the book again (for covers etc.) that Calibre (Version 9.28) removes the &nbsp leaving just <p class="calibre7"></p>, effectively removing the space originally created. I'm sure this didn't happen in previous versions of Calibre.

If in Sigil (Version 0.7.2) I just press enter to create a space it shows up as <p class="calibre7"><br /></p> which creates the space in Sigil, but this doesn't show up on the E-Reader.

What should I now be using to insert a space that Calibre will not remove in subsequent conversions, and that the E-reader can recognize?

Thanks in advance.
Specify a top margin in the style of the paragraph after where you want a blank line.


<p class="calibre">But it was clear that the lady did not believe him.</p>
<p class="gapabove">It was about ten o’clock that night.</p>


and in your CSS file

p.gapabove {
top-margin: 1.5em;
}
pdurrant is offline   Reply With Quote
Advert
Old 05-02-2013, 10:45 AM   #3
Paxman53
Connoisseur
Paxman53 began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jan 2011
Device: 7" Tablet - Aldiko Reader Premium
Quote:
Originally Posted by pdurrant View Post
Specify a top margin in the style of the paragraph after where you want a blank line.


<p class="calibre">But it was clear that the lady did not believe him.</p>
<p class="gapabove">It was about ten o’clock that night.</p>


and in your CSS file

p.gapabove {
top-margin: 1.5em;
}
Thanks for your help.

Tried it in Sigil it created a space above, but also below, plus there was no indent.
Subsequent conversion by Calibre with remove spacing between paras in Look & Feel unchecked, changed the style sheet to:

.gapabove {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
top-margin: 1.5em
}

Changed margin-bottom to 0em which removed bottom space, but indent still unchanged.

What I really want is an instruction I can insert between lines to create a space, that Calibre will not affect in subsequent conversions.
Paxman53 is offline   Reply With Quote
Old 05-02-2013, 10:48 AM   #4
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: 76,337
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Even better...

<p class="calibre7">But it was clear that the lady did not believe him.</p>
<p class="spacebreak">It was about ten o’clock that night.</p>

.spacebreak {
margin-top: 2em;
text-indent: 0
}

That works very well for a section break.
JSWolf is offline   Reply With Quote
Old 05-02-2013, 11:07 AM   #5
Paxman53
Connoisseur
Paxman53 began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jan 2011
Device: 7" Tablet - Aldiko Reader Premium
Quote:
Originally Posted by JSWolf View Post
Even better...

<p class="calibre7">But it was clear that the lady did not believe him.</p>
<p class="spacebreak">It was about ten o’clock that night.</p>

.spacebreak {
margin-top: 2em;
text-indent: 0
}

That works very well for a section break.
Sorry that worked exactly as the gapabove did.
Paxman53 is offline   Reply With Quote
Advert
Old 05-02-2013, 11:09 AM   #6
Paxman53
Connoisseur
Paxman53 began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jan 2011
Device: 7" Tablet - Aldiko Reader Premium
Quote:
Originally Posted by JSWolf View Post
Even better...

<p class="calibre7">But it was clear that the lady did not believe him.</p>
<p class="spacebreak">It was about ten o’clock that night.</p>

.spacebreak {
margin-top: 2em;
text-indent: 0
}

That works very well for a section break.
Plus a subsequent conversion by Calibre wipes this out completely and reverts the para to Calibre7.
Paxman53 is offline   Reply With Quote
Old 05-02-2013, 11:33 AM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,441
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Paxman53 View Post

.gapabove {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
top-margin: 1.5em
}

Changed margin-bottom to 0em which removed bottom space, but indent still unchanged.
If that is really what your stylesheet says , there is no wonder why (and ADE would probably ignore the whole style because of that error)

text-indent: 1.5em;
theducks is online now   Reply With Quote
Old 05-02-2013, 11:35 AM   #8
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,470
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Paxman53 View Post
Thanks for your help.

Tried it in Sigil it created a space above, but also below, plus there was no indent.
Subsequent conversion by Calibre with remove spacing between paras in Look & Feel unchecked, changed the style sheet to:

.gapabove {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em;
top-margin: 1.5em
}

Changed margin-bottom to 0em which removed bottom space, but indent still unchanged.

What I really want is an instruction I can insert between lines to create a space, that Calibre will not affect in subsequent conversions.
Sorry, I should have written margin-top. There's no top-margin CSS instruction.

try

.gapabove {
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 1.5em;
text-indent: 1em;
}

(or whatever value you usually use for text-indent.)
pdurrant is offline   Reply With Quote
Old 05-02-2013, 12:02 PM   #9
Paxman53
Connoisseur
Paxman53 began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jan 2011
Device: 7" Tablet - Aldiko Reader Premium
Quote:
Originally Posted by pdurrant View Post
Sorry, I should have written margin-top. There's no top-margin CSS instruction.

try

.gapabove {
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 1.5em;
text-indent: 1em;
}

(or whatever value you usually use for text-indent.)
Thanks Guys

That did the trick.
Paxman53 is offline   Reply With Quote
Old 05-02-2013, 12:06 PM   #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: 76,337
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Paxman53 View Post
Sorry that worked exactly as the gapabove did.
The code is a lot neater. Plus, it doesn't indent the first paragraph after the section break. So it's much more noticeable that it's the first paragraph that starts a new section.

Last edited by JSWolf; 05-02-2013 at 12:09 PM.
JSWolf is offline   Reply With Quote
Old 05-02-2013, 12:08 PM   #11
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: 76,337
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Paxman53 View Post
Plus a subsequent conversion by Calibre wipes this out completely and reverts the para to Calibre7.
Subesquent conversion? Why? All you are doing is making a rather big mess. If you are going from a different format to ePub, you want to convert. Then you want to go to Sigil it fix it up. But you do not want to convert again.

ePub > ePub = NO!
JSWolf is offline   Reply With Quote
Old 05-02-2013, 01:00 PM   #12
Paxman53
Connoisseur
Paxman53 began at the beginning.
 
Posts: 55
Karma: 10
Join Date: Jan 2011
Device: 7" Tablet - Aldiko Reader Premium
Quote:
Originally Posted by JSWolf View Post
Subesquent conversion? Why? All you are doing is making a rather big mess. If you are going from a different format to ePub, you want to convert. Then you want to go to Sigil it fix it up. But you do not want to convert again.

ePub > ePub = NO!
Sometimes it is necessary. I scan my books using AbbyyFineReader into Epub separate chapters. Then use Sigil to combine and set up. Then final conversion with Cover, Metadata and tidy up I have to use Calibre. I am not knowledgeable enough to do it all in Sigil.
Paxman53 is offline   Reply With Quote
Old 05-02-2013, 08:38 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,989
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Paxman53 View Post
Sometimes it is necessary. I scan my books using AbbyyFineReader into Epub separate chapters. Then use Sigil to combine and set up. Then final conversion with Cover, Metadata and tidy up I have to use Calibre. I am not knowledgeable enough to do it all in Sigil.
@Paxman53 - have you tried Book Polish after you've done with Sigil - it can insert the cover and metadata - I think without changing other 'components'.

Book Polish was added to the baseline Calibre within the last couple of months, its also a lot faster than doing ePUB to ePUB conversion .

BR
BetterRed is offline   Reply With Quote
Old 05-02-2013, 08:47 PM   #14
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: 76,337
Karma: 136006010
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by BetterRed View Post
@Paxman53 - have you tried Book Polish after you've done with Sigil - it can insert the cover and metadata - I think without changing other 'components'.

Book Polish was added to the baseline Calibre within the last couple of months, its also a lot faster than doing ePUB to ePUB conversion .

BR
The Modify ePub plugin can do that too without a conversion.
JSWolf is offline   Reply With Quote
Old 05-02-2013, 09:27 PM   #15
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,989
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JSWolf View Post
The Modify ePub plugin can do that too without a conversion.
True - but Polish is simpler, easier - hit 'P' on the book(s), a tad faster, and there's no need to install a plug-in.

Polish also does font sub-setting - which I don't think is currently available in Modify.

BTW - where is kiwidude - I hope he's enjoying himself somewhere.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Preference: Paragraph indent or a little paragraph spacing? 1611mac General Discussions 48 11-11-2011 01:43 AM
Break Document at Paragraph Style BatGrfx Writers' Corner 2 09-10-2011 03:46 PM
Paragraph separation afv011 ePub 2 11-05-2010 08:08 PM
Paragraph spacing jhempel24 Calibre 5 08-24-2010 01:14 AM
What is so unusual about this paragraph? Madam Broshkina Lounge 11 04-24-2008 04:04 PM


All times are GMT -4. The time now is 07:13 PM.


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