Re: Strange behavior
- From: Lars Clausen <lrclause cs uiuc edu>
- To: dia-list gnome org
- Subject: Re: Strange behavior
- Date: Wed, 21 May 2003 19:39:36 -0500
On 19 May 2003, Philip Serracino Inglott wrote:
Hi,
When i try and load this svg file the path is lost, not rendered AND
lost on exporting a shape:
--snip--
<svg width="210mm" height="297mm" >
<rect
style="font-size:12;fill:#808080;fill-rule:evenodd;stroke-width:1pt;"
id="rect104" width="430.359" height="346.304" x="50.4327"
y="131.125" />
<path style="fill:#ca8080;stroke-width:1;"
d="M 289.147 329.494 L 289.147 702.696 L 712.782 702.696 L 712.782
329.494 L 289.147 329.494 Z "
/>
</svg>
--snip--
but when I manauly create this shape file and load it into the a sheet
is is displayed fine:
--snip--
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"
xmlns:svg="http://www.w3.org/2000/svg">
<name>dia - text</name>
<icon>text.png</icon>
<connections> <point x="50.4327" y="131.125"/> </connections>
<aspectratio type="fixed"/>
<svg:svg>
<svg:rect style="fill: #818181" x="50.4327" y="131.125"
width="430.359" height="346.304"/>
<svg:rect style="fill: none; stroke-width: 1; stroke: #ffffff"
x="50.4327" y="131.125" width="430.359" height="346.304"/>
<svg:path
style="fill: #ca8080; stroke-width: 1;"
d="M 289.147 329.494 L 289.147 702.696 L 712.782 702.696 L 712.782
329.494 L 289.147 329.494 Z " />
</svg:svg>
</shape>
--snip--
Sorry for posting xml in the list, but since I do not know C I could not
hope to pinpoint the bug further.
There's a few things that could make the difference (or several of them),
I'm not familiar enough with the SVG reader to tell: The svg: prefix and the
extra spaces (Sodipodi for instance cares about such whitespace). But the
rect comes up, right? That makes it rather odd...
I'm sorry I can't help much right now, I'm going to get married in three
days and have only limited computer access.
-Lars
--
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| HÃrdgrim of Numenor
"I do not agree with a word that you say, but I |----------------------------
will defend to the death your right to say it." | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire | what's with the handbasket?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]