Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 02-21-2011, 02:49 AM   #1
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
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 ?
cybmole is offline   Reply With Quote
Old 02-21-2011, 03:24 AM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
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.
ldolse is offline   Reply With Quote
Advert
Old 02-21-2011, 03:27 AM   #3
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
Quote:
Originally Posted by ldolse View Post
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.
OK but if calibre sees no text - how does it populate the TOC panel for the calibre viewer ?
cybmole is offline   Reply With Quote
Old 02-21-2011, 07:13 AM   #4
bfollowell
Fanatic
bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.bfollowell ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by cybmole View Post
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 ?
As part of the hx tag, add title and then whatever text you want displayed in the toc.

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
bfollowell is offline   Reply With Quote
Old 02-21-2011, 08:17 AM   #5
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
thanks, I was not aware of the title tag possibilities
cybmole is offline   Reply With Quote
Advert
Old 04-06-2011, 03:02 PM   #6
noteon
Enthusiast
noteon is on a distinguished road
 
Posts: 41
Karma: 54
Join Date: Apr 2011
Location: NYC
Device: Many
Exactly what I was looking for. Thanks.
noteon is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:05 PM.


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