
3 Aug
2007
3 Aug
'07
1:44 a.m.
Kent Tenney wrote:
Lets say my script gets to this point text = file('filename').read()
is something of this sort possible?
document.addText(text)
Something of that sort, yes. Exactly what something depends on the xml library that you choose to use to process the svg. If you plan to follow suit, Inkscape 0.45 and prior has been using pyxml and Inkscape 0.46 and after will use the fantastic lxml library. You may also want to browse our extension docs on the wiki at http://wiki.inkscape.org/wiki/index.php/Category:Extensions and read through an extension script or two from those included with inkscape.
Aaron Spike