Subject: Re: SVG viewer
To: None <netbsd-help@netbsd.org>
From: Gan Uesli Starling <alias@starling.us>
List: netbsd-help
Date: 12/29/2003 22:45:34
Juan RP wrote:
> On Mon, 29 Dec 2003 18:06:16 -0500
> Gan Uesli Starling <alias@starling.us> wrote:
> 
> 
>>Is there an SVG viewer for NetBSD? I don't seem to
>>see any such listed in pkgsrc/graphics?
>>
>>I already know about Sodipodi. This is for hand-
>>built SVG per the O'Reilly book...and eventually
>>al la Perl...for graphing and such. Sodipodi crashes
>>on some of the O'Reilly examples that work okay in
>>MSIE 6 SP 1 in Win2K yet not in Mozilla 1.4 on NetBSD.
> 
> 
> Have you tried www/amaya?

Yes, a while back...and again just now. Alas, the 'scale'
attribute in tags like below do not seem to work...

<use xlink:href="#foo" transform="scale(-1, 1)"/>

...so can't mirror image elements to reuse them as in this
image of a cat from the O'Reilly book.

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
        "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="140" height="170">
   <title>Cat</title>
   <desc>Stick Figure of a Cat</desc>
   <!-- head -->
   <circle cx="70" cy="95" r="50" style="stroke: black; fill: none;"/>
   <!-- eyes -->
   <circle cx="55" cy="80" r="5" style="stroke:black; fill: green;"/>
   <circle cx="85" cy="80" r="5" style="stroke:black; fill: green;"/>
   <!-- whiskers -->
   <g id="whiskers">
     <line x1="75" y1="95" x2="135" y2="85" style="stroke: black;"/>
     <line x1="75" y1="95" x2="135" y2="105" style="stroke: black;"/>
   </g>
   <use xlink:href="#whiskers" transform="scale(-2, 2) translate(-140 0)"/>
   <!-- ears -->
   <polyline points="76 52, 58 0, 38 35, 18 0, 0 52" transform="translate(32 10)"
             style="stroke: black; fill: none;"/>
   <!-- mouth -->
   <polyline points="0 0, 10 10, 60 10, 70 0" transform="translate(35 110)"
             style="stroke: black; fill: none;"/>
   <!-- nose -->
   <path d="M 75 90 L 65 90 A 5 10 0 0 0 75 90"
         style="stroke: black; fill: pink;"/>
   <!-- text -->
   <text x="60" y="165"
         style="font-family: sans-serif; font-size: 18px;  stroke: none; fill: blue;">Cat
   </text>
</svg>

-- 

  Mistera Sturno - Rarest Extinct Bird

  <(+)__       Gan Uesli Starling
   ((__/)=-    Kalamazoo, MI, USA
    `||`
     ++        http://starling.us