Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-20-2012, 10:08 PM   #1
sly_skittle
Junior Member
sly_skittle began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2012
Device: none
blank line

I was just wondering if anyone knew how to insert blank lines into a document (e.g. a blank line between the chapter title and the start of the text).
They stay up in sigil but when I look at it in adobe reader they're gone. They also disappear in calibre too.
Any help would be great!
sly_skittle is offline   Reply With Quote
Old 03-20-2012, 10:12 PM   #2
Griffel
Junior Member
Griffel began at the beginning.
 
Griffel's Avatar
 
Posts: 4
Karma: 10
Join Date: Mar 2012
Location: Königswinter, Germany
Device: Amazon Kindle
Try <b />.
Griffel is offline   Reply With Quote
Advert
Old 03-20-2012, 10:31 PM   #3
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: 64,164
Karma: 104145061
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
In the XML...

Code:
<h2 class="chapter">Chapter One</h2>
In the CSS...

Code:
.chapter {
margin-top: 25px;
margin-bottom: 25px;
text-align: center
{
There you go, space at the top of the chapter heading and space at the bottom with the chapter heading centered.
JSWolf is offline   Reply With Quote
Old 03-20-2012, 10:51 PM   #4
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: 24,668
Karma: 169195876
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I like to use a CSS method similar to what JSWolf suggested. It seems a lot cleaner to me than having empty p, div tags cluttering things up or lot's of extra br's laying around. It would probably be part of my default "first paragraph of a chapter" class.

Code:
.first-para {
  margin-top: 25px;
  text-indent: 0;
}
DiapDealer is online now   Reply With Quote
Old 03-20-2012, 10:57 PM   #5
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: 26,787
Karma: 41849005
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Griffel View Post
Try <b />.
That would be a <br />

BR may not exist naked but must exist within a P, DIV or H# tag pair.

Also many rendering programs will ignore when repeated: <br /> <br />

There must be a printing character between.
Wolf man's margin solution is more elegant in most cases.

<h2 class="chapter">Chapter 100&nbsp;<br />A Century of Great Examples</h2>

for a 2 line chapter title that will appear as a single TOC entry in a Sigil generated TOC
theducks is offline   Reply With Quote
Advert
Old 03-21-2012, 11:11 AM   #6
PaulPosition
Enthusiast
PaulPosition began at the beginning.
 
PaulPosition's Avatar
 
Posts: 31
Karma: 16
Join Date: Feb 2012
Location: Montréal
Device: Sony PRS-T1
Use CSS, as suggested above the above.

If you go about adding an empty line here, you'll have to add an empty line at every chapter. And when you decide you'd rather have two empty lines, you'll have to add another empty line at each and every chapter. Etc.

In "theatre" literacy, it would be the difference between :

"I am Michael, and you-the-public can hear I'm talking softly now that I turn around to face my beloved and tell here «I love you»"

And

MICHAEL (Talking softly)
- I love you.
PaulPosition is offline   Reply With Quote
Old 03-21-2012, 11:56 AM   #7
dwig
Wizard
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
Quote:
Originally Posted by JSWolf View Post
In the XML...

Code:
<h2 class="chapter">Chapter One</h2>
In the CSS...

Code:
.chapter {
margin-top: 25px;
margin-bottom: 25px;
text-align: center
{
There you go, space at the top of the chapter heading and space at the bottom with the chapter heading centered.
If you don't use H2 for anything else in the document you could simplify the editing by not editing every chapter heading (omit the added class="chapter") and change the CSS style to:

Code:
h2 {
margin-top: 25px;
margin-bottom: 25px;
text-align: center
{
Personally, I prefer to spec the margin spacing relative to the current base font size by using em as the units.

Also, I prefer indented paragraphs in the body of the text with the first paragraph not indented. Since I have to style the first paragraph anyway, to change the indent, I use DiapDealer's method of adding space before the first paragraph instead of after the H2 heading, again prefering em units.
dwig is offline   Reply With Quote
Old 03-21-2012, 05:15 PM   #8
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: 64,164
Karma: 104145061
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
I prefer fixed spacing in those sort of situations. A section break space gets 30px from me. That way they don't change based on the font size. They stay the same. And they look better at the fixed sizes I've chosen.
JSWolf is offline   Reply With Quote
Old 03-21-2012, 05:27 PM   #9
PaulPosition
Enthusiast
PaulPosition began at the beginning.
 
PaulPosition's Avatar
 
Posts: 31
Karma: 16
Join Date: Feb 2012
Location: Montréal
Device: Sony PRS-T1
30px will look much different on an eInk device (~167ppi) than it will on, say, the new iPad.
PaulPosition is offline   Reply With Quote
Old 03-21-2012, 05:45 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: 64,164
Karma: 104145061
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by PaulPosition View Post
30px will look much different on an eInk device (~167ppi) than it will on, say, the new iPad.
30px looks fine on both my 650 and the iPad.
JSWolf is offline   Reply With Quote
Old 03-21-2012, 08:50 PM   #11
sly_skittle
Junior Member
sly_skittle began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2012
Device: none
Thanks for all the help.

I'm completely new to CSS so I couldn't really understand how to change the styles so I just went with manually adding the gaps after the chapter headings:
<p>&nbsp;</p>.
I tried using the <br /> but when I opened the file in calibre it didn't convert.

Does anyone know any good sites/guides that could help me get started with CSS coding? It's be great to understand it a little bit.
sly_skittle is offline   Reply With Quote
Old 03-21-2012, 09:13 PM   #12
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: 64,164
Karma: 104145061
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Give http://www.w3.org/Style/Examples/011/firstcss.en.html a try.
JSWolf is offline   Reply With Quote
Old 03-21-2012, 09:38 PM   #13
sly_skittle
Junior Member
sly_skittle began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Mar 2012
Device: none
Quote:
Originally Posted by JSWolf View Post
thanks very much!
sly_skittle is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintain Blank-Line-Scene-Breaks while converting? Uluhara Conversion 1 06-18-2011 05:54 PM
Blank line in code Jellby Feedback 16 05-18-2011 11:42 AM
get rid of blank line html code Blurr Calibre 4 12-28-2009 10:20 PM
Sigil 1.6 - deleting blank line very slow lol Sigil 2 12-24-2009 12:54 PM
Random differences in blank line conversion in ePub HarryT Calibre 14 08-13-2009 04:31 AM


All times are GMT -4. The time now is 04:21 PM.


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