Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
106 user(s) are online (7 user(s) are browsing News)

Members: 1
Guests: 105

sailor, more...

Headlines


Recent Replied Topics
Software News : Scalable Vector Graphics (SVG) Datatype
Posted by ssolie on 2006/12/13 17:16:10 (1696 reads) News by the same author

Fredrik Wikstrom has managed to put together an SVG datatype for OS4.

Grab it from OS4 Depot.

Installation:

1. Copy svg.datatype to SYS:Classes/DataTypes/.
2. Copy SVG to DEVS:DataTypes/.

SDK users can just use "make install".

The OS4 native expat.library is needed in order for the datatype to work (it is not enough to just use a .l.main glue file!). This library can be found as part of the expat-ppc archive on OS4Depot.

Compiling:

"make".

Bugs:

None known.


Printer friendly page Send this story to a friend
The comments are owned by the author. We aren't responsible for their content.
Author Thread
Chris
Published: 2006/12/13 19:01  Updated: 2006/12/13 19:01
Amigans Defender
Joined: 11/17/2006
From: England
Comments: 3361
 Re: Scalable Vector Graphics (SVG) Datatype
Something OS4 could do with is a scalable graphics datatype superclass - so you can specify the picture size you want (Multiview could then scale it to the size of the current window).

Chris
yoodoo2
Published: 2006/12/13 20:09  Updated: 2006/12/13 20:09
Just popping in
Joined: 12/09/2006
From: The Bostin' Black Country
Comments: 111
 Re: Scalable Vector Graphics (SVG) Datatype
Indeed. This is a good start though, and I'm sure I'll find a use for it in MindSpace.
eXec
Published: 2006/12/14 1:17  Updated: 2006/12/14 1:17
Just popping in
Joined: 12/04/2006
From:
Comments: 33
 Re: Scalable Vector Graphics (SVG) Datatype
salass00
Published: 2006/12/14 14:26  Updated: 2006/12/14 14:26
Just can't stay away
Joined: 11/30/2006
From: Finland
Comments: 1876
 Re: Scalable Vector Graphics (SVG) Datatype
I've uploaded a new version (0.2) to OS4Depot which fixes some of the crashing. It's not perfect (see the Bugs section in the readme) but at least it doesn't crash so often (instead it fails silently...).

BTW I tried increasing the priority on the descriptor file like someone suggested, only it didn't work so well, so I changed it back. With the priority 1 descriptor all svg files were opened as text files. It seems the priority works the opposite to what you would expect, and there is unfortunately no way to set a negative priority...
Chris
Published: 2006/12/15 0:20  Updated: 2006/12/15 0:20
Amigans Defender
Joined: 11/17/2006
From: England
Comments: 3361
 Re: Scalable Vector Graphics (SVG) Datatype
I've set negative priorities before using dtdesc. However, it sounds like Sebastian Bauer might need to fix the priority of the HTML descriptor, or make it a bit more strict.
salass00
Published: 2006/12/15 9:29  Updated: 2006/12/15 9:29
Just can't stay away
Joined: 11/30/2006
From: Finland
Comments: 1876
 Re: Scalable Vector Graphics (SVG) Datatype
@Chris

I checked one of the datatypes header files and the priority field is an unsigned 16-bit integer. I even tried inputting 65535 which would produce -1 if it was treated as signed and it gave the same result as before...
Raziel
Published: 2006/12/16 18:58  Updated: 2006/12/16 18:58
Home away from home
Joined: 11/26/2006
From: a dying planet
Comments: 5402
 Re: Scalable Vector Graphics (SVG) Datatype
Thanks a lot Fredrik, another one from you, cool
poweramiga
Published: 2006/12/29 3:41  Updated: 2006/12/29 3:41
Amigans Defender
Joined: 11/18/2006
From: Flinders NSW Australia
Comments: 772
 Re: Scalable Vector Graphics (SVG) Datatype
insalled and using but not 100% sure what its doing
General
Site sponsors
Advertise Here

Site statistics
Registered members
  1671
Logged in last:
  24 hours, 66
  7 days, 127
  30 days, 174

Top Posters
1 kas1e
kas1e 8940
2 Raziel
Raziel 5402
3 LiveForIt
LiveForIt 3771
4 samo79
samo79 3750
5 ChrisH
ChrisH 3582
6 Chris
Chris 3361
7 orgin
orgin 3266
8 328gts
328gts 3014
9 Hans
Hans 2659
10 Antique
Antique 2613

New Members
kishigo
kishigo 03/25/2024
amigait
amigait 03/21/2024
fordprefect
fordprefect 03/06/2024
brufnus
brufnus 02/21/2024
Sugo77
Sugo77 02/11/2024
tomkrk78
tomkrk78 02/01/2024
Radar103
Radar103 01/28/2024
alanb
alanb 01/21/2024
Calab
Calab 01/20/2024
nikitas
nikitas 01/15/2024


Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project