Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2013, 06:28 PM   #1
Lori Reeser
Enthusiast
Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.
 
Lori Reeser's Avatar
 
Posts: 44
Karma: 475040
Join Date: Jul 2012
Location: Silicon Valley (Sunnyvale, CA)
Device: Lenovo Tab M10
Question Line break within Headers?

I would like to have my chapters have a number and a title (Chapter 14 Devon Walks Away) which shows up in the TOC (hypertext and HTML) AND I would like to have these on two separate lines:
Chapter 14
Devon Walks Away

Can I do it? How? I am a complete newbie to HTML and REGEX. I don't even know how to look this up.

Thanks!
Lori
Lori Reeser is offline   Reply With Quote
Old 02-10-2013, 06:42 PM   #2
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,444
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 Lori Reeser View Post
I would like to have my chapters have a number and a title (Chapter 14 Devon Walks Away) which shows up in the TOC (hypertext and HTML) AND I would like to have these on two separate lines:
Chapter 14
Devon Walks Away

Can I do it? How? I am a complete newbie to HTML and REGEX. I don't even know how to look this up.

Thanks!
Lori
Inside the H tags
Code:
First part<br />second Part
theducks is online now   Reply With Quote
Advert
Old 02-10-2013, 08:02 PM   #3
Lori Reeser
Enthusiast
Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.
 
Lori Reeser's Avatar
 
Posts: 44
Karma: 475040
Join Date: Jul 2012
Location: Silicon Valley (Sunnyvale, CA)
Device: Lenovo Tab M10
Thanks again!. It's a lot easier to ask the experts. One of these days I _may_ learn this stuff, but right now I just want to read.

Lori
Lori Reeser is offline   Reply With Quote
Old 02-11-2013, 05:15 AM   #4
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
And if you want some different formatting, like "Chapter 14" in italics, you could have something like:

Code:
<h2><span class="name">Chapter</span>
<span class="number">14</span>
<span class="title">Devon Walks Away</span></h2>
Now you can apply your preferred style to span.name, span.number and span.title (and with span.title { display: block; } you can do without the <br/>).
Jellby is offline   Reply With Quote
Old 02-11-2013, 10:38 AM   #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: 30,444
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 Jellby View Post
And if you want some different formatting, like "Chapter 14" in italics, you could have something like:

Now you can apply your preferred style to span.name, span.number and span.title (and with span.title { display: block; } you can do without the <br/>).
Way
theducks is online now   Reply With Quote
Advert
Old 02-12-2013, 12:29 PM   #6
MickiTee
Guru
MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.MickiTee ought to be getting tired of karma fortunes by now.
 
MickiTee's Avatar
 
Posts: 847
Karma: 3976266
Join Date: Jun 2012
Location: London, UK
Device: Sony PRS-505, Pocketbook TL3, TL4, TL5
Lori

You could also use <SHIFT>+<ENTER> in Book View to add a Manual Line Break so avoiding typing any HTML code.
MickiTee is offline   Reply With Quote
Old 02-15-2013, 04:35 PM   #7
Lori Reeser
Enthusiast
Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.Lori Reeser ought to be getting tired of karma fortunes by now.
 
Lori Reeser's Avatar
 
Posts: 44
Karma: 475040
Join Date: Jul 2012
Location: Silicon Valley (Sunnyvale, CA)
Device: Lenovo Tab M10
Wink

Using <br /> is working fine, especially since the search function always shows the code page. I didn't think about trying Shift-Enter, so I might do that sometime.

IF I ever decide to learn more about coding, I'll keep the other suggestion in mine. It looks very elegant . . . and way too sophisticated for me. (Of course I have lived in Silicon Valley since before it WAS Silicon Valley and have never learned, but never say never.)
Lori Reeser is offline   Reply With Quote
Old 02-15-2013, 08:27 PM   #8
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Quote:
Originally Posted by Lori Reeser View Post
Using <br /> is working fine, especially since the search function always shows the code page. I didn't think about trying Shift-Enter, so I might do that sometime.

IF I ever decide to learn more about coding, I'll keep the other suggestion in mine. It looks very elegant . . . and way too sophisticated for me. (Of course I have lived in Silicon Valley since before it WAS Silicon Valley and have never learned, but never say never.)
The <br /> is actually quite elegant in that it is all one paragraph and goes over multiple lines in the document while remaining as one line in the TOC.

Dale
DaleDe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Line won't break automatically in iBooks eriso ePub 9 01-23-2013 10:02 AM
Correcting for a missing line break Tango Mike Sigil 31 07-28-2012 06:30 AM
how to insert break-line schuster Recipes 1 05-24-2011 04:19 PM
Yet another PDF line break question heddhunter Calibre 7 01-18-2011 03:41 PM
PDF 2 LRF, line break issue ^_Pepe_^ Calibre 1 12-03-2009 07:43 AM


All times are GMT -4. The time now is 03:55 PM.


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