View Single Post
Old 01-29-2016, 02:58 AM   #20
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

This plugin is so useful that I have a proposal. It's about allowing captions.

When one adds images to one EPUB, many of them have captions. and it has always been tricky to find the right balance and be confident that the caption will be included with the image in the displayed page.

The current situation is not a happy one: some trust the engine (height: auto, width:auto), some trust the CSS (max-width... or page-break-inside: avoid), some others make deep calculations (width:63.5%; ) other insert the image and its caption in a two cells frame, what is sure is that everybody is praying God.

If a svg solution could be found, there would be a good chance that the bundle (image + caption) would stay together. That would be a big step for humanity.

I tried to fiddle a little with the code. One should probably add something like that somewhere, maybe by tweaking the viewbox to add a kind of lower stripe.

Code:
<text text-anchor="middle" x="50%" y="40" style="fill:black; font-size:25px; font-family:serif;font-style:italic;">Caption</text>
Could some expert try to find a solution of this kind? Once we have the code, it should not be too complicated to go from one standard svg image to another with caption.

Last edited by roger64; 01-29-2016 at 08:05 AM. Reason: stripe
roger64 is offline   Reply With Quote