Is there a way to avoid CSS style attributes?
Hi,
inkscape usually puts a lot of attributes into a CSS style attribute, for example:
<rect x="10" y="10" width="10" height="10" style="fill:red;stroke:blue;stroke-width:2" />
Is there a way to tell inkscape to never use the style attribute but instead use SVG attributes? For example:
<rect x="10" y="10" width="10" height="10" fill="red" stroke="blue" stroke-width="2" />
Regards Marco
On 09/07/2012 12:18, ml@...2969... wrote:
inkscape usually puts a lot of attributes into a CSS style attribute, for example:
<rect x="10" y="10" width="10" height="10" style="fill:red;stroke:blue;stroke-width:2" />
Is there a way to tell inkscape to never use the style attribute but instead use SVG attributes? For example:
<rect x="10" y="10" width="10" height="10" fill="red" stroke="blue" stroke-width="2" />
Inkscape internally always converts presentation attributes to CSS style properties. You can save a copy as 'Optimized SVG' which does offer 'Style to XML' among its many options.
The file format 'Optimized SVG' is based on the python script 'scour' [1] and has been bundled with Inkscape since the initial release of Inkscape 0.47. Since Inkscape 0.48, various options of the script are presented in a custom 'Optimized SVG Output' dialog when saving as 'Optimized SVG'.
[1] http://codedread.com/scour/
hth, ~suv
Hi,
On 09/07/2012 12:18, ml@...2969... wrote: Inkscape internally always converts presentation attributes to CSS style properties. You can save a copy as 'Optimized SVG' which does offer 'Style to XML' among its many options.
The file format 'Optimized SVG' is based on the python script 'scour' [1] and has been bundled with Inkscape since the initial release of Inkscape 0.47. Since Inkscape 0.48, various options of the script are presented in a custom 'Optimized SVG Output' dialog when saving as 'Optimized SVG'.
Damn. I am still using inkscape 0.46. But thanks for the hint on scour. I thinks it will be enough to utilize this tool after modifying a file with inkscape.
Regards Marco
participants (2)
-
unknown@example.com
-
~suv