是否有任何脚本 SVG 编辑器? [英] Is there any scripting SVG editor?
问题描述
我想使用某种脚本语言(最好是 Python)来编辑 SVG 文件.特别是,我想合并两个 SVG 文件,添加一些注释,并将它们排列在更大的图像中.是否有任何软件可用于此类目的?
I would like to edit SVG files using some scripting language (preferably Python). In particular, I would like to merge two SVG files, add some annotations, and arrange them in a larger image. Is there any software available for such purposes?
谢谢,
巴托斯
我最终决定使用 nosklo 提出的方法.你可以在 github repo 上找到 SVG 处理 python 模块的代码.我还在这个 post
I finally decided to use the approach proposed by nosklo. You can find the code of SVG handling python module on github repo. I also described how to use it in this post
推荐答案
你可以使用类似 lxml 的东西 - after所有 SVG 文件都是 XML.它可以从 PyPI pip 获得:https://pypi.python.org/pypi/lxml/
You could use something like lxml - after all SVG files are XML. It's available from PyPI pip: https://pypi.python.org/pypi/lxml/
这篇关于是否有任何脚本 SVG 编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!