inkscape-hatch-patterns
inkscape-hatch-patterns copied to clipboard
Issue with HatchPatterns.svg file
I get an error message when I attempt to view the HatchPatterns.svg file in my browser (Chrome). This is the error message:
Sorry, this file is invalid so it cannot be displayed.
I downloaded the repo as a zip, and I see the following message:
error on line 6 at column 30: Namespace prefix inscape for stockid on pattern is not defined
Thought I would share!
Not surprised by the first error, the SVG is for Inkscape. Did you try opening it in Inkscape?
Where are you seeing that second error?
From the usage instructions:
There are two ways to use the files generated by HatchPatterns.py:
HatchPatterns.svg contains a rectangle for each pattern. You can copy/paste these rectangles to the drawing where you want to use them, and copy/ctrl-paste the object properties to the objects that must have the patterns. Copy/ctrl-pasting object properties is a very fast way to work.
The second solution is to open the ..\share\patterns\pattern.svg file in a text editor and append the contents of Defs.txt to the
... section. With this second option, the patterns will be available in every Inkscape session from then on.