This is just an idea that came to my mind while responding to another thread. It could be use in the case where:
- Need to make cards or tokens
- Need 1 file per card or token
- Want to use a CSV file with all the card information
- Want to use a template for each of those cards
In therory, the process is just copy pasting content from the CSV into the card template and repeat the process for each card.
So I was thinking, what if I designed a template in Inkscape and I identified each field that could receive content with a variable name. Then, since .svg files are XML files, I could scan those files and substitutes the content of the text field with the corresponding content in the XML file. That would allow me to generate multiple cards in batch.
Here is the definition of a text field by Inkscape. "InfoField" is the variable name, and "Hello" would the the text to replace.
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="17.008928"
y="21.266367"
id="text3717"
inkscape:label="InfoField"><tspan
sodipodi:role="line"
id="tspan3715"
x="17.008928"
y="21.266367"
style="fill:#ffffff;stroke-width:0.26458332px">Hello</tspan></text>
Nandeck can probably do something similar already but in a different way.
Yes, I remember your extension a bit. I think you could generate sets of tokens and hex grid.
Else, simple text substitution of the content of a template with a tool like sed could probably work to substitute keywords with content. No need to know the XML.
For icons and images, that could indeed be more complicated especially for embedded images. Maybe linking images could be possible.