<div class="gmail_quote">On 23 September 2012 23:53, Steven D'Aprano <span dir="ltr"><<a href="mailto:steve+comp.lang.python@pearwood.info" target="_blank">steve+comp.lang.python@pearwood.info</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have some SVG files generated with Inkscape containing many text blocks<br>
(over 100). I wish to programmatically modify those text blocks using<br>
Python. Is there a library I should be using, or any other guidelines or<br>
advice anyone can give me?<br>
<br>
Googling for "python inkscape" comes up with too many hits for Inkscape's<br>
plugin system to be much help to me.<br></blockquote><div><br></div><div>I thought for a moment that PyX would do it. I just checked their roadmap though and SVG support is "not started":</div><div><a href="http://pyx.sourceforge.net/roadmap.html">http://pyx.sourceforge.net/roadmap.html</a></div>
<div><br></div><div>Since SVG files are a type of XML and you only want to modify the text blocks can you not just use an XML library?</div><div><br></div><div>Alternatively, if you don't get an answer here it might be worth trying the PyX-user list.</div>
<div><br></div><div>Oscar</div></div>