View Single Post
Old 04-14-2018, 01:53 AM   #8
stumped
Wizard
stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.stumped ought to be getting tired of karma fortunes by now.
 
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
Quote:
Originally Posted by jackie_w View Post
If this was my book I'd definitely remove the images because first-letter images are useless if you use text-to-speech to 'read' books.

The approach I'd take would be:
1. Hope that the creator had used a useful naming convention for each image, e.g. first-letter-A.jpg, first-letter-B.jpg, etc. Then I'd construct a regex to cycle through them, find/replace one at a time (not replace all).

2. If that wasn't possible I'd still remove the images, but manually, the hard way.

3. For your compromise option, css something like the following might be acceptable:
Code:
img.drop {height:1em; width:auto}
trying that compromise now - i see that I had previously zapped the dropcap class stylings i.e. left them empty..
no joy. see thumbnail


( aha but that was a good clue- there is another class in the code AFTER The IMG SRC bit, and putting height 1em in that class does work, I just now need to fix the image colour if possible. if that is an impae property then id have to do the full manual replace I guess- can't override it

<span class="dropcaps1"><img alt="" src="../Images/Morg_9780345545657_epub_L05.jpg" class="calibre4"/></span>

so setting class calibre 4 to
height: 1em;
width: 1em
made things much better - in Sigil on PC anyway - thanks
thumbnail shows how it was before doing that.
final step is send a revised copy to my reading tablet to see if moon+ is also well behaved with the change
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	165
Size:	4.1 KB
ID:	163476  

Last edited by stumped; 04-14-2018 at 02:01 AM.
stumped is offline   Reply With Quote