Re: Inkscape
On 1/10/22 8:27 AM, Mandy and Michael Wilson via Python-list wrote: > I wonder if you can help me out please. I have recently added an > extension into Inkscape called Axidraw which should enable me to > hatchfill text, unforunately I am unable to use this facility as when I > open a canvas in Inkscape and go to the axidraw extension I receive a > message saying that I require Python 3.6 or greater. I have downloaded > and installed Python 3.10.1 but I am still receiving the same message. > Can you please tell me what I am doing wrong ? I look forward to > hearing from you. Most likely you'll need to ask the folks on the Inkscape forums or mailing list. Very few of us have any working understanding of how Python is used within Inkscape. What operating system are you using? If you're running Windows, then installing Python 3.10 will have no effect on Inkscape because inkscape does not know about any other installed versions of Python. It's built with and ships with a specific version of Python inside of Inkscape. So it seems to me like you need to install the latest version of Inkscape, which should come with the latest supported version of Python inside of it. -- https://mail.python.org/mailman/listinfo/python-list
Inkscape
hello Python I wonder if you can help me out please. I have recently added an extension into Inkscape called Axidraw which should enable me to hatchfill text, unforunately I am unable to use this facility as when I open a canvas in Inkscape and go to the axidraw extension I receive a message saying that I require Python 3.6 or greater. I have downloaded and installed Python 3.10.1 but I am still receiving the same message. Can you please tell me what I am doing wrong ? I look forward to hearing from you. regards Mandy Wilson m. 07739 263 234 -- https://mail.python.org/mailman/listinfo/python-list
Re: Editing Inkscape SVG files with Python?
On 24/09/12 00:53, Steven D'Aprano wrote: Googling for "python inkscape" comes up with too many hits for Inkscape's plugin system to be much help to me. Aside from suggesting lxml, I would ask "So why not to follow the stream and create Inkscape plugin"? I have in similar situation created a plugin (https://gitorious.org/inkscape-ungroup-deep/) and I have to say it wasn't that difficult and results are pretty satisfactory. Matěj -- http://mail.python.org/mailman/listinfo/python-list
Re: Editing Inkscape SVG files with Python?
Steven D'Aprano writes: > I have some SVG files generated with Inkscape containing many text > blocks (over 100). I wish to programmatically modify those text blocks > using Python. Is there a library I should be using, or any other > guidelines or advice anyone can give me? My first step would be to use ‘lxml’ to manipulate an XML tree, since that's what an SVG document contains. Read the SVG file as a text string, de-serialise the text to an XML tree. Match the nodes of interest using an XPath query, iterate over them. Change the content of each node using Python text manipulation, set the new value on the node. Re-serialise the tree to the SVG file. -- \ “I distrust those people who know so well what God wants them | `\to do to their fellows, because it always coincides with their | _o__) own desires.” —Susan Brownell Anthony, 1896 | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list
Re: Editing Inkscape SVG files with Python?
On 23 September 2012 23:53, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > I have some SVG files generated with Inkscape containing many text blocks > (over 100). I wish to programmatically modify those text blocks using > Python. Is there a library I should be using, or any other guidelines or > advice anyone can give me? > > Googling for "python inkscape" comes up with too many hits for Inkscape's > plugin system to be much help to me. > I thought for a moment that PyX would do it. I just checked their roadmap though and SVG support is "not started": http://pyx.sourceforge.net/roadmap.html 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? Alternatively, if you don't get an answer here it might be worth trying the PyX-user list. Oscar -- http://mail.python.org/mailman/listinfo/python-list
Editing Inkscape SVG files with Python?
I have some SVG files generated with Inkscape containing many text blocks (over 100). I wish to programmatically modify those text blocks using Python. Is there a library I should be using, or any other guidelines or advice anyone can give me? Googling for "python inkscape" comes up with too many hits for Inkscape's plugin system to be much help to me. Thanks in advance. -- Steven -- http://mail.python.org/mailman/listinfo/python-list