Greetings, Germana Oliveira! > I am trying to make my personal shapes, dong this steps:
> 1. find a .svg image i want to modify or add to my personal shapes. > 2. save it as plain svg format; or > inkscape printer.svg --export-plain-svg=printer1.svg > 3. i put make the .shape file, i use: > xsltproc -o switch-24.shape svg2dia.xslt switch-24.svg > 4. I create a Personales dir so i can save all mi personal shapes. > my files are in: > $HOME/.dia/shapes/Personal > $HOME/.dia/sheets > my sheet:Personales.sheet > <?xml version="1.0" encoding="iso-8859-1"?> > <sheet xmlns="http://www.lysator.liu.se/~alla/dia/dia-sheet-ns"> > <name>Personales</name> > <description>Formas personales</description> > <contents> > <object name="switch-24"> > <description>Switch de 24 puertos</description> > </object> > </contents> > </sheet> > and my .shape: switch-24.shape > <?xml version="1.0"?> > <shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" > xmlns:svg="http://www.w3.org/2000/svg" > xmlns:math="http://exslt.org/math" > xmlns:dia="http://www.daa.com.au/~james/dia-shape-ns" > xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" > xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"> > <name>switch-24<name/> > <icon>switch-24.png</icon> > <connections> > <point x="0" y="0"/> > <point x="0" y="25.5"/> > <point x="25.5" y="0"/> > <point x="25.5" y="25.5" main="yes"/> > </connections> > <textbox x1="-1" y1="3.1" x2="2" y2="3.9" align="center" resize="no"/> > <aspectratio type="fixed"/> > <svg:svg version="1.1" width="947.6554" height="87.5" id="svg2"> > <svg:g transform="translate(770.95,-140.625)" id="layer1" > style="display:inline"> > .... > .... > .... > </shape> > But when i add the switch-24 object to my diagram the image is just > white? transparent? i just can see the green dots... > What am i doing wrong? My guess is that you're going in a very convoluted way to turn your SVG into shape. Plus, Dia shapes only understand a subset of full SVG specification. Namely, I have no idea, how Dia react to multi-layer SVG. So far, I've had best results designing my shapes by hands. -- WBR, Andrey Repin ([email protected]) 05.11.2013, <15:36> Sorry for my terrible english... _______________________________________________ dia-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
