-
Notifications
You must be signed in to change notification settings - Fork 7
/
FAQ.html
95 lines (88 loc) · 2.96 KB
/
FAQ.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" style="text/css" href="../faq.css">
<title>FAQ</title>
</HEAD>
<BODY><dl>
<dt class="question">
Q. 1
I put my SVG files on the Web in compress form (i.e. .svgz),
but browsers don't seem to be able to view them but want the
viewer to save the file.
<dd class="answer">
A.
Your web server needs to tell the requester that the file
is compressed SVG. It does this by returning the correct
Content-Type in the header of the HTTP response.
You need to tell your web server about these files.
Add
<pre class="programlisting">
AddType image/svg+xml .svg .svgz
AddEncoding x-gzip .svgz
</pre>
to the <VirtualHost> stanza in your httpd.conf file.
(See <a class="ulink" href="http://httpd.apache.org/docs/1.3/mod/mod_mime.html" target="_top">http://httpd.apache.org/docs/1.3/mod/mod_mime.html</a>.)
Alternatively, you can add it to an .htaccess within a directory to
have it apply to it and all sub-directories. That directory must be
configured in the server to allow .htaccess, i.e. the server has to
know to read the .htaccess file.
Note that the server must return a Content-Encoding of
x-gzip and not gzip for Firefox to understand the type correctly.
Opera understands both forms.
</dd>
</dt>
<center><hr width="5%"></center>
<dt class="question">
Q. 2
I've included the AddType and AddEncoding directives in the Apache
configuration. However, things still don't work.
<dd class="answer">
A.
Make certain to clear your cache. Your browser is still
probably
I use
<div class="codeToggle"><div class="unhidden" id="idp6322944"><div><pre class="rcode" title="R code">
library(RCurl)
x = getURLContent(u, .opts = list(verbose = TRUE), binary = TRUE)
</pre></div></div></div>
<div class="clearFloat"></div>
to look at the header of the response to see what is happening.
You can also use the Live HTTP Headers extension for Firefox.
</dd>
</dt>
<center><hr width="5%"></center>
<dt class="question">
Q. 3
I can read .svgz files from the Web but not locally.
<dd class="answer">
A.
It is not clear that Firefox has support for this yet.
Opera does.
</dd>
</dt>
<center><hr width="5%"></center>
<dt class="question">
Q. 4
Tooltips. How do I get these to work for different browsers?
<dd class="answer">
A.
Within a path, for Opera, specify a title node as a child of path with the text of the tooltip.
For Firefox, put a xlink:title attribute on the path.
For Webkit (Safari and Google Chrome), enclose the path element within an
a element with a xlink:title attribute.
<p></p>
<p></p>
<p>
We can refer to a CSS with a relative file name,
a full path name,
file:///Users/duncan/Rpackages/SVGAnnotation/CSS/RSVGPlot.css
or
file://localhost/Users/duncan/Rpackages/SVGAnnotation/CSS/RSVGPlot.css
</p>
</dd>
</dt>
<center><hr width="5%"></center>
</dl></BODY>
</HTML>