fix utf-8 chars in svg template
[ink-generator.git] / generator.inx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension" -->
3 <inkscape-extension>
4
5   <_name>Generator</_name>
6   <id>generator.aurium.colivre.coop.br</id>
7
8   <dependency type="executable" location="extensions">generator.sh</dependency>
9
10   <param name="tab" type="notebook">
11     <page name="tabA" _gui-text="Configuration">
12
13   <param name="var-type" type="enum" _gui-text="Collect values by:">
14     <_item value="column">column position</_item>
15     <_item value="name">column name</_item>
16   </param>
17
18   <param name="sep" type="description">•••••••••••••••••••••••••••••••••••••••••••••••••••••••••</param>
19
20   <_param name="info1" type="description">Extra textual values to be replaced:</_param>
21   <param name="extra-vars" type="string" gui-text=" "></param>
22
23   <param name="sep" type="description">•••••••••••••••••••••••••••••••••••••••••••••••••••••••••</param>
24
25   <param name="data-file" type="string" _gui-text="Data file:"></param>
26   <_param name="extraVarInfo" type="description">The data file must be a CSV with comma separated columns</_param>
27
28   <param name="sep" type="description">•••••••••••••••••••••••••••••••••••••••••••••••••••••••••</param>
29
30   <param name="format" type="enum" _gui-text="Exportation format:">
31     <item>PDF</item>
32     <item>SVG</item>
33     <item>PS</item>
34     <item>EPS</item>
35     <item>PNG</item>
36     <item>JPG</item>
37   </param>
38   <param name="dpi" type="string" _gui-text="DPI (for PNG and JPG):">90</param>
39   <param name="output" type="string" _gui-text="Output pattern:">$HOME/generator-output/%VAR_1%.pdf</param>
40   <param name="preview" type="boolean" _gui-text="Preview (make and show only the frist register):"></param>
41
42     </page>
43     <page name="tabB" _gui-text="Help">
44
45   <_param name="helpTxt" type="description">
46   How vars are replaced?
47
48   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.
49   If you select "column position", # is the column number.
50   If you select "column name", # is the column name, defined in the first line.
51
52   I can replace other text paterns, like element values?
53
54   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!
55   For example, we can make the red and green colors as variables to be replaced by some other colors form the database at the columns "secure color" and "sector color":
56   #ff0000=>secure_color|#00ff00=>sector_color
57   All pure red and pure green elementes will have new colors for each data line.
58
59   If you are not sure about the usable variables, run it on preview mode and the replaceable texts wil be showed to you.
60   </_param>
61
62     </page>
63   </param>
64
65   <effect>
66     <object-type>all</object-type>
67     <effects-menu>
68       <submenu _name="Misc"/>
69     </effects-menu>
70   </effect>
71
72   <script>
73       <command reldir="extensions">generator.sh</command>
74   </script>
75
76 </inkscape-extension>