Hi all,
Inscape plus Python plus PyYaml provides a powerful tool. What you can do is, in the Inkscape file, put @varname@ everywhere you want a substitution token. Then, in your YAML file, you do something like this:
template: name: Steve Litt date: 1/21/2013 city: Orlando, Florida
Then write a very simple nested loop that, upon encountering @name@, substitutes "Steve Litt". This can even be used to link a bitmap graphic into an Inkscape file.
The beauty of this is it's a very generic tool. All specifics are in the Inkscape template file and the YAML file, but the Python program itself is generic.
This technique could actually be used with any kind of template file, but of course this is the Inkscape mailing list.
SteveT
Hello, I download this Inkscape Software Editor it was working good and everything and then all of a sudden from yesterday whenever I use it Runtime error came up This Application has requested to terminate it in an unusual way. What can I do to it I look forward for a better response Best Regards
--- On Tue, 22/1/13, Steve Litt <slitt@...2357...> wrote:
From: Steve Litt <slitt@...2357...> Subject: [Inkscape-user] Inkscape as template file To: inkscape-user@lists.sourceforge.net Cc: tech@...2989... Date: Tuesday, 22 January, 2013, 0:58
Hi all,
Inscape plus Python plus PyYaml provides a powerful tool. What you can do is, in the Inkscape file, put @varname@ everywhere you want a substitution token. Then, in your YAML file, you do something like this:
template: name: Steve Litt date: 1/21/2013 city: Orlando, Florida
Then write a very simple nested loop that, upon encountering @name@, substitutes "Steve Litt". This can even be used to link a bitmap graphic into an Inkscape file.
The beauty of this is it's a very generic tool. All specifics are in the Inkscape template file and the YAML file, but the Python program itself is generic.
This technique could actually be used with any kind of template file, but of course this is the Inkscape mailing list.
SteveT
------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
participants (2)
-
Sean Oduntain
-
Steve Litt