Quote:
Originally Posted by DNSB
I recently used the Access-Aide plugin to do pretty much what you mentioned about chapter titles. I set the alt text for each chapter title image to the chapter name/number visible in the thumbnail and then ran a regex to change the p to h3 and add the alt text to the title="" for generating the ToC. Still a bit of manual effort but faster than opening each image individually.
Which actually brings me to a nit with the Access-Aide plugin in that if an image is used 40 times in an ePub, it shows every instance. Images used for scene breaks for instance.
|
Yes, that was done by design because the alt text for each can be different. In fact, when Access Aide was first released I mapped each image to the same alt text value, and people complained that the same image was used at the start of multiple chapters and the alt text therefore had to be different for each use of that image.
Separator images might be better if you set an initial alt value in advance using regex, then tweak only the ones you want. Or set that image's internal metadata using a good image editor and the metadata you set will initially be used to set an alt value.
But if this does what you and theducks want, then I will extract that bit into a new plugin and we can tweak it as needed.