Gentoo Archives: gentoo-user

From: Nikos Chantziaras <realnc@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: SVG plugin
Date: Mon, 15 Jun 2009 14:05:53
Message-Id: h15fmc$f6m$1@ger.gmane.org
In Reply to: Re: [gentoo-user] SVG plugin by Mick
1 On 06/15/2009 03:30 PM, Mick wrote:
2 > 2009/6/15 Florian Philipp<lists@f_philipp.fastmail.net>:
3 >> Mick schrieb:
4 >>> Hi All,
5 >>>
6 >>> Trying to view a web page I produced some yonks ago, which at that the
7 >>> time would utilise the Adobe SVG plugin to render a gantt chart. The
8 >>> header of the file went like this:
9 >>> =============================================
10 >>> <?xml version="1.0" encoding="iso-8859-1"?>
11 >>> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
12 >>> "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
13 >>> <svg xml:space="preserve" width="10in" height="8in"
14 >>> style="font-family:'Arial';font-size:8">
15 >>> =============================================
16 >>>
17 >>> Adobe seem to have abandoned further development. Any idea what I can
18 >>> use to render such a graphic (image/svg+xml) in a browser?
19 >> Firefox supports svg out of the box, now. Maybe you need the svg
20 >> USE-flag for x11-libs/cairo.
21 >
22 > Hmm, mozilla-firefox does not have an svg flag. Anyway, I have svg in
23 > my /etc/make.conf and also have cairo installed:
24 >
25 > [I] x11-libs/cairo
26 >
27 > Installed versions: 1.8.6-r1!t(18:54:43 03/17/09)(X glitz opengl
28 > svg -cleartype -debug -directfb -doc -xcb)
29 >
30 > It's not just FF, but also Opera and Konqueror cannot render it either
31 > and ask to download a plugin.
32
33 The code in your webpage is probably wrong. You should just use a
34 normal HTML header instead of this weird "<!DOCTYPE svg" thingy you're
35 using now. Embed SVG images inside the page with a PNG fallback like this:
36
37 <object data="URL_TO_YOUR.svg" type="image/svg+xml" height="PIXELS"
38 width="PIXELS">
39 <img src="URL_TO_YOUR.png" height="PIXELS" width="PIXELS">
40 </object>

Replies

Subject Author
Re: [gentoo-user] Re: SVG plugin Kevin O'Gorman <kogorman@×××××.com>