A mini exercise for the ‘Badness & Conflict’ workshop, an initiative of Pierre Huyghebaert in collaboration with http://lgru.net and Constant.
This setup allows to recombinate layers from multiple svg files to one svg file.
How it works
The svg files are separated in layers, each layer belonging to a type, defined in a custom svg attribute typus="XXXX00"
.
The script selects ONE layer of each type from ALL svg files and creates a new svg file.
Naming Conventions
Layertypes are defined by a name and a number: NAME00, with NAME being used as differentiator while the number 00 is intended for possible variations. E.g. if there are layers with the attributes NAME00, NAME01, NAME02 and NAME03 the script will select ONE of them, this means NAME00 OR NAME01 OR NAME02 OR NAME03. The typus
attribute MUST end with two digits.
While NAME is the relevant differentiator, the number suffix is needed to force layer pairings. You may define a sublayer with the following syntax: PARENT01-CHILD01(-GRANDCHILD01-XXXX01).
E.g. you may define various points for the base of an i.
Annotated Versions
To ease the evaluation we do also create an annotated svg file. Every source svg file gets an individual color (6 characters from its md5sum) and there is the possibility to make comments, similar to source code comments, in a special color which will be left intact for this rendering.