bugSkencil - Bugs: bug #4684, incomplete graphic when reading...

 
 

bug #4684: incomplete graphic when reading from svg

Submitter:  Bernhard Reiter <bernhard>
Submitted:  Fri 08 Aug 2003 07:33:16 PM UTC
   
 
Category:  None Severity:  2 - Minor
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  0.6.x
* Mandatory Fields

Add a New Comment Rich Markup
   

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.


Bernhard Reiter <bernhard>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #586:  resolve.svg added by bernhard (3KiB - application/octet-stream - File Added32314: resolve.svg2002-10-03 16:22stefan)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-cf05.
Corresponding source code