Adding class to SVG Export



Hi

I am trying to use Dia to generate svg diagram for presentations build
using reveal.js, and I need to modify the way the svg is exported.

Context : Reveal.js https://github.com/hakimel/reveal.js/ is a small
framework for creating presentation using HTML. Of course SVG can be
included in the HTML file.
One of the feature of reveal.js is to be able to display the content
of a slide step by step using the class "fragment"( See
https://github.com/hakimel/reveal.js/#fragments and
http://lab.hakim.se/reveal-js/#/fragments ).
A small test shows that it work for SVG too : I can have a beautiful
diagramm in my page that appears step by step, the problem is I just
need to edit the SVG by hand...I would like to use Dia for that, of
course.

I have actually 2 problems :

- include class and data-fragment-index in the properties :
easy for the shapes thanks to <ext_attributes>, but I have no idea of
what to modify to add a property to arrow, lines, polygon, etc...

- SVG export : it seems to me that 2 exports exists : diasvg.py and an
integrated export.
The python script is called when using export "SVG plain" or "SVG
compressed", the integrated export is called on "Scalable Vector
Graphic". Right ?
The 2 exports are not exactly the same, the integrated export
generated <g> for each element, and that's on this element I want to
add the class. The python script seems not be able to add those tag,
but I am perhaps wrong.

So my questions are : am I on the right way ? Is it possible to do
what I want without modifying a single line of code ? is it worth it ?


--
Julien Gilles.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]