Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
194 user(s) are online (8 user(s) are browsing News)

Members: 0
Guests: 194

more...

Support us!

Headlines


Recent Replied Topics
Software News : Scalable Vector Graphics (SVG) Datatype
Posted by ssolie on 2006/12/13 17:16:10 (1732 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: 3363
 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: 1881
 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: 3363
 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: 1881
 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: 5455
 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
 
Contact us on discord to advertise here.

Site statistics
Registered members
  1699
Logged in last:
  24 hours, 46
  7 days, 110
  30 days, 159

Top Posters
1 kas1e
kas1e 9049
2 Raziel
Raziel 5455
3 LiveForIt
LiveForIt 3821
4 samo79
samo79 3768
5 ChrisH
ChrisH 3582
6 Chris
Chris 3363
7 orgin
orgin 3272
8 328gts
328gts 3066
9 Hans
Hans 2739
10 Antique
Antique 2621

New Members
iMil
iMil 07/18/2024
kikems
kikems 07/09/2024
Boabster
Boabster 07/05/2024
Condor1975
Condor1975 06/29/2024
Redlion
Redlion 06/27/2024
Detordiggei
Detordiggei 06/25/2024
Robin21
Robin21 06/23/2024
Robin21
Robin21 06/23/2024
thalamus
thalamus 06/22/2024
Rosco
Rosco 06/19/2024


Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project