On Thu, Nov 24, 2005 at 08:10:26PM +0100, jiho wrote:
2/ After some pstoedit command line stuff a second problem arises: all files converted this way are displayed fine in Inkscape but behave strangely: any new element is enormous, no dashes can be
I posted a diff between the faulty and the copy-pasted file (which behaves correctly). Many are attributes additions (inkscape:r_cx and cy) but there are a few transform which changed as in there:
< transform="translate(82.415,255.15) scale(1,-1) scale(1) " < style="font-family:'Helvetica',sans-serif;font-size: 9.4488;stroke:none;fill:black;"
< id="text522">0</text>
transform="matrix(1,0,0,-1,82.415,255.15)" style="font-size:9.44880009px;fill:#000000;stroke:none;font-
family:"Helvetica", sans-serif"
id="text522" inkscape:r_cx="true" inkscape:r_cy="true">0</text>
in addition there is a scale parameter at the beginning of the file which looks weird and is not preserved by copy-paste in the new document:
< transform="translate(-0.03125,1.1875) scale(1,-1) scale (0.0017361) "
This looks like the most interesting bit.
< xml:space="preserve" < style="stroke:black;stroke-linecap:butt;stroke- linejoin:miter;stroke-miterlimit:10.433;stroke-dasharray:none;stroke- dashoffset:0;stroke-opacity:1;fill:none;fill-rule:even-odd;fill- opacity:1;font-style:normal;font-variant:normal;font- weight:normal;font-stretch:normal;font-size-adjust:none;letter- spacing:normal;word-spacing:normal;text-anchor:start;"
< id="g10">
inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1"> <rect x="-346.13388" y="258.07648" width="720" height="720" style="fill:#ffffff;stroke:none" id="rect8" inkscape:r_cx="true" inkscape:r_cy="true" /> <g transform="matrix(1.249992,0,0,-1.249992,-368.6339,1113.076)"
The above line also looks interesting
xml:space="preserve" style="font-style:normal;font-variant:normal;font-
weight:normal;font-stretch:normal;letter-spacing:normal;word- spacing:normal;text-anchor:start;fill:none;fill-opacity: 1;stroke:#000000;stroke-linecap:butt;stroke-linejoin:miter;stroke- miterlimit:10.43299961;stroke-dasharray:none;stroke-dashoffset: 0;stroke-opacity:1"
id="g10" inkscape:r_cx="true" inkscape:r_cy="true">
could it be that?
Yeah could be; next, experiment around with manually doing some of these changes and narrow in on which one is breaking.
In addition my point is not to find a way to sort it for my particular use (I'm quite happy with the copy paste even if it's an additional step) but I think that, as Inkscape is apparently capable of handling this, it should be done when first opening the file.
Well, probably not... It's probably a bug in the converter, so *that's* what should be fixed... In any case, narrow in on where the problem is being caused, and that should give a better indication where the fix should be applied.
Bryce