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 10-17-2009, 04:32 PM   #1
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Image maps as Chapter Headings?

Is there a way to use images for chapters, i.e. a bitmap that says "CHAPTER ONE", etc.., but still have the text "CHAPTER ONE" show up in the Table of Contents?

I can set the image to h3, but the TOC (of course) is blank. If I edit the TOC, it replaces the image. Is there anyway to have both, but not have the text show up? I tried using alt text in the image, but that didn't work.
kjk is offline   Reply With Quote
Old 10-17-2009, 05:03 PM   #2
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 9,917
Karma: 27723999
Join Date: Oct 2007
Location: Minnesota
Device: HDX 8.9, AuraHD, Nook HD+, Kindle 2,3,T , Opus, Nexus7, iPhone5, etc
What I did was go ahead and create the book in Sigil with the 'blank' TOC entries and then unzip the epub and manually edit the toc.ncx to add the labels.

Example from a book I just worked on (the red text was what I added later the rest came out of the epub from Sigil)...
Quote:
<navPoint id="navPoint-3" playOrder="3">
<navLabel>
<text>Chapter One</text>
</navLabel>
<content src="text/content008.xhtml"/>
</navPoint>

Last edited by AnemicOak; 10-17-2009 at 05:09 PM.
AnemicOak is offline   Reply With Quote
Old 10-17-2009, 05:29 PM   #3
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Quote:
Originally Posted by AnemicOak View Post
What I did was go ahead and create the book in Sigil with the 'blank' TOC entries and then unzip the epub and manually edit the toc.ncx to add the labels.

Example from a book I just worked on (the red text was what I added later the rest came out of the epub from Sigil)...
I'll try that, thanks!
kjk is offline   Reply With Quote
Old 10-17-2009, 05:48 PM   #4
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
You can put anything between the heading tags to make Sigil link to it in the NCX, and set the "title" attribute on the <h#> element to get the text.

So, "<h1 title='Chapter 1'><img ... ></h1>". The TOC would link to that heading element (and by extension, the images inside it) and the TOC entry would say "Chapter 1".
Valloric is offline   Reply With Quote
Old 10-17-2009, 05:54 PM   #5
AnemicOak
Bookaholic
AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.AnemicOak ought to be getting tired of karma fortunes by now.
 
AnemicOak's Avatar
 
Posts: 9,917
Karma: 27723999
Join Date: Oct 2007
Location: Minnesota
Device: HDX 8.9, AuraHD, Nook HD+, Kindle 2,3,T , Opus, Nexus7, iPhone5, etc
Quote:
Originally Posted by Valloric View Post
You can put anything between the heading tags to make Sigil link to it in the NCX, and set the "title" attribute on the <h#> element to get the text.

So, "<h1 title='Chapter 1'><img ... ></h1>". The TOC would link to that heading element (and by extension, the images inside it) and the TOC entry would say "Chapter 1".
Good to know.
AnemicOak is offline   Reply With Quote
Old 10-17-2009, 05:59 PM   #6
kjk
.
kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.kjk ought to be getting tired of karma fortunes by now.
 
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
Quote:
Originally Posted by Valloric View Post
You can put anything between the heading tags to make Sigil link to it in the NCX, and set the "title" attribute on the <h#> element to get the text.

So, "<h1 title='Chapter 1'><img ... ></h1>". The TOC would link to that heading element (and by extension, the images inside it) and the TOC entry would say "Chapter 1".
awesome, thanks Valloric!
kjk is offline   Reply With Quote
Old 10-17-2009, 06:27 PM   #7
Valloric
Created Sigil, FlightCrew
Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.Valloric ought to be getting tired of karma fortunes by now.
 
Valloric's Avatar
 
Posts: 1,978
Karma: 350515
Join Date: Feb 2008
Device: Sony Reader PRS 505
I really need to create a FAQ wiki page... People need to be able to see how some commonly encountered problems are solved.
Valloric 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
Chapter Head Text Over Image theducks ePub 10 09-03-2010 03:32 PM
Repeated Chapter Headings in Kobo Table of Contents capsolo Sigil 5 06-20-2010 03:09 AM
Image Maps in ePub NewBabyProd ePub 10 06-08-2010 11:28 AM
Detect chapter headings with capitalized words fiendmish Calibre 6 05-31-2010 10:45 AM
Managing HTML Link Behavior, From TOC to Chapter Headings FlooseMan Dave Calibre 1 03-31-2010 11:55 PM


All times are GMT -4. The time now is 02:59 AM.


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