Quote:
Originally Posted by RbnJrg
But of this way you'll need to write the width and height for each image and that is what you wanted to avoid (style=" height: 20pt; width: calc(20pt*73.275/17.408)) Or am I wrong? 
|
Yes indeed... that way I just avoid making the calculation myself

Well the embedded SVG markup isn’t that bad as I can process it with regex, but yeah still... using calc seems risky.
I guess there’s simply no good solution here, as I really need a single ePub that works on both Kobo and Google Books. I’ll test the code with calc more extensively, else I’ll just make the calculations all the time