03919b7845e461f72fa5d954b8124d27481c46b0JazzyNicoInternationalization
03919b7845e461f72fa5d954b8124d27481c46b0JazzyNico
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-freeThese files are internationalized the same way as
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-freeshare/filters/filters/svg The i18n.py script called from the makefile
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-freewill extract strings from the *.svg files into a *.svg.h
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-freefile. Intltool is then able to extracts these strings just like from
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-freenormal .h files.
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-freeAdding new files
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-freeSymbol files should be carefully prepared.
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free1. The SVG should be clean: No unnecessary transforms, sensible path
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free data, etc. Do a manual inspection. Remove cruft like guide-lines,
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free grids, etc.
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free2. Avoid adding unnecessary style properties in the symbol elements;
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free this prevents the user from over-riding the default styling by
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free specifying the style on the <use> element. Default styling can be
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free specified in the root SVG element. Inkscape will apply this
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free styling by default in the <use> element.
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free3. Provide a meaningful <title> element for each symbol. This will be
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free appear in the GUI as a tool-tip.
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free4. Make sure there are no "transform" elements in the <symbol>
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free element. Transforms are not allowed per specification and are not
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free supported in most browsers. ('refX' and 'refY' are allowed in SVG
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free 2.)
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free5. Add a section with <use> elements to demonstrate the symbols is the
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free file is opened by itself.
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free
5a2910fc1662d224eb432e8c21634d2007610f7dtavmjong-free