Forum Replies Created
-
AuthorPosts
-
January 31, 2022 at 1:37 pm in reply to: problems in group element with attribute when using “colon” #29748stephanschulzParticipant
Thank you again for taking the time to respond.
I understand now.
Inside the SVG I have to make sure that I am setting up the proper namespace for inkscape usage.The following block needs to be included otherwise my svg reader throughs an error about the included colon.
`
svg->setAttribute(“xmlns:dc”,”http://purl.org/dc/elements/1.1/”);
svg->setAttribute(“xmlns:cc”,”http://creativecommons.org/ns#”);
svg->setAttribute(“xmlns:rdf”,”http://www.w3.org/1999/02/22-rdf-syntax-ns#”);
svg->setAttribute(“xmlns:svg”,”http://www.w3.org/2000/svg”);
svg->setAttribute(“xmlns”,”http://www.w3.org/2000/svg”);
svg->setAttribute(“xmlns:inkscape”,”http://www.inkscape.org/namespaces/inkscape”);
`
Thank you!
January 31, 2022 at 1:37 pm in reply to: problems in group element with attribute when using “colon” #29747stephanschulzParticipantYou are saying that using eraul signs and hyphens in the SVG are not proper?
Here https://wiki.evilmadscientist.com/AxiDraw_Layer_Control
you are showing us to do just that
inkscape:groupmode=”layer”and the example SVGs that come with Axidraw-Examples-1-2.4 also have that in them
inkscape:groupmode=”layer”I am confused.
???January 30, 2022 at 1:30 pm in reply to: problems in group element with attribute when using “colon” #29745stephanschulzParticipantThanks for the reply.
So I take it
inkscape:label = “1 +D250name” and inkscape:groupmode=”layer”
both really need the “inkscape:”
and axidraw API will not work with just
label = “1 +D250name” and groupmode=”layer” ?For now I will follow your suggestion and use the simple string concatenation approach.
stephanschulzParticipantNoted. Thanks.
I noticed I misspelled SVG and instead wrote SVF in the title. Is there a way to edit that?
I thought that the Axidraw API would have a way to interface/use the Hershey Text, since Inkscape does it too.
But it’s not a big problem.I integrated these fonts in the ofxHersheyText openframeworks addon: https://github.com/stephanschulz/ofxHersheyFont
And here how to parse the font’s SVGs in to a string that can be run as a python script that then uses the axidraw API to plot.
https://github.com/stephanschulz/ofxHersheyFont/blob/master/example-python-string/src/ofApp.cpp#L22 -
AuthorPosts