Fri 08 Aug 2003 07:33:16 PM UTC, original submission:
{ Transfered from deprecated bug tracker:
[ 618089 ] incomplete graphic when reading from svg
Submitted By:
Stefan Seefeld (stefan)
Date Submitted:
2002-10-03 16:22}
I read in the attached svg, but the generated graphic
misses two things:
- the 'line' elements don't appear
- the text style 'underline' is ignored
(I'm running sketch 0.6.14 with PyXML 0.8.1)
Date: 2002-11-01 20:36
Sender: bernhard
Logged In: YES
user_id=2369
> Is there any documentation I could read?
The developer's guide would be a start:
http://sketch.sourceforge.net/Doc/devguide.html
> The UI suggests you don't have lines, only polygons.
Actually only "polybeziers". Polygons and lines are
only
special cases of that in Sketch.
> Therefor, should a <line/> be converted into
a polygon.
Basically, yes. The implementation will probably be similar
to the polyline method in svgloader.py. Create a path
object, call AppendLine for the start and end points and add
it as a bezier object.
> and saved as a <path/>
That happens automatically as Sketch doesn't have a special
type for lines. It would be possible for svgsaver to figure
out whether a given bezier object could be stored as a line
or a polygon as opposed to a path but I'm not sure it's
worth it.
Date: 2002-10-30 17:22
Sender: stefan
Logged In: YES
user_id=764
ok, I'd like to look into this. Is there any documentation I
could read ?
The UI suggests you don't have lines, only polygons.
Therefor, should
a <line/> be converted into a polygon (and saved as
a <path/> ?)
any pointers are highly appreciated...
Date: 2002-10-17 20:50
Sender: bernhard
Logged In: YES
user_id=2369
Assigned to nobody because I probably won't be working on
this any time soon.
Date: 2002-10-17 20:49
Sender: bernhard
Logged In: YES
user_id=2369
Well, the SVG filters are very incomplete. Implementing the
line element shouldn't be difficult. Text underlining would
have to be simulated by creating a separate line object
since Sketch doesn't support underlined text directly.
I don't have the time to implement this at the moment.
Patches would be welcome.
|