Quantcast
Channel: fritzing forum - Latest posts
Viewing all articles
Browse latest Browse all 29615

Bendable legs hell

$
0
0

Well at least now I know why its broken if not (yet) how to fix it. I started from your new file and loaded/saved it with Inkscape (making no changes) and the xml changes like this:

$ xml.pl Voltmeter_moded_040484b42d1e64d6830f5712366a2bd0_1_breadboard.svg.orig Voltmeter_moded_040484b42d1e64d6830f5712366a2bd0_1_breadboard.svg

new file2: defs id="defs3500"

new file2: metadata id="metadata3502"

new file2: metadata rdf:RDF cc:Work dc:format="image/svg+xml"

new file2: metadata rdf:RDF cc:Work dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"

new file2: metadata rdf:RDF cc:Work rdf:about=""no data""

new file2: xmlns:svg="http://www.w3.org/2000/svg"

which seems harmless enough. (xml.pl is doing an xml diff of the two input files as Inkscape seems to change the xml order more or less at random when it writes). So I replaced your original file with the one Inkscape wrote then used Inkscape to move the black pin .1 inch to the left. As usual (at least for me) that breaks Fritzing, but I now know why (if not how to fix it):

$ xml.pl Voltmeter_moded_040484b42d1e64d6830f5712366a2bd0_1_breadboard.svg.orig Voltmeter_moded_040484b42d1e64d6830f5712366a2bd0_1_breadboard.svg

file1: g g g4468 path path11_1_ d=m49.816 39.66v9.417
file2: g g g4468 path path11_1_ d="M 57.576086,39.66 57.576086,49.077"

new file1: g g g4468 path path11_1_ stroke="#020000"

new file1: g g g4468 path path11_1_ stroke-width="3"

file1: g g g4468 rect connector2pin x=48.316
file2: g g g4468 rect connector2pin x="57.036087"

file1: g g g4468 rect connector2pin y=47.469
file2: g g g4468 rect connector2pin y="47.469002"

new file1: g line connector2leg fill="none"

new file1: g line connector2leg stroke="#020000"

new file1: g line connector2leg stroke-linecap="round"

new file1: g line connector2leg stroke-width="3"

file1: g line connector2leg x1=49.816
file2: g line connector2leg x1="57.496235"

file1: g line connector2leg x2=49.816
file2: g line connector2leg x2="57.496235"

file1: g line connector2leg y2=53.425
file2: g line connector2leg y2="53.424999"

new file2: g g g4468 path path11_1_ style="stroke:#020000;stroke-width:3"

new file2: g line connector2leg style="fill:none;stroke:#020000;stroke-width:3;stroke-linecap:round"

Inkscape is helpfully inserting style xml in to the output. I've tried changing preferences->Input/Output->SVG output->path data->path string format

from optimized to absolute

but Inkscape still adds in the style line. So unless someone knows the Inkscape magic to supress this, I'm going to be searching the Inkscape docs (more, I already have and they are not illuminating) and site to see if there is a cure, and if not its perl to post process the svg output to remove the style lines again (it looks like a simple enough text transformation, and I need to kill the px added to text lines anyway, maybe I'll start there :slight_smile: ). Again thanks for identifying the problem, I would have been lost not even knowing what css is.

Peter Van Epp


Viewing all articles
Browse latest Browse all 29615

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>