Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 08-13-2015, 02:28 PM   #1
Tarana
Wizard
Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.
 
Tarana's Avatar
 
Posts: 4,030
Karma: 38840460
Join Date: Sep 2012
Location: Minneapolis
Device: PWSE, Voyage, K3, HDX, KBasic 7 & 8, Nook Glo3, Echos, Nanos
How to block indent a paragraph? Center a seperator?

I love Calibre Editor, but I'm not very good at some of this specialty stuff. Can someone tell me, step by step, how to block indent a paragraph? This is used, for instance, when someone is reading a letter - to indicate that this is the letter text.

I'm not picky, even if just the entire left side is indented is enough. Doing it line by line just screws it up depending on the ereader and size of type.

Another thing is how to center stars to indicate a change to a new location. For example, centering the stars that separate text.

here is text here. It just goes on and on to make an example of this text.

* * *

here is text here. It just goes on and on to make an example of this text.
Tarana is offline   Reply With Quote
Old 08-13-2015, 03:09 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
EPub_Tutorial#Scene_changes
EPub_Tutorial#Letters

Last edited by eschwartz; 08-13-2015 at 03:15 PM. Reason: add direct links to relevant sections
eschwartz is offline   Reply With Quote
Advert
Old 08-14-2015, 05:35 AM   #3
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Put <blockquote>...</blockquote> around the letter, and style the blockquote however you wish, e.g. "margin:1em".

As for centered stars, use a style with "text-align:center" for the para.
Phssthpok is offline   Reply With Quote
Old 08-14-2015, 06:13 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: 79,023
Karma: 144284074
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 eschwartz View Post
The Wiki entry for how to format a letter (while not wrong) is not the best way to do it. The best way to do it is using a <blockquote>.
JSWolf is offline   Reply With Quote
Old 08-14-2015, 06:14 AM   #5
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,023
Karma: 144284074
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 Phssthpok View Post
Put <blockquote>...</blockquote> around the letter, and style the blockquote however you wish, e.g. "margin:1em".
Or you could just use the defaults for a <blockquote>.
JSWolf is offline   Reply With Quote
Advert
Old 08-14-2015, 01:36 PM   #6
Tarana
Wizard
Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.Tarana ought to be getting tired of karma fortunes by now.
 
Tarana's Avatar
 
Posts: 4,030
Karma: 38840460
Join Date: Sep 2012
Location: Minneapolis
Device: PWSE, Voyage, K3, HDX, KBasic 7 & 8, Nook Glo3, Echos, Nanos
Thanks all! I used <blockquote> </blockquote> and that worked perfectly.

From http://www.w3.org, I found a centering technique.
For center allignment, I used:
<DIV align="Center">
<P>...text in first paragraph...
<P>...text in second paragraph...
<P>...text in third paragraph...
</DIV>

I am trying to learn how to use the style sheets, but it's not really coming together. Spending hours on it and no further ahead. That's why I use Calibre instead of Sigil in the first place.

Thanks though, I do appreciate all of your help including you EScwartz!
Tarana is offline   Reply With Quote
Old 08-14-2015, 01:56 PM   #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,891
Karma: 60358908
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 Tarana View Post
Thanks all! I used <blockquote> </blockquote> and that worked perfectly.

From http://www.w3.org, I found a centering technique.
For center allignment, I used:
<DIV align="Center">
<P>...text in first paragraph...
<P>...text in second paragraph...
<P>...text in third paragraph...
</DIV>

I am trying to learn how to use the style sheets, but it's not really coming together. Spending hours on it and no further ahead. That's why I use Calibre instead of Sigil in the first place.

Thanks though, I do appreciate all of your help including you EScwartz!
In this, they are no different. HTML/CSS has the same rules

You need to remember to link the stylesheets to the pages

Same In both: Select (1 or more) section files: Right click: Link stylesheets: Select sheets to use (Note any previous linked sheets on those files will be unlinked.
theducks is online now   Reply With Quote
Old 08-14-2015, 03:11 PM   #8
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,165
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Tarana View Post
Thanks all! I used <blockquote> </blockquote> and that worked perfectly.

From http://www.w3.org, I found a centering technique.
For center allignment, I used:
<DIV align="Center">
<P>...text in first paragraph...
<P>...text in second paragraph...
<P>...text in third paragraph...
</DIV>

I am trying to learn how to use the style sheets, but it's not really coming together. Spending hours on it and no further ahead. That's why I use Calibre instead of Sigil in the first place.

Thanks though, I do appreciate all of your help including you EScwartz!
For your scene breaks with the nook use this:
Code:
<div class="sb">***</div>
in your css add this:
Code:
.sb {
  display: block;
  margin-bottom: 8px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  text-align: center;
  text-indent: 0;
}
With the nook you need to tell it text-indent: 0 in the css or it will add an indent.

Note you can use any name you wish I just used sb as an example, also you can adjust the top and bottom margins to your preference.

bernie
gbm is offline   Reply With Quote
Old 08-14-2015, 03:41 PM   #9
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,023
Karma: 144284074
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 gbm View Post
For your scene breaks with the nook use this:
Code:
<div class="sb">***</div>
in your css add this:
Code:
.sb {
  display: block;
  margin-bottom: 8px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  text-align: center;
  text-indent: 0;
}
With the nook you need to tell it text-indent: 0 in the css or it will add an indent.

Note you can use any name you wish I just used sb as an example, also you can adjust the top and bottom margins to your preference.

bernie
Sorry, but I have to disagree here.

Not just for nook as this works in all ePub. If you prefer to use asterisks still use a space between them.
Code:
<p class="sb">● ● ●</p>
in your css add this:
Code:
.sb {
text-align: center
margin-top: .8em;
margin-bottom: .8em;
text-indent: 0
}
You need to add top space AND bottom space. Also, keep the CSS minimized. Don't put in unnecessary code. All those margins with a value of 0 don't normally need to be there and you don't need the display: block. Plus, don't use absolute spacing such as px. em is best to use.
JSWolf is offline   Reply With Quote
Old 08-14-2015, 03:55 PM   #10
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,165
Karma: 8800000
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by JSWolf View Post
Sorry, but I have to disagree here.

Not just for nook as this works in all ePub. If you prefer to use asterisks still use a space between them.
Code:
<p class="sb">● ● ●</p>
in your css add this:
Code:
.sb {
text-align: center
margin-top: .8em;
margin-bottom: .8em;
text-indent: 0
}
You need to add top space AND bottom space. Also, keep the CSS minimized. Don't put in unnecessary code. All those margins with a value of 0 don't normally need to be there and you don't need the display: block. Plus, don't use absolute spacing such as px. em is best to use.
Nook has a bug in it, to you have to put code in the css to work around it. You need all of those margins in nook plus the text-indent. Read and you will see that I was talking about the nook.

And everybody does not have your preferences on scene breaks.

bernie
gbm is offline   Reply With Quote
Old 08-23-2015, 09:54 AM   #11
Phssthpok
Age improves with wine.
Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.Phssthpok knows how to set a laser printer to stun.
 
Posts: 571
Karma: 95229
Join Date: Nov 2014
Device: Kindle Oasis, Kobo Libra II
Quote:
Originally Posted by Tarana View Post
Thanks all! I used <blockquote> </blockquote> and that worked perfectly.

From http://www.w3.org, I found a centering technique.
For center allignment, I used:
<DIV align="Center">
<P>...text in first paragraph...
<P>...text in second paragraph...
<P>...text in third paragraph...
</DIV>
It's best to keep things XHTML-compliant, which means use lowercase for tags (<div> and <p>, not <DIV> or <P>) and close all tags properly (so <p> needs a closing </p>). Tags like <br> and <hr> with no content should either be written <br></br> and <hr></hr>, or (better) <br/> and <hr/>.

IIRC, "align" attributes are deprecated these days, so it's better to use <div class="centered"> and then have a CSS rule:

.centered { text-align: center; }

...and then you can also add any other formatting you want for "centered" divs inside the braces {...}
Phssthpok is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set paragraph indent? pargoo Sigil 17 11-09-2013 06:38 PM
Selective paragraph indent Leonatus Writer2ePub 8 10-31-2013 04:22 PM
HTML- Paragraph indent w/ no spaces? Help please? Joseph Picard Workshop 36 07-20-2012 12:35 PM
Preference: Paragraph indent or a little paragraph spacing? 1611mac General Discussions 48 11-11-2011 12:43 AM
Failure to block-indent PML \t sections fogrider Calibre 1 12-22-2010 01:32 PM


All times are GMT -4. The time now is 11:20 AM.


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