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 02-10-2013, 05:28 PM   #1
Lori Reeser
Member
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: 24
Karma: 475040
Join Date: Jul 2012
Location: Silicon Valley (Sunnyvale, CA)
Device: nook color
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, 05:42 PM   #2
theducks
Grand Sorcerer
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: 14,618
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
Old 02-10-2013, 07:02 PM   #3
Lori Reeser
Member
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: 24
Karma: 475040
Join Date: Jul 2012
Location: Silicon Valley (Sunnyvale, CA)
Device: nook color
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, 04: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: 6,142
Karma: 4792399
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, 09:38 AM   #5
theducks
Grand Sorcerer
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: 14,618
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
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
Old 02-12-2013, 11:29 AM   #6
MickiTee
Zealot
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: 110
Karma: 543596
Join Date: Jun 2012
Location: London, UK
Device: Sony PRS-505 & T1
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, 03:35 PM   #7
Lori Reeser
Member
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: 24
Karma: 475040
Join Date: Jul 2012
Location: Silicon Valley (Sunnyvale, CA)
Device: nook color
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, 07: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: 9,605
Karma: 5071748
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
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 online now   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
Line won't break automatically in iBooks eriso ePub 9 01-23-2013 09:02 AM
Correcting for a missing line break Tango Mike Sigil 31 07-28-2012 05:30 AM
how to insert break-line schuster Recipes 1 05-24-2011 03:19 PM
Yet another PDF line break question heddhunter Calibre 7 01-18-2011 02:41 PM
PDF 2 LRF, line break issue ^_Pepe_^ Calibre 1 12-03-2009 06:43 AM


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


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