Problems with XAML import (detailed report)

Bug #385822 reported by Chris Morgan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned

Bug Description

Inkscape versions: 0.46, r21486, on Windows XP and Windows 2000.

Importing XAML, there are various problems.

The gradients do get imported, but do not get applied to their objects. It seems that the importer misses the Fill="{StaticResource gradient_name}" and Style="{StaticResource gradient_name}" bits.

In XAML, borders are measured from the edge of the object's fill, outwards, whereas in SVG they're centered on it. This makes for oversized objects on import.

The canvas size is not respected on import.

In another document - the tank symbol - an element on a path, StrokeLineJoin="Bevel" was missed, leaving the corners as the default (miter).

<Canvas> elements get imported as <svg:svg> elements, which causes trouble with Inkscape. After approximately 5 minutes, Inkscape just crashes for no apparent reason. From other bug reports I'm guessing that this is when it tries to auto-save. However, saving manually does work fine. And after having taken the <svg:g> elements out of the <svg:svg> elements and having deleted the <svg:svg> elements, it didn't crash again. <svg:svg> elements are handled really badly in Inkscape, with it getting the "position" wrong (group it contains in one spot and the <svg:svg> element in another), and reporting it as a group - but being unable then to ungroup it, of course. In this case also, the positioning was all wrong, but that may be due to the transforms applied.

In the valve symbol, paths are specified in a different way to the SVG-type paths. Inkscape creates a path, but it's a path with 0 nodes.
  <Path x:Name="ValveBorder1" Cursor="Hand" Stroke="Black" StrokeThickness="0.8" Style="{StaticResource linGradWater}">
      <Path.Data>
          <PathGeometry>
              <PathFigure StartPoint="2.5,4.5" IsClosed="True">
                  <LineSegment Point="2.5,14.5"/>
                  <LineSegment Point="8.0,9.5"/>
                  <LineSegment Point="2.5,4.5"/>
              </PathFigure>
          </PathGeometry>
      </Path.Data>
  </Path>

(FYI, this pump symbol was originally generated in Inkscape, then saved as XAML, and fixed and improved. XAML export was bad, it mostly got the idea across but required significant tweaking before it would display at all.)

I've attached the pump symbol which you can import into Inkscape and see what's wrong with it. If you want a picture of what it should look like, it's in the screenshot at http://watersums.com/node/61?size=_original (the pump isn't very big, but hopefully you get the idea).

Tags: importing xaml
Revision history for this message
Chris Morgan (chris.morgan) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape rev. 22058.
The imported XAML doesn't look like the attached picture.
But I can't open your XAML file in IE8 (with Silverlight) or Kaxml.

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
tags: added: importing
removed: import
Revision history for this message
Beluga (buovjaga) wrote :

Still bad result.

Win 7 64-bit
Inkscape 0.91 r13725

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.