durtto / evoluspencil

Automatically exported from code.google.com/p/evoluspencil
0 stars 0 forks source link

Allow SVG export #260

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Could you enable the export of multiple or single sheets to SVG format?

Original issue reported on code.google.com by bv3...@gmail.com on 3 Jan 2011 at 5:36

GoogleCodeExporter commented 9 years ago
I would love to have this through the UI, but until then I've written a small 
XSLT-Sheet that basically only strips everything from the 
http://www.evolus.vn/Namespace/Pencil namespace (Mostly management data not 
needed in an export anyway). The resulting file should work fine in Firefox 
(where the foreignObject tag of SVG is well supported), but libraries like 
batik (used in apache fop for example) will have trouble with the XHTML, XUL or 
XLink in it. I intend to extend the sheet to support at least a few of those 
elements I encounter, but I won't make promises I can't keep ;-)

The file attached can also be found as part of my collection of tools (used to 
generate DocBook and then PDF for my projects): 
https://github.com/Robert-Kosten/de.robertkosten.tools/blob/master/xsl/ep2svg.xs
l

It is currently under GPLv3, but I'd be willing to release it under GPLv2 so 
no-one has to invoke "any later version" should anyone wish to include it in 
their software ;-)

Original comment by Robert.K...@gmail.com on 24 Jan 2011 at 9:36

Attachments:

GoogleCodeExporter commented 9 years ago
SVG export would be great! In this way further manipulation of the image would 
be possible with tools like Inkscape. In addition starting from SVG other 
vector format could be obtained with proper conversion software.   

Original comment by piergior...@gmail.com on 7 Nov 2011 at 8:45

GoogleCodeExporter commented 9 years ago
This tool turned out to be useful for me. The github repository of the author 
is no longer available so I have posted it here:
https://github.com/ReAzem/ep2svg

Original comment by viau.ale...@gmail.com on 30 May 2014 at 1:36

GoogleCodeExporter commented 9 years ago
I had changed my github username inbetween, but I have recently re-added that 
file as a gist when I became aware that people were using it ;-)

https://gist.github.com/robertkosten/11111486

Original comment by Robert.K...@gmail.com on 1 Jun 2014 at 6:53

GoogleCodeExporter commented 9 years ago
First, thanks for hosting the scripts!

Unfortunately this doesn't work for me. I can not see any captions of the 
shapes after converting, though i can find them in the source of the svg-file.

(captions: e.g. when you double click any shape and then enter a text content).

Original comment by thomas.m...@gmail.com on 4 Jun 2014 at 7:08

GoogleCodeExporter commented 9 years ago
Hi Thomas,

I'll have a look into that on the weekend ;-) I haven't used the script in 
years, but I suspect the captions are either in the namespace that it drops or 
are an attribute, which it might miss completely...

Original comment by Robert.K...@gmail.com on 6 Jun 2014 at 6:14