View Single Post
Old 06-15-2014, 02:19 PM   #27
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by MikeWV View Post
That's not good but's it's good to know. I though the problem was either attributable to my coding or some idiosyncrasy of my Kobo.
Well, if you open up the SVG, you can see the internal measurements of your large table is:

Code:
width="577.20001"
height="789.90002"
To my knowledge, if you just plop the SVG into your ebook, the device will render it at a 1:1 ratio (~577px x ~780px).

If your device does not have enough pixels for that width/height, the image can flow off the edges of the device (just like your typical too large image, that isn't resized via CSS).

I attached a new EPUB with the typical "Cover" SVG Wrapper that many use.

I wrapped it around the table + tweaked the width/height, so now it should resize to fill the entire width/height of the device, while maintaining a proper ratio. (Tested it on my Nook, it works perfect).

Quote:
<svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 577 789" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink">
<image height="789" width="577" xlink:href="../Images/13t04_table4_r2v_mat_full.svg"></image>
</svg>
Again, I haven't done extensive testing, and from a quick feed into Kindle Previewer, it did not look like the Kindles liked the code. (Some of the text got mangled).

Side Note: A lot of this talk got me thinking about my SVG Tutorial I had laid the groundwork on... I looked in my notes, and I haven't touched it since February. I should get back on doing thorough research/testing/writing.
Attached Files
File Type: epub TestSVGTableFonts[06.15.2014].epub (340.5 KB, 296 views)

Last edited by Tex2002ans; 06-15-2014 at 02:23 PM.
Tex2002ans is offline   Reply With Quote