<_name>Generator (Variables)
fablabchemnitz.de.generator
fablabchemnitz_generator.py
<_item value="column">column position
<_item value="name">column name
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••
<_param name="info1" type="description">Extra textual values to be replaced:
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••
<_param name="extraVarInfo" type="description">The data file must be a CSV with comma separated columns
•••••••••••••••••••••••••••••••••••••••••••••••••••••••••
true
- PDF
- SVG
- PS
- EPS
- PNG
- JPG
90
$HOME/generator-output/%VAR_1%.pdf
<_param name="helpTxt" type="description">
How vars are replaced?
The replacer will walk in each data column, line-by-line, and will try to replace the %VAR_#% in the SVG by the column value.
If you select "column position", # is the column number.
If you select "column name", # is the column name, defined in the first line.
If you enable the handling of special characters, characters like & are replaced with entities like & as required by the SVG standard. In most cases, you should enable this option.
I can replace other text paterns, like element values?
Yes. On the second field, add all extra text to be replaced in a line separated by "|", pointing to the replacer column with "=>" (name or number depending on the choice up). Do not use spaces if that is not part of the blocks!
For example, we can make the red and green colors as variables to be replaced by some other colors from the database at the columns "secure color" and "sector color":
#ff0000=>secure color|#00ff00=>sector color
All pure red and pure green elementes will have new colors for each data line.
If you are not sure about the usable variables, run it on preview mode and the replaceable texts wil be showed to you.
all