View Single Post
Old 03-02-2011, 11:55 AM   #29
theducks
Well trained by Cats
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: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by cybmole View Post
i'm struggling to follow that code. as both hopen & \g are new to me.

but you are replacing the img alt tag with a title tag, I think ?

i picked out the chapter number with a regex and inserted it as text, in a small font, before the image. toc was OK then. not ideal but I can live with it.
so my code became
Code:
<h2 class="calibre10" id="heading_id_2">1 &nbsp; &nbsp; &nbsp;<img alt="[Chapter 1]" class="calibre11" src="../Images/001.jpg" /></h2>
and I set font size in calibre10 style to 0.5em

is img alt not supported in epub ?
Image Alt is for non-visual displays (TTS)
<H2 title="[Chapter 1]" ...
gets that label into the TOC that uses headings (Sigil )
theducks is offline   Reply With Quote