https://wiki.synfig.org/index.php?title=Doc:Svg2synfig/ro&feed=atom&action=history
Doc:Svg2synfig/ro - Revision history
2024-03-28T11:13:18Z
Revision history for this page on the wiki
MediaWiki 1.26.3
https://wiki.synfig.org/index.php?title=Doc:Svg2synfig/ro&diff=15577&oldid=prev
Ed62: /* Other options */
2012-03-28T10:33:34Z
<p><span dir="auto"><span class="autocomment">Other options</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 10:33, 28 March 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l15" >Line 15:</td>
<td colspan="2" class="diff-lineno">Line 15:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* In sistemul de operare Ubuntu, versiunea 0.62.02 lucreaza mai bine comparativ cu versiunea 0.63.00.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* In sistemul de operare Ubuntu, versiunea 0.62.02 lucreaza mai bine comparativ cu versiunea 0.63.00.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=<del class="diffchange diffchange-inline">Other options</del>=</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=<ins class="diffchange diffchange-inline">Alte optiuni</ins>=</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">The following are outdated options or special options for experts</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Optiunile descrise mai jos sunt pentru versiunile mai vechi sau optiuni speciale pentru experti</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>== <del class="diffchange diffchange-inline">Option </del>1 ==</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>== <ins class="diffchange diffchange-inline">Optiunea </ins>1 ==</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">This uses an </del>XSLT 2.0 <del class="diffchange diffchange-inline">stylesheet to transform </del>SVG XML <del class="diffchange diffchange-inline">to </del>Synfig XML.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Foloseste un stylesheet </ins>XSLT 2.0 <ins class="diffchange diffchange-inline">pentru a transforma </ins>SVG XML <ins class="diffchange diffchange-inline">in </ins>Synfig XML.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del class="diffchange diffchange-inline">Objective </del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins class="diffchange diffchange-inline">Obiective </ins>===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">Turn an </del>SVG <del class="diffchange diffchange-inline">image into a </del>Synfig <del class="diffchange diffchange-inline">file for import</del>. <del class="diffchange diffchange-inline">First posted </del>in <del class="diffchange diffchange-inline">the forums</del>: http://synfig.org/forums/viewtopic.php?t=30</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Transforma o imagine </ins>SVG <ins class="diffchange diffchange-inline">intr-un fisier </ins>Synfig <ins class="diffchange diffchange-inline">in vederea importarii acestuia</ins>. <ins class="diffchange diffchange-inline">Prima data postat </ins>in <ins class="diffchange diffchange-inline">forum</ins>: http://synfig.org/forums/viewtopic.php?t=30</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del class="diffchange diffchange-inline">Prerequisites </del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins class="diffchange diffchange-inline">Cerinte preliminare </ins>===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Make sure a </del>Java runtime environment <del class="diffchange diffchange-inline">is installed</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">Asigurati-va ca este instalat </ins>Java runtime environment.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Get </del>a <del class="diffchange diffchange-inline">recent version of the </del>SAXON XSLT <del class="diffchange diffchange-inline">processor for </del>Java <del class="diffchange diffchange-inline">from </del>http://saxon.sourceforge.net/. <del class="diffchange diffchange-inline">Recommended version</del>: Saxon-SA 9.0 (saxonsa9-0-0-2j.zip).</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">Obtineti o versiune recenta </ins>a <ins class="diffchange diffchange-inline">procesorului </ins>SAXON XSLT <ins class="diffchange diffchange-inline">pentru </ins>Java <ins class="diffchange diffchange-inline">de pe site-ul </ins>http://saxon.sourceforge.net/. <ins class="diffchange diffchange-inline">Versiunea recomandata</ins>: Saxon-SA 9.0 (saxonsa9-0-0-2j.zip).</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Extract the </del>SAXON <del class="diffchange diffchange-inline">package to a </del>folder <del class="diffchange diffchange-inline">of your choice</del>. <del class="diffchange diffchange-inline">As an example we're going to use </del>d:\saxon in <del class="diffchange diffchange-inline">the following</del>. <del class="diffchange diffchange-inline">The folder will contain several </del>JAR <del class="diffchange diffchange-inline">files</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">Extrageti pachetul </ins>SAXON <ins class="diffchange diffchange-inline">intr-un </ins>folder <ins class="diffchange diffchange-inline">la alegere</ins>. <ins class="diffchange diffchange-inline">Ca exemplu, vom folosi </ins>d:\saxon in <ins class="diffchange diffchange-inline">cele ce urmeaza</ins>. <ins class="diffchange diffchange-inline">Folderul va contine cateva fisiere cu extensia </ins>JAR.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Create the file </del>d:\saxon\svg2synfig.xsl <del class="diffchange diffchange-inline">with the content provided at the bottom of this document </del>({{l|#svg2synfig.xsl}}).</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">Creati fisierul </ins>d:\saxon\svg2synfig.xsl <ins class="diffchange diffchange-inline">care sa contina codul de mai jos </ins>({{l|#svg2synfig.xsl}}).</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>==== <del class="diffchange diffchange-inline">Optional Prerequites for </del>Windows ====</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==== <ins class="diffchange diffchange-inline">Cerinte optionale pentru sistemul de operare </ins>Windows ====</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">If you don't want to use the command line</del>, <del class="diffchange diffchange-inline">create a </del>batch <del class="diffchange diffchange-inline">file </del>d:\saxon\svg2synfig.bat <del class="diffchange diffchange-inline">with this content</del>:</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Daca nu doriti sa folositi linia de comanda</ins>, <ins class="diffchange diffchange-inline">creati un fisier </ins>batch d:\saxon\svg2synfig.bat <ins class="diffchange diffchange-inline">cu acest continut</ins>:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  @java -jar %0\..\saxon9.jar -xsl:%0\..\svg2synfig.xsl %1 > %0\..\synfig.sif</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  @java -jar %0\..\saxon9.jar -xsl:%0\..\svg2synfig.xsl %1 > %0\..\synfig.sif</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  @pause</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  @pause</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del class="diffchange diffchange-inline">Transforming an </del>SVG <del class="diffchange diffchange-inline">into a </del>Synfig <del class="diffchange diffchange-inline">File </del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins class="diffchange diffchange-inline">Transformarea unui fisier </ins>SVG <ins class="diffchange diffchange-inline">in fisier </ins>Synfig ===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>==== Windows <del class="diffchange diffchange-inline">Batch File </del>====</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==== <ins class="diffchange diffchange-inline">Fisierul batch pentru </ins>Windows ====</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Just drop the </del>SVG <del class="diffchange diffchange-inline">file onto </del>svg2synfig.bat.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">Trageti fisierul </ins>SVG <ins class="diffchange diffchange-inline">peste </ins>svg2synfig.bat.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>==== <del class="diffchange diffchange-inline">Command line </del>====</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>==== <ins class="diffchange diffchange-inline">Linie de comanda </ins>====</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Change directory to </del>d:\saxon.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">Schimbati directorul la </ins>d:\saxon.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># <del class="diffchange diffchange-inline">Enter the following command </del>(<del class="diffchange diffchange-inline">replace </del>your_input.svg <del class="diffchange diffchange-inline">by the path of the </del>SVG <del class="diffchange diffchange-inline">file</del>):</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># <ins class="diffchange diffchange-inline">Tastati comanda urmatoare </ins>(<ins class="diffchange diffchange-inline">inlocuiti '''</ins>your_input.svg<ins class="diffchange diffchange-inline">''' cu calea la fisierul </ins>SVG):</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  java -jar saxon9.jar -xsl:svg2synfig.xsl your_input.svg > synfig.sif</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  java -jar saxon9.jar -xsl:svg2synfig.xsl your_input.svg > synfig.sif</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del class="diffchange diffchange-inline">Result </del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins class="diffchange diffchange-inline">Rezultat </ins>===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">If the conversion has been successful</del>, <del class="diffchange diffchange-inline">the result will be written to the file </del>d:\saxon\synfig.sif.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">In cazul in care conversia s-a realizat cu succes</ins>, <ins class="diffchange diffchange-inline">rezultatul va fi scris in fisierul </ins>d:\saxon\synfig.sif.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">You can open this file </del>in Synfig.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Putei deschide acest fisier </ins>in Synfig.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del class="diffchange diffchange-inline">Limitations </del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins class="diffchange diffchange-inline">Limitari </ins>===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Doesn't seem to work with </del>SaxonB (FOSS <del class="diffchange diffchange-inline">version</del>)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">E posibil sa nu mearga cu </ins>SaxonB (<ins class="diffchange diffchange-inline">versiunea </ins>FOSS)</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Compressed </del>SVG (svgz) <del class="diffchange diffchange-inline">must be uncompressed first</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Fisierele </ins>SVG <ins class="diffchange diffchange-inline">comprimate </ins>(svgz) <ins class="diffchange diffchange-inline">trebuie mai intai decomprimate</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Only </del>SVG path <del class="diffchange diffchange-inline">objects are supported. Try converting all objects to paths</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Doar obiecte de tip cale </ins>SVG <ins class="diffchange diffchange-inline">sunt suportate. Incercati sa convertiti toate obiectele in obiecte de tip cale (</ins>path<ins class="diffchange diffchange-inline">)</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Only a </del>subset <del class="diffchange diffchange-inline">of path elements is supported</del>. <del class="diffchange diffchange-inline">Try to modify all path nodes to have </del>split tangents, <del class="diffchange diffchange-inline">and all path segments to be curves</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Este suporta doar un </ins>subset <ins class="diffchange diffchange-inline">de elemente-cale</ins>. <ins class="diffchange diffchange-inline">Toate nodurile din cale trebuie sa aiba "</ins>split tangents<ins class="diffchange diffchange-inline">"</ins>, <ins class="diffchange diffchange-inline">iar segmentele de cale trebuie sa fie curbe</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Sophisticated coloring </del>(<del class="diffchange diffchange-inline">e. g. gradients</del>) <del class="diffchange diffchange-inline">is not supported</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Trecerea de culoare </ins>(<ins class="diffchange diffchange-inline">gradient</ins>) <ins class="diffchange diffchange-inline">nu este suportata</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Only basic transformations are supported</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Sunt suportate doar transformarile de baza</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Fill and outline on the same object is not supported</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Umplerea de culoare si conturul pe acelasi obiect nu sunt suportate</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== svg2synfig.xsl ===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== svg2synfig.xsl ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><pre><nowiki></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><pre><nowiki></div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l324" >Line 324:</td>
<td colspan="2" class="diff-lineno">Line 324:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></nowiki></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div></nowiki></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>== <del class="diffchange diffchange-inline">Option </del>2 ==</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>== <ins class="diffchange diffchange-inline">Optiunea </ins>2 ==</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">This is a C </del>program <del class="diffchange diffchange-inline">by </del>akagogo <del class="diffchange diffchange-inline">that uses </del>libxml <del class="diffchange diffchange-inline">to convert </del>SVG <del class="diffchange diffchange-inline">to Synfig </del>format.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Este un </ins>program <ins class="diffchange diffchange-inline">in C realizat de </ins>akagogo <ins class="diffchange diffchange-inline">care foloseste </ins>libxml <ins class="diffchange diffchange-inline">pentru a converti </ins>SVG <ins class="diffchange diffchange-inline">in </ins>format <ins class="diffchange diffchange-inline">Synfig</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://none.carlos.googlepages.com/svgtosif.zip</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>http://none.carlos.googlepages.com/svgtosif.zip</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del class="diffchange diffchange-inline">Installation </del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins class="diffchange diffchange-inline">Instalare </ins>===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">Just make the usual </del>'''./configure && make && sudo make install'''</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Se ruleaza obisnuitul </ins>'''./configure && make && sudo make install''' <ins class="diffchange diffchange-inline">- sistem de operare Linux</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=== <del class="diffchange diffchange-inline">Usage </del>===</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=== <ins class="diffchange diffchange-inline">Folosire </ins>===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">The </del>SVG <del class="diffchange diffchange-inline">files needs to be inside a </del>folder <del class="diffchange diffchange-inline">called </del>'''data'''. <del class="diffchange diffchange-inline">You have to run the command from the parent directory</del>, <del class="diffchange diffchange-inline">but just using the name file as the command </del>argument. <del class="diffchange diffchange-inline">So if</del>:</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Fisierele </ins>SVG <ins class="diffchange diffchange-inline">trebuie sa se afle intr-un </ins>folder <ins class="diffchange diffchange-inline">numit </ins>'''data'''. <ins class="diffchange diffchange-inline">Daca doriti sa rulati comanda din directorul parinte</ins>, <ins class="diffchange diffchange-inline">folosind doar numele fisieruluica </ins>argument <ins class="diffchange diffchange-inline">in comanda</ins>. <ins class="diffchange diffchange-inline">Deci daca</ins>:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">You are </del>in <del class="diffchange diffchange-inline">folder </del>"/example" <del class="diffchange diffchange-inline">you have to create a </del>folder <del class="diffchange diffchange-inline">called </del>"/example/data" <del class="diffchange diffchange-inline">and put the file </del>"file.svg" <del class="diffchange diffchange-inline">there</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Sunteti </ins>in <ins class="diffchange diffchange-inline">folderul </ins>"/example"<ins class="diffchange diffchange-inline">, va trebui sa creati un </ins>folder <ins class="diffchange diffchange-inline">numit </ins>"/example/data" <ins class="diffchange diffchange-inline">in care sa puneti fisierul  </ins>"file.svg".</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">Now you execute </del>'''svgtosif file.svg''' <del class="diffchange diffchange-inline">when you got </del>"/example" <del class="diffchange diffchange-inline">as your current working directory</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Apoi rulati comanda </ins>'''svgtosif file.svg''' <ins class="diffchange diffchange-inline">unde </ins>"/example" <ins class="diffchange diffchange-inline">este folderul curent de lucru</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">As you can see</del>, <del class="diffchange diffchange-inline">this is really not to friendly</del>. <del class="diffchange diffchange-inline">To quickly fix the problem</del>, <del class="diffchange diffchange-inline">use the following </del>bash script:</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Dupa cum se vede</ins>, <ins class="diffchange diffchange-inline">nu e o metoda prea prietenoasa</ins>. <ins class="diffchange diffchange-inline">Pentru a rezolva aceasta problema</ins>, <ins class="diffchange diffchange-inline">folositi urmatorul </ins>bash script:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  #!/bin/bash</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  #!/bin/bash</div></td></tr>
<tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l353" >Line 353:</td>
<td colspan="2" class="diff-lineno">Line 353:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  echo "Conversion complete!"</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  echo "Conversion complete!"</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">Put those lines in a file named </del>"svg2sif" (<del class="diffchange diffchange-inline">name it as you want</del>, <del class="diffchange diffchange-inline">but avoid using </del>"svgtosif") <del class="diffchange diffchange-inline">and put it in a </del>PATH <del class="diffchange diffchange-inline">directory </del>(<del class="diffchange diffchange-inline">suggest </del>/usr/bin). <del class="diffchange diffchange-inline">Then</del>:</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Puneti aceste linii intr-un fisier numit </ins>"svg2sif" (<ins class="diffchange diffchange-inline">sau oricare alt nume</ins>, <ins class="diffchange diffchange-inline">dar diferit de </ins>"svgtosif") <ins class="diffchange diffchange-inline">- fisierul trebuie sa se afle intr-un director </ins>PATH (<ins class="diffchange diffchange-inline">sugeram </ins>/usr/bin). <ins class="diffchange diffchange-inline">Apoi</ins>:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  chmod +x /usr/bin/svg2sif  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  chmod +x /usr/bin/svg2sif  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">Thats all</del>. <del class="diffchange diffchange-inline">Now use</del>:</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Asta e tot</ins>. <ins class="diffchange diffchange-inline">Acum folositi</ins>:</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  svg2sif <file.svg></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  svg2sif <file.svg></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">and you will get </del>a .sif <del class="diffchange diffchange-inline">file </del>in <del class="diffchange diffchange-inline">the same </del>folder <del class="diffchange diffchange-inline">you are working in</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">si veti obtine fisierul </ins>a .sif in <ins class="diffchange diffchange-inline">acelasi </ins>folder <ins class="diffchange diffchange-inline">de lucru</ins>.</div></td></tr>
</table>
Ed62
https://wiki.synfig.org/index.php?title=Doc:Svg2synfig/ro&diff=15576&oldid=prev
Ed62: /* Import SVG directly in Synfig Studio */
2012-03-28T09:35:03Z
<p><span dir="auto"><span class="autocomment">Import SVG directly in Synfig Studio</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 09:35, 28 March 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l8" >Line 8:</td>
<td colspan="2" class="diff-lineno">Line 8:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Extensia pentru Inkscape converteste fisierele SVG in fisiere Synfig Studio (.sif), fiind metoda cea mai recomandata. Aceasta extensie poate fi gasita in sectiunea de descarcare [http://www.synfig.org/cms/en/download/tools/ Scripts & Tools].</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>Extensia pentru Inkscape converteste fisierele SVG in fisiere Synfig Studio (.sif), fiind metoda cea mai recomandata. Aceasta extensie poate fi gasita in sectiunea de descarcare [http://www.synfig.org/cms/en/download/tools/ Scripts & Tools].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=<del class="diffchange diffchange-inline">Import </del>SVG <del class="diffchange diffchange-inline">directly </del>in Synfig Studio=</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=<ins class="diffchange diffchange-inline">Importare </ins>SVG <ins class="diffchange diffchange-inline">direct </ins>in Synfig Studio=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">From latest </del>Synfig <del class="diffchange diffchange-inline">versions </del>(<del class="diffchange diffchange-inline">at least in </del>0.62.02) <del class="diffchange diffchange-inline">there is an option to import </del>SVG <del class="diffchange diffchange-inline">from </del>''File -> Import'' <del class="diffchange diffchange-inline">menu</del>. <del class="diffchange diffchange-inline">This seems to work better than the options described below</del>, <del class="diffchange diffchange-inline">however there may be problems importing some </del>SVG <del class="diffchange diffchange-inline">elements correctly</del>. <del class="diffchange diffchange-inline">See </del>[http://synfig.org/forums/viewtopic.php?f=12&t=2728 <del class="diffchange diffchange-inline">this topic</del>] in <del class="diffchange diffchange-inline">forums for some hints</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">In ultimele versiuni </ins>Synfig (<ins class="diffchange diffchange-inline">incepand cu </ins>0.62.02) <ins class="diffchange diffchange-inline">exista o optiune de importare fisiere </ins>SVG<ins class="diffchange diffchange-inline">, in meniul </ins>''File -> Import''. <ins class="diffchange diffchange-inline">Functioneaza mai bine folosind optiunile de mai jos</ins>, <ins class="diffchange diffchange-inline">dar exista probleme la importarea corecta a unor elemente </ins>SVG. <ins class="diffchange diffchange-inline">Vedeti </ins>[http://synfig.org/forums/viewtopic.php?f=12&t=2728 <ins class="diffchange diffchange-inline">acest articol</ins>] in <ins class="diffchange diffchange-inline">forum pentru unele sfaturi</ins>.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* <del class="diffchange diffchange-inline">First import may fail</del>, <del class="diffchange diffchange-inline">try to import same file for two times</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">Mai intai importul poate esua</ins>, <ins class="diffchange diffchange-inline">incercati sa importati acelasi fisier de doua ori</ins>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* 0.62.02 <del class="diffchange diffchange-inline">is reported to work better in Ubuntu than version </del>0.63.00.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* <ins class="diffchange diffchange-inline">In sistemul de operare Ubuntu, versiunea </ins>0.62.02 <ins class="diffchange diffchange-inline">lucreaza mai bine comparativ cu versiunea </ins>0.63.00.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Other options=</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Other options=</div></td></tr>
<!-- diff cache key synfigru_wiki:diff:version:1.11a:oldid:15575:newid:15576 -->
</table>
Ed62
https://wiki.synfig.org/index.php?title=Doc:Svg2synfig/ro&diff=15575&oldid=prev
Ed62: /* Inkscape SIF exporter extension */
2012-03-28T09:26:07Z
<p><span dir="auto"><span class="autocomment">Inkscape SIF exporter extension</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 09:26, 28 March 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l4" >Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{Category|Manual}}</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>{{Category|Manual}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><!-- Page info end --></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><!-- Page info end --></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>=Inkscape SIF <del class="diffchange diffchange-inline">exporter extension</del>=</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>=<ins class="diffchange diffchange-inline">Extensia pentru export </ins>Inkscape SIF=</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del class="diffchange diffchange-inline">The </del>Inkscape <del class="diffchange diffchange-inline">extension converts </del>SVG <del class="diffchange diffchange-inline">files to </del>Synfig Studio (.sif) <del class="diffchange diffchange-inline">format and it is a recommended way</del>. <del class="diffchange diffchange-inline">This extension can be found at </del>[http://www.synfig.org/cms/en/download/tools/ Scripts & Tools] <del class="diffchange diffchange-inline">download section</del>.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">Extensia pentru </ins>Inkscape <ins class="diffchange diffchange-inline">converteste fisierele </ins>SVG <ins class="diffchange diffchange-inline">in fisiere </ins>Synfig Studio (.sif)<ins class="diffchange diffchange-inline">, fiind metoda cea mai recomandata</ins>. <ins class="diffchange diffchange-inline">Aceasta extensie poate fi gasita in sectiunea de descarcare </ins>[http://www.synfig.org/cms/en/download/tools/ Scripts & Tools].</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Import SVG directly in Synfig Studio=</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=Import SVG directly in Synfig Studio=</div></td></tr>
</table>
Ed62
https://wiki.synfig.org/index.php?title=Doc:Svg2synfig/ro&diff=15574&oldid=prev
Ed62: Created page with "<!-- Page info --> {{Title|SVG Import}} {{Navigation|Category:Manual|Doc:ListImporter}} {{Category|Manual}} <!-- Page info end --> =Inkscape SIF exporter extension= The Inkscape..."
2012-03-28T09:12:03Z
<p>Created page with "<!-- Page info --> {{Title|SVG Import}} {{Navigation|Category:Manual|Doc:ListImporter}} {{Category|Manual}} <!-- Page info end --> =Inkscape SIF exporter extension= The Inkscape..."</p>
<p><b>New page</b></p><div><!-- Page info --><br />
{{Title|SVG Import}}<br />
{{Navigation|Category:Manual|Doc:ListImporter}}<br />
{{Category|Manual}}<br />
<!-- Page info end --><br />
=Inkscape SIF exporter extension=<br />
<br />
The Inkscape extension converts SVG files to Synfig Studio (.sif) format and it is a recommended way. This extension can be found at [http://www.synfig.org/cms/en/download/tools/ Scripts & Tools] download section.<br />
<br />
=Import SVG directly in Synfig Studio=<br />
<br />
From latest Synfig versions (at least in 0.62.02) there is an option to import SVG from ''File -> Import'' menu. This seems to work better than the options described below, however there may be problems importing some SVG elements correctly. See [http://synfig.org/forums/viewtopic.php?f=12&t=2728 this topic] in forums for some hints.<br />
<br />
* First import may fail, try to import same file for two times.<br />
* 0.62.02 is reported to work better in Ubuntu than version 0.63.00.<br />
<br />
=Other options=<br />
The following are outdated options or special options for experts.<br />
== Option 1 ==<br />
This uses an XSLT 2.0 stylesheet to transform SVG XML to Synfig XML.<br />
=== Objective ===<br />
Turn an SVG image into a Synfig file for import. First posted in the forums: http://synfig.org/forums/viewtopic.php?t=30<br />
=== Prerequisites ===<br />
# Make sure a Java runtime environment is installed.<br />
# Get a recent version of the SAXON XSLT processor for Java from http://saxon.sourceforge.net/. Recommended version: Saxon-SA 9.0 (saxonsa9-0-0-2j.zip).<br />
# Extract the SAXON package to a folder of your choice. As an example we're going to use d:\saxon in the following. The folder will contain several JAR files.<br />
# Create the file d:\saxon\svg2synfig.xsl with the content provided at the bottom of this document ({{l|#svg2synfig.xsl}}).<br />
==== Optional Prerequites for Windows ====<br />
If you don't want to use the command line, create a batch file d:\saxon\svg2synfig.bat with this content:<br />
@java -jar %0\..\saxon9.jar -xsl:%0\..\svg2synfig.xsl %1 > %0\..\synfig.sif<br />
@pause<br />
=== Transforming an SVG into a Synfig File ===<br />
==== Windows Batch File ====<br />
# Just drop the SVG file onto svg2synfig.bat.<br />
==== Command line ====<br />
# Change directory to d:\saxon.<br />
# Enter the following command (replace your_input.svg by the path of the SVG file):<br />
java -jar saxon9.jar -xsl:svg2synfig.xsl your_input.svg > synfig.sif<br />
=== Result ===<br />
If the conversion has been successful, the result will be written to the file d:\saxon\synfig.sif.<br />
You can open this file in Synfig.<br />
=== Limitations ===<br />
* Doesn't seem to work with SaxonB (FOSS version)<br />
* Compressed SVG (svgz) must be uncompressed first.<br />
* Only SVG path objects are supported. Try converting all objects to paths.<br />
* Only a subset of path elements is supported. Try to modify all path nodes to have split tangents, and all path segments to be curves.<br />
* Sophisticated coloring (e. g. gradients) is not supported.<br />
* Only basic transformations are supported.<br />
* Fill and outline on the same object is not supported.<br />
=== svg2synfig.xsl ===<br />
<pre><nowiki><br />
<xsl:stylesheet version="2.0" exclude-result-prefixes="#all"<br />
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"<br />
xmlns:svg="http://www.w3.org/2000/svg"<br />
xmlns:xs="http://www.w3.org/2001/XMLSchema"<br />
xmlns:math="http://exslt.org/math"><br />
<xsl:output method="xml" indent="yes" encoding="UTF-8"/><br />
<br />
<xsl:template match="/"><br />
<xsl:apply-templates/><br />
</xsl:template><br />
<br />
<xsl:template match="svg:svg"><br />
<xsl:variable name="width" select="math:units_to_px(@width)"/><br />
<xsl:variable name="height" select="math:units_to_px(@height)"/><br />
<xsl:variable name="has_view_box" select="matches(@viewBox, '(\d+\s){3}\d+')"/><br />
<canvas version="0.2" id="{@id}"<br />
width="{if ($has_view_box) then replace(@viewBox, '(\d+)\s(\d+)\s(\d+)\s(\d+)', '$3') else $width}"<br />
height="{if ($has_view_box) then replace(@viewBox, '(\d+)\s(\d+)\s(\d+)\s(\d+)', '$4') else $height}"<br />
view-box="{if ($has_view_box) then @viewBox else concat('0 0 ', $width, ' ', $height)}"><br />
<xsl:apply-templates select="svg:g|svg:svg|svg:path"/><br />
</canvas><br />
</xsl:template><br />
<br />
<xsl:template match="svg:g"><br />
<layer type="PasteCanvas" active="true" version="0.1" desc="{@id}"><br />
<param name="canvas"><br />
<canvas><br />
<xsl:apply-templates/><br />
</canvas><br />
</param><br />
</layer><br />
</xsl:template><br />
<br />
<xsl:template match="svg:path"><br />
<xsl:variable name="style"><br />
<xsl:for-each select="ancestor-or-self::*"><br />
<xsl:sort select="position()" data-type="number" order="descending"/><br />
<xsl:value-of select="concat(@style, ';fill:', @fill, ';stroke:', @stroke, ';stroke-width:', @stroke-width, ';')"/><br />
</xsl:for-each><br />
</xsl:variable><br />
<xsl:variable name="self" select="."/><br />
<xsl:variable name="is_fill" select="not(matches(replace($style, 'fill:[^n;][^o].*', ''), 'fill:none'))"/><br />
<xsl:analyze-string select="@d" regex="m[^z]+(z|$)" flags="i"><br />
<xsl:matching-substring><br />
<layer type="{if ($is_fill) then 'region' else 'outline'}" version="0.1" desc="{$self/@id}"><br />
<xsl:call-template name="style-to-color"><br />
<xsl:with-param name="style" select="replace(replace($style, ':none.*', ''), if ($is_fill) then '.*fill:([^;]+).*' else '.*stroke:([^;]+).*', '$1')"/><br />
</xsl:call-template><br />
<xsl:if test="not ($is_fill)"><br />
<xsl:call-template name="style-to-width"><br />
<xsl:with-param name="style" select="replace($style, '.*stroke-width:([^;]+).*', '$1')"/><br />
</xsl:call-template><br />
</xsl:if><br />
<param name="bline"><br />
<bline type="bline_point" loop="{matches(., 'z', 'i')}"><br />
<xsl:call-template name="path-to-bline"><br />
<xsl:with-param name="path" select="."/><br />
<xsl:with-param name="node" select="$self" tunnel="yes"/><br />
</xsl:call-template><br />
</bline><br />
</param><br />
</layer><br />
</xsl:matching-substring><br />
</xsl:analyze-string><br />
</xsl:template><br />
<br />
<xsl:template name="path-to-bline"><br />
<xsl:param name="path"/><br />
<xsl:variable name="stripped" select="replace(replace(translate($path, ',', ' '), '(\d)-', '$1 -'), '\s*([a-z]+)\s*', '$1', 'i')"/><br />
<xsl:variable name="closed" select="if (matches($stripped, 'z', 'i')) then $stripped else replace($stripped, 'm([-\d.]+\s[-\d.]+).*$', '$0l$1z', 'i')"/><br />
<xsl:variable name="tmp" select="replace($closed, '([-\d.]+\s[-\d.]+)l([-\d.]+\s[-\d.]+)', '$1c$1 $2 $2', 'i')"/><br />
<xsl:variable name="curve" select="replace($tmp, '([-\d.]+\s[-\d.]+)l([-\d.]+\s[-\d.]+)', '$1c$1 $2 $2', 'i')"/><br />
<xsl:analyze-string select="$curve" regex="\s([-\d.]+\s[-\d.]+)\s[-\d.]+\s[-\d.]+z" flags="i"><br />
<xsl:matching-substring><br />
<xsl:analyze-string select="concat(regex-group(1), $curve)" regex="([-\d.]+)\s([-\d.]+)[m\s]([-\d.]+)\s([-\d.]+)c([-\d.]+)\s([-\d.]+)" flags="i"><br />
<xsl:matching-substring><br />
<xsl:call-template name="node-to-bline-point"><br />
<xsl:with-param name="c1_x" select="regex-group(1)"/><br />
<xsl:with-param name="c1_y" select="regex-group(2)"/><br />
<xsl:with-param name="x" select="regex-group(3)"/><br />
<xsl:with-param name="y" select="regex-group(4)"/><br />
<xsl:with-param name="c2_x" select="regex-group(5)"/><br />
<xsl:with-param name="c2_y" select="regex-group(6)"/><br />
</xsl:call-template><br />
</xsl:matching-substring><br />
</xsl:analyze-string><br />
</xsl:matching-substring><br />
</xsl:analyze-string><br />
</xsl:template><br />
<br />
<xsl:template name="node-to-bline-point"><br />
<xsl:param name="x"/><br />
<xsl:param name="y"/><br />
<xsl:param name="c1_x"/><br />
<xsl:param name="c1_y"/><br />
<xsl:param name="c2_x"/><br />
<xsl:param name="c2_y"/><br />
<xsl:param name="node" tunnel="yes"/><br />
<xsl:variable name="transform"><br />
<xsl:for-each select="$node/ancestor-or-self::*/@transform"><br />
<xsl:value-of select="."/><br />
</xsl:for-each><br />
</xsl:variable><br />
<xsl:variable name="t" select="math:resolve_transform($transform)"/><br />
<xsl:variable name="transformed_x" select="$t[5] + $t[1] * xs:float($x) + $t[3] * xs:float($y)"/><br />
<xsl:variable name="transformed_y" select="$t[6] + $t[2] * xs:float($x) + $t[4] * xs:float($y)"/><br />
<xsl:variable name="transformed_c1_x" select="$t[5] + $t[1] * xs:float($c1_x) + $t[3] * xs:float($c1_y)"/><br />
<xsl:variable name="transformed_c1_y" select="$t[6]+ $t[2] * xs:float($c1_x) + $t[4] * xs:float($c1_y)"/><br />
<xsl:variable name="transformed_c2_x" select="$t[5] + $t[1] * xs:float($c2_x) + $t[3] * xs:float($c2_y)"/><br />
<xsl:variable name="transformed_c2_y" select="$t[6]+ $t[2] * xs:float($c2_x) + $t[4] * xs:float($c2_y)"/><br />
<entry><br />
<composite type="bline_point"><br />
<point><br />
<vector><br />
<x><xsl:value-of select="$transformed_x"/></x><br />
<y><xsl:value-of select="$transformed_y"/></y><br />
</vector><br />
</point><br />
<width><br />
<real value="1"/><br />
</width><br />
<origin><br />
<real value="0.5"/><br />
</origin><br />
<split><br />
<bool value="true"/><br />
</split><br />
<t1><br />
<xsl:call-template name="vector-pair-to-radial"><br />
<xsl:with-param name="origin-x" select="$transformed_c1_x"/><br />
<xsl:with-param name="origin-y" select="$transformed_c1_y"/><br />
<xsl:with-param name="x" select="$transformed_x"/><br />
<xsl:with-param name="y" select="$transformed_y"/><br />
</xsl:call-template><br />
</t1><br />
<t2><br />
<xsl:call-template name="vector-pair-to-radial"><br />
<xsl:with-param name="origin-x" select="$transformed_x"/><br />
<xsl:with-param name="origin-y" select="$transformed_y"/><br />
<xsl:with-param name="x" select="$transformed_c2_x"/><br />
<xsl:with-param name="y" select="$transformed_c2_y"/><br />
</xsl:call-template><br />
</t2><br />
</composite><br />
</entry><br />
</xsl:template><br />
<br />
<xsl:template name="vector-pair-to-radial"><br />
<xsl:param name="x"/><br />
<xsl:param name="y"/><br />
<xsl:param name="origin-x"/><br />
<xsl:param name="origin-y"/><br />
<xsl:variable name="dx" select="xs:float($x) - xs:float($origin-x)"/><br />
<xsl:variable name="dy" select="xs:float($y) - xs:float($origin-y)"/><br />
<xsl:variable name="d" select="math:sqrt($dx * $dx + $dy * $dy)"/><br />
<xsl:variable name="angle" select="math:atan2($dy, $dx)"/><br />
<radial_composite type="vector"><br />
<radius><br />
<real value="{$d * 3}"/><br />
</radius><br />
<theta><br />
<angle value="{$angle * 57.295779513082320876798154814105}"/><br />
</theta><br />
</radial_composite><br />
</xsl:template><br />
<br />
<xsl:template name="style-to-width"><br />
<xsl:param name="style"/><br />
<xsl:if test="matches($style, '^\d')"><br />
<param name="width"><br />
<real value="{math:units_to_px($style)}"/><br />
</param><br />
</xsl:if><br />
</xsl:template><br />
<br />
<xsl:template name="style-to-color"><br />
<xsl:param name="style"/><br />
<xsl:if test="matches($style, '#')"><br />
<xsl:analyze-string select="concat($style, ';')" regex="#([\da-f]{{2}})([\da-f]{{2}})([\da-f]{{2}});"><br />
<xsl:matching-substring><br />
<param name="color"><br />
<color><br />
<r><xsl:value-of select="math:hex_to_color(regex-group(1))"/></r><br />
<g><xsl:value-of select="math:hex_to_color(regex-group(2))"/></g><br />
<b><xsl:value-of select="math:hex_to_color(regex-group(3))"/></b><br />
<a><xsl:value-of select="if (matches($style, 'fill-opacity:')) then math:power(xs:float(replace($style, '.*fill-opacity:([-\d.]+).*', '$1')), 1 div 2.2) else 1"/></a><br />
</color><br />
</param><br />
</xsl:matching-substring><br />
</xsl:analyze-string><br />
</xsl:if><br />
<xsl:if test="matches($style, 'rgb')"><br />
<xsl:analyze-string select="concat($style, ';')" regex="rgb[(\s]+([-\d.]+)[,\s]+([-\d.]+)[,\s]+([-\d.]+)[\s)]+;"><br />
<xsl:matching-substring><br />
<param name="color"><br />
<color><br />
<r><xsl:value-of select="math:power(xs:float(regex-group(1)) div 255, 2.2)"/></r><br />
<g><xsl:value-of select="math:power(xs:float(regex-group(2)) div 255, 2.2)"/></g><br />
<b><xsl:value-of select="math:power(xs:float(regex-group(3)) div 255, 2.2)"/></b><br />
<a>1</a><br />
</color><br />
</param><br />
</xsl:matching-substring><br />
</xsl:analyze-string><br />
</xsl:if><br />
<xsl:if test="matches($style, 'url')"><br />
<param name="color"><br />
<color><r>0.5</r><g>0.5</g><b>0.5</b><a>0.5</a> </color><br />
</param><br />
</xsl:if><br />
</xsl:template><br />
<br />
<xsl:function name="math:resolve_transform"><br />
<xsl:param name="transform"/><br />
<xsl:variable name="stripped" select="replace(replace($transform, 'translate\(', 'X(1,0,0,1,'), 'matrix', 'X')"/><br />
<xsl:analyze-string select="concat('X(1,0,0,1,0,0)', $stripped)" regex="(.*)X\((-?[\d.]+),(-?[\d.]+),(-?[\d.]+),(-?[\d.]+),(-?[\d.]+),(-?[\d.]+)\)[^X]*X\((-?[\d.]+),(-?[\d.]+),(-?[\d.]+),(-?[\d.]+),(-?[\d.]+),(-?[\d.]+)\).*"><br />
<xsl:non-matching-substring><br />
<xsl:sequence select="(1,0,0,1,0,0)"/><br />
</xsl:non-matching-substring><br />
<xsl:matching-substring><br />
<xsl:variable name="a2" select="xs:float(regex-group(8))"/><br />
<xsl:variable name="b2" select="xs:float(regex-group(9))"/><br />
<xsl:variable name="c2" select="xs:float(regex-group(10))"/><br />
<xsl:variable name="d2" select="xs:float(regex-group(11))"/><br />
<xsl:variable name="e2" select="xs:float(regex-group(12))"/><br />
<xsl:variable name="f2" select="xs:float(regex-group(13))"/><br />
<xsl:variable name="a1" select="xs:float(regex-group(2))"/><br />
<xsl:variable name="b1" select="xs:float(regex-group(3))"/><br />
<xsl:variable name="c1" select="xs:float(regex-group(4))"/><br />
<xsl:variable name="d1" select="xs:float(regex-group(5))"/><br />
<xsl:variable name="e1" select="xs:float(regex-group(6))"/><br />
<xsl:variable name="f1" select="xs:float(regex-group(7))"/><br />
<xsl:variable name="p" select="($a1*$a2+$c1*$b2,$b1*$a2+$d1*$b2,$a1*$c2+$c1*$d2,$b1*$c2+$d1*$d2,$a1*$e2+$c1*$f2+$e1,$b1*$e2+$d1*$f2+$f1)"/><br />
<xsl:variable name="remainder" select="replace(regex-group(1), 'X\(1,0,0,1,0,0\)', '')"/><br />
<xsl:choose><br />
<xsl:when test="matches($remainder, 'X')"><br />
<xsl:variable name="recursion" select="concat($remainder, 'X(', $p[1], ',', $p[2], ',', $p[3], ',', $p[4], ',', $p[5], ',', $p[6], ')')"/><br />
<xsl:sequence select="math:resolve_transform($recursion)"/><br />
</xsl:when><br />
<xsl:otherwise><br />
<xsl:sequence select="$p"/><br />
</xsl:otherwise><br />
</xsl:choose><br />
</xsl:matching-substring><br />
</xsl:analyze-string><br />
</xsl:function><br />
<br />
<xsl:function name="math:hex_to_color" as="xs:float"><br />
<xsl:param name="hex"/><br />
<xsl:value-of select="math:power(xs:float(string-length(substring-before('0123456789abcdef', substring($hex,1,1))) * 16 + string-length(substring-before('0123456789abcdef', substring($hex,2,1)))) div 255, 2.2)"/><br />
</xsl:function><br />
<br />
<xsl:function name="math:units_to_px" as="xs:float"><br />
<xsl:param name="size"/><br />
<xsl:analyze-string select="$size" regex="^([-\d.]+)([a-z%]*)$"><br />
<xsl:matching-substring><br />
<xsl:variable name="factor"><br />
<xsl:choose><br />
<xsl:when test="regex-group(2) = 'pt'">1.25</xsl:when><br />
<xsl:when test="regex-group(2) = 'em'">16</xsl:when><br />
<xsl:when test="regex-group(2) = 'mm'">3.54</xsl:when><br />
<xsl:when test="regex-group(2) = 'pc'">15</xsl:when><br />
<xsl:when test="regex-group(2) = 'cm'">35.43</xsl:when><br />
<xsl:when test="regex-group(2) = 'in'">90</xsl:when><br />
<xsl:otherwise>1</xsl:otherwise><br />
</xsl:choose><br />
</xsl:variable><br />
<xsl:value-of select="xs:float($factor) * xs:float(regex-group(1))"/><br />
</xsl:matching-substring><br />
</xsl:analyze-string><br />
</xsl:function><br />
</xsl:stylesheet><br />
</nowiki></pre><br />
<br />
== Option 2 ==<br />
<br />
This is a C program by akagogo that uses libxml to convert SVG to Synfig format.<br />
<br />
http://none.carlos.googlepages.com/svgtosif.zip<br />
<br />
=== Installation ===<br />
<br />
Just make the usual '''./configure && make && sudo make install'''<br />
<br />
=== Usage ===<br />
<br />
The SVG files needs to be inside a folder called '''data'''. You have to run the command from the parent directory, but just using the name file as the command argument. So if:<br />
<br />
* You are in folder "/example" you have to create a folder called "/example/data" and put the file "file.svg" there.<br />
* Now you execute '''svgtosif file.svg''' when you got "/example" as your current working directory.<br />
<br />
As you can see, this is really not to friendly. To quickly fix the problem, use the following bash script:<br />
<br />
#!/bin/bash<br />
mkdir data<br />
cp "$1" data/<br />
/usr/local/bin/svgtosif "$1"<br />
NAME=`echo "$1" | cut -d "." -f 1`<br />
cp "data/$NAME.sif" .<br />
rm data/*<br />
rmdir data<br />
echo "Conversion complete!"<br />
<br />
Put those lines in a file named "svg2sif" (name it as you want, but avoid using "svgtosif") and put it in a PATH directory (suggest /usr/bin). Then:<br />
chmod +x /usr/bin/svg2sif <br />
<br />
Thats all. Now use:<br />
svg2sif <file.svg><br />
<br />
and you will get a .sif file in the same folder you are working in.</div>
Ed62