Quote:
Originally Posted by WillAdams
|
Very nice SVGs.
Here is even a super simple SVG showing a parabola which can flip back/forth when you push a button:
http://www.infogridpacific.com/blog/...014.html#h2358
Not supported in EPUB OR MOBI (because they ban SVG with animation).
http://www.idpf.org/epub/30/spec/epu...-restrictions:
Quote:
The [SVG] Animation Elements and Animation event attributes must not occur.
|
Amazon Publishing Guidelines:
Quote:
3.10.7 HTML Guideline #7: Avoid Using Scripting
Scripting is not supported. All scripts are stripped from the source during conversion. SVG with animation
is not supported.
|
According to Amazon Publishing Guidelines, these SVG tags are supported:
Quote:
<circle>
<clipPath>
<defs>
<ellipse>
<feBlend>
<feColorMatrix>
<feComponentTransfer>
<feComposite>
<feConvolveMatrix>
<feDiffuseLighting>
<feDisplacementMap>
<feDistantLight>
<feFlood>
<feFuncA>
<feFuncB>
<feFuncG>
<feFuncR>
<feGaussianBlur>
<feMerge>
<feMergeNode>
<feMorphology>
<feOffset>
<fePointLight>
<feSpecularLighting>
<feSpotLight>
<feTile>
<feTurbulence>
<Filter>
<font-face>
<font-face-name>
<font-face-src>
<line>
<linearGradient>
<marker>
<mask>
<metadata>
<path>
<pattern>
<polygon>
<polyline>
<radialGradient>
<rect>
<stop>
<style>
<svg>
<symbol>
<text>
<textPath>
<tref>
<tspan>
<use>
|
Although I do not even know HOW this would translate to the older MOBIs (I bet not at all).
Side Note: I should really get back to working on my SVG tutorial/research!
Quote:
Originally Posted by Toxaris
If it runs with JavaScript, you can try it with ePUB3. Be aware that support on devices is strongly limited and differs strongly per device/application.
Only a subset of SVG is supported in the specs of ePUB and not all readers honor even this subset. IIRC in ePUB3 the full set *should* be supported, but read the first paragraph again.
|
Doing very complex things with SVG is already flaky/unofficial, and adding javascript on top of that... ugh.
This MAY be possible in an EPUB dedicated towards iBooks, because they like to support all of this unofficial javascript and their own brand of EPUB3, but as the article linked in the first post says... iBooks CANNOT be trusted (even if you do happen to hack something together, they will "patch" and most likely break support).
An EPUB3 reader like AZARDI would probably be able to handle an SVG like this fine.... but the amount of people using that as a reader, close to nil.
Long story short... pain and misery.
Although I am quite interested in all things SVG, so keep us in the loop.
Best bet would probably be a few static images, and then perhaps linking directly to the interactive SVGs on the website, and hope they are using a device that can open it in Firefox/Chrome/browser which supports it. I just tested those complex SVGs on my phone, and it made it chug.