10-17-2009, 04:32 PM | #1 |
.
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. |
10-17-2009, 05:03 PM | #2 | |
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
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:
Last edited by AnemicOak; 10-17-2009 at 05:09 PM. |
|
Advert | |
|
10-17-2009, 05:29 PM | #3 | |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
Quote:
|
|
10-17-2009, 05:48 PM | #4 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
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". |
10-17-2009, 05:54 PM | #5 | |
Bookaholic
Posts: 14,391
Karma: 54969924
Join Date: Oct 2007
Location: Minnesota
Device: iPad Mini 4, AuraHD, iPhone XR +
|
Quote:
|
|
Advert | |
|
10-17-2009, 05:59 PM | #6 | |
.
Posts: 3,408
Karma: 5647231
Join Date: Oct 2008
Device: never enough
|
Quote:
|
|
10-17-2009, 06:27 PM | #7 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
I really need to create a FAQ wiki page... People need to be able to see how some commonly encountered problems are solved.
|
Thread Tools | Search this Thread |
|
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 |