![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
what to do when chapter headers are images ?s
I have a couple of books where the chapters headers, though marked up ok with <h tags , are just images - no text.
what do other folks do to get a workable TOC in such cases ? I felt sure there'd be threads on this but my search said not :-( my quick fix was to add 1 character of text e.g.. <h ....img .....>-</h which gave me visible "-" entries in the TOC and did not greatly disturb the book layout. are there alternative / better solutions ? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
If they're in <hx> tags then you can just tell Calibre to use the tag itself. Just click the magic wand next to the xpath box in structure detection and type 'hx' in the first box, where 'x' is whatever heading number the images are using.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
OK but if calibre sees no text - how does it populate the TOC panel for the calibre viewer ?
|
![]() |
![]() |
![]() |
#4 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 541
Karma: 1152752
Join Date: Aug 2010
Location: Evansville, IN, USA
Device: Samsung Galaxy Tab 4 Nook & Samsung Galaxy Tab S 10.5
|
Quote:
For example, if the image is of some big, fancy script that says, "Big Fancy Script Chapter Header", you'd add that as your title. <h1 class="chapterheaderclass" title="Big Fancy Script Chapter Header"> This would give you your image as that chapter header and the text within the title attribute will display in toc. This is also useful for books where the chapter header is all caps, like "CHAPTER ONE", but you'd rather have the toc display something like "Chapter One". I believe this is what you were asking for and I hope it helps. Sincerely, - Byron |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
thanks, I was not aware of the title tag possibilities
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() Posts: 55
Karma: 54
Join Date: Apr 2011
Location: NYC
Device: Many
|
Exactly what I was looking for. Thanks.
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 06:35 AM |
Hiding headers in images | Paddlin | ePub | 9 | 01-06-2011 02:40 PM |
"Chapter Titles & Images are not centered" | Ephraim | Sigil | 0 | 12-20-2010 05:08 PM |
Next Chapter skips to End in last chapter? | JoGoCo | Kobo Reader | 5 | 07-13-2010 09:23 PM |
K2 v K1: Chapter-to-chapter missing from some books? | Starhawk | Amazon Kindle | 4 | 03-10-2009 06:27 PM |