[swfmill] Wrapping of SVG elements
dan at f3c.com
Wed Jul 26 07:02:52 EDT 2006
"Gerrit Karius" <g99k at hotmail.com> (on Wed, 26 Jul 2006 08:16:26 +0000):
> 1. What are these templates for: "svg:g[@regard-pivot]" and "svg:flowRoot"?
> The "svg:g[@regard-pivot]" defines 2 transforms, a normal one and one that
> works with "@inkscape:px" and "@inkscape:py". Can I just add them up to
> avoid the wrapping? Any testcases or Inkscape files available?
the @regard-pivot stuff is experimental-- i tried to patch inkscape to store a pivot (reference point) in the SVG, the double transform assures that this is respected in flash (so you could- eg- specify around which point an object would rotate). The inkscape patches are not finished (and probably wont be too soon), so i suggest you strip all such stuff off the xslt.
flowRoot, afaik, is an official svg element though, the implementation might not be finished (or working at all). I leave it up to you to try and get it working (i think inkscape uses two different elements for text, but i can't recall under what circumstances) -- or also strip it.
i don't have any testcases around; this is something that's missing for all swfmill... you're free to create some :). also, there's an official SVG test suite which might be of help...
> 2. What are "svg" and "inner-svg" modes for? If it's just to do the general
> stuff in "svg" and type-specific in "svg-inner", then I'll maybe merge the
> two and introduce named templates for the general stuff. Since I have to
> move the export and class definitions out of "svg", there's not much left in
if you're able to merge them, the better.
> Some general testfiles would behelpful. Otherwise, someone else will have to
> do the testing. :-)
see above: construction of formal, automated tests would heavily stabilize swfmill...
> How should I post the changed stylesheet? Just mail it to the list? (it's
> 400+ lines...)
jup, why not? :)
More information about the swfmill