blob: 7f9f30a4407aa6cf43d5ac533dc7cabdbb95c485 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Internationalization
These files are internationalized the same way as
share/filters/filters/svg The i18n.py script called from the makefile
will extract strings from the *.svg files into a *.svg.h
file. Intltool is then able to extracts these strings just like from
normal .h files.
Adding new files
Symbol files should be carefully prepared.
1. The SVG should be clean: No unnecessary transforms, sensible path
data, etc. Do a manual inspection. Remove cruft like guide-lines,
grids, etc.
2. Avoid adding unnecessary style properties in the symbol elements;
this prevents the user from over-riding the default styling by
specifying the style on the <use> element. Default styling can be
specified in the root SVG element. Inkscape will apply this
styling by default in the <use> element.
3. Provide a meaningful <title> element for each symbol. This will be
appear in the GUI as a tool-tip.
4. Make sure there are no "transform" elements in the <symbol>
element. Transforms are not allowed per specification and are not
supported in most browsers. ('refX' and 'refY' are allowed in SVG
2.)
5. Add a section with <use> elements to demonstrate the symbols is the
file is opened by itself.
|