annotate man/w3.texi @ 178:e703507b8a00

Added tag r20-3b15 for changeset 6075d714658b
author cvs
date Mon, 13 Aug 2007 09:51:18 +0200
parents 8eaf7971accc
children 3d6bfa290dbd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1 \input texinfo
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2 @c
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3 @c Please note that this file uses some constructs not supported by earlier
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
4 @c versions of TeX-info. You must be running one of the newer TeX-info
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
5 @c releases (I currently use version 3.9 from ftp://prep.ai.mit.edu/pub/gnu/)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
6 @c
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
7 @c Please do not send in bug reports about not being able to format the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
8 @c document with 'makeinfo' or 'tex', just upgrade your installation.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
9 @c
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
10 @c Info formatted files are provided in the distribution, and you can
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
11 @c retrieve dvi, postscript, and PDF versions from the web site or FTP
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
12 @c site: http://www.cs.indiana.edu/elisp/w3/docs.html
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
13 @c
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
14 @setfilename w3.info
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 169
diff changeset
15 @settitle Emacs/W3 v3.0.94 User's Manual
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
16 @iftex
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
17 @finalout
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
18 @end iftex
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
19 @c @setchapternewpage odd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
20 @c @smallbook
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
21 @tex
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
22 \overfullrule=0pt
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
23 %\global\baselineskip 30pt % for printing in double space
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
24 @end tex
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
25 @synindex cp fn
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
26 @synindex vr fn
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
27 @dircategory World Wide Web
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
28 @dircategory GNU Emacs Lisp
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
29 @direntry
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
30 * W3: (w3). Emacs/W3 World Wide Web browser.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
31 @end direntry
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
32 @ifinfo
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
33 This file documents the Emacs/W3 World Wide Web browser.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
34
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
35 Copyright (C) 1993, 1994, 1995, 1996 William M. Perry
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
36 Copyright (C) 1996, 1997 Free Software Foundation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
37
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
38 Permission is granted to make and distribute verbatim copies of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
39 this manual provided the copyright notice and this permission notice
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
40 are preserved on all copies.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
41
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
42 @ignore
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
43 Permission is granted to process this file through Tex and print the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
44 results, provided the printed document carries copying permission
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
45 notice identical to this one except for the removal of this paragraph
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
46 (this paragraph not being relevant to the printed manual).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
47
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
48 @end ignore
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
49 @end ifinfo
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
50 @c
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
51 @titlepage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
52 @sp 6
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
53 @center @titlefont{Emacs/W3}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
54 @center @titlefont{User's Manual}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
55 @sp 4
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
56 @center Third Edition, Emacs/W3 Version 3.0
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
57 @sp 1
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
58 @center March 1997
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
59 @sp 5
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
60 @center William M. Perry
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
61 @center @i{wmperry@@cs.indiana.edu}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
62 @page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
63 @vskip 0pt plus 1filll
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
64 Copyright @copyright{} 1993, 1994, 1995 William M. Perry@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
65 Copyright @copyright{} 1996, 1997 Free Software Foundation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
66
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
67 Permission is granted to make and distribute verbatim copies of@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
68 this manual provided the copyright notice and this permission notice@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
69 are preserved on all copies.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
70
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
71 @end titlepage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
72 @page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
73 @ifinfo
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
74 @node Top, Getting Started, (dir), (dir)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
75 @top W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
76
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
77 Users can browse the World Wide Web from within Emacs by using Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
78 All of the widely used (and even some not very widely used) @sc{url}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
79 schemes are supported, and it is very easy to add new methods as the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
80 need arises.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
81
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
82 Emacs/W3 provides some core functionality that can be readily re-used
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
83 from any program in Emacs. Users and other package writers are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
84 encouraged to @i{Web-enable} their applications and daily work routines
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
85 with the library.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
86
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
87 Emacs/W3 is completely customizable, both from Emacs-Lisp and from
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
88 stylesheets @xref{Stylesheets} If there is any aspect of Emacs/W3 that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
89 cannot be modified to your satisfaction, please send mail to the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
90 @t{w3-beta@@indiana.edu} mailing list with any suggestions.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
91 @xref{Reporting Bugs}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
92
173
8eaf7971accc Import from CVS: tag r20-3b13
cvs
parents: 169
diff changeset
93 This manual corresponds to Emacs/W3 v3.0.94
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
94
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
95 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
96 * Getting Started:: Getting up and running with Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
97 * Basic Usage:: Basic movement and usage of Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
98 * Compatibility:: Explanation of compatibility with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
99 other browsers.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
100 * Stylesheets:: How to control the look of web pages
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
101 * Supported URLs:: What @sc{URL} schemes are supported.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
102 * MIME Support:: Support for @sc{mime}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
103 * Security:: Various security methods supported
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
104 * Non-Unix Operating Systems:: Special considerations necessary to get
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
105 up and running correctly under non-unix
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
106 OS's.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
107 * Speech Integration:: Outputting to a speech synthesizer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
108 * Advanced Features:: Some of the more arcane features.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
109 * More Help:: How to get more help---mailing lists,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
110 newsgroups, etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
111 * Future Directions:: Plans for future revisions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
112
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
113 Appendices:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
114 * Reporting Bugs:: How to report a bug in Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
115 * Dealing with Firewalls:: How to get around your firewall.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
116 * Proxy Gateways:: Using a proxy gateway with Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
117 * Installing SSL:: Turning on @sc{ssl} support.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
118 * Mailcap Files:: An explanation of Mailcap files.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
119 * Down with DoubleClick:: Annoyed by advertisements? Read this!
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
120
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
121 Indices:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
122 * General Index:: General Index.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
123 * Key Index:: Menus of command keys and their references.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
124 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
125 @end ifinfo
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
126
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
127 @node Getting Started, Basic Usage, Top, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
128 @chapter Getting Started
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
129 @cindex Clueless in Seattle
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
130 @cindex Getting Started
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
131 @kindex M-x w3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
132 @vindex w3-default-homepage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
133 @findex w3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
134 If installed correctly, starting Emacs/W3 is quite painless. Just type
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
135 @kbd{M-x w3} in a running Emacs session. This will retrieve the default
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
136 page that has been configured (@pxref{Preferences Panel}) - by default the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
137 documentation for Emacs/W3 at Indiana University.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
138
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
139 If the default page is not retrieved correctly at startup, you will have
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
140 to do some customization (@pxref{Preferences Panel}).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
141
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
142 Once started, you can use the mouse and the menu or use the following
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
143 key commands (for more commands and more detail, @pxref{Basic Usage, ,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
144 Basic Usage}).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
145
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
146 @table @asis
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
147 @item move forward
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
148 press the space bar,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
149
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
150 @item move backwards
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
151 press the backspace key,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
152
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
153 @item move to the next HTML reference on the page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
154 press the @kbd{TAB} key,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
155
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
156 @item move to the previous HTML reference on the page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
157 press the @kbd{SHIFT} and @kbd{TAB} keys at the same time. If this does
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
158 not work (some text terminals cannot distinguish between @kbd{TAB} and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
159 @kbd{SHIFT-TAB}, pressing the @kbd{ALT} and @kbd{TAB} keys should also
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
160 work.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
161
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
162 @item follow a link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
163 put the cursor over it
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
164 and press the @kbd{RETURN} key, or @*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
165 click the left mouse button on it,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
166
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
167 @item fetch a @sc{url}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
168 press the @kbd{Control} and @kbd{o} keys at the same time,@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
169 type the @sc{url}, and then press the @kbd{RETURN} key,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
170
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
171 @item return to the last URL you were at
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
172 press the @kbd{l} key,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
173
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
174 @item quit W3 mode
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
175 press the @kbd{q} key.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
176 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
177
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
178 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
179 * Downloading:: Where to download Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
180 * Building and Installing:: Compiling and installing from source.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
181 * Startup Files:: What is where, and why.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
182 * Preferences Panel:: Quick configuration of common options.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
183 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
184
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
185 @node Downloading, Building and Installing, Getting Started, Getting Started
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
186 @section Downloading
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
187
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
188 :: WORK :: What you need, and why@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
189 :: WORK :: Where to download Emacs, XEmacs, various platforms@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
190 :: WORK :: Where to download Emacs/W3@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
191 :: WORK :: Where to download related utilities (netpbm, xv, gimp, etc.)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
192
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
193 @node Building and Installing, Startup Files, Downloading, Getting Started
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
194 @section Building and Installing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
195
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
196 :: WORK :: Document makefile variables@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
197 :: WORK :: Document what gets installed where, why
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
198
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
199 @node Startup Files, Preferences Panel, Building and Installing, Getting Started
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
200 @section Startup Files
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
201 @cindex Startup files
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
202 @cindex Default stylesheet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
203
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
204 :: WORK :: startup files@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
205 This section should document where Emacs/W3 looks for its startup files,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
206 and what each one does. 'profile' 'stylesheet' 'hotlist' 'history' etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
207
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
208 @node Preferences Panel, , Startup Files, Getting Started
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
209 @section Preferences Panel
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
210 @cindex Preferences
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
211 @kindex M-x w3-preferences-edit
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
212
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
213 :: WORK :: pref panel@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
214 This should document the quick preferences panel. M-x w3-preferences-edit
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
215
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
216 @node Basic Usage, Compatibility, Getting Started, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
217 @chapter Basic Usage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
218 @cindex Basic Usage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
219 @kindex space
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
220 @kindex backspace
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
221 @kindex return
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
222 @kindex tab
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
223 @kindex M-tab
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
224 Emacs/W3 is similar to the Info package all Emacs users hold near and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
225 dear to their hearts (@xref{Top,,Info,info, The Info Manual}, for a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
226 description of Info). Basically, @kbd{space} and @kbd{backspace}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
227 control scrolling, and @kbd{return} or the middle mouse button follows a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
228 hypertext link. The @kbd{tab} and @kbd{Meta-tab} keys maneuver around the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
229 various links on the page.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
230
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
231 @b{NOTE:} Starting with Emacs/W3 3.0, form entry areas in a page can be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
232 typed directly into. This is one of the main differences in navigation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
233 from version 2.0. If you are used to using the @kbd{f} and @kbd{b} keys
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
234 to navigate around a buffer, I suggest training yourself to always use
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
235 @kbd{tab} and @kbd{M-tab} - it will save time and frustration on pages
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
236 with lots of form fields.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
237
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
238 By default, hypertext links are surrounded by '[[' and ']]' on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
239 non-graphic terminals (VT100, DOS window, etc.). On a graphics
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
240 terminal, the links are in shown in different colors.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
241 @xref{Stylesheets} for information on how to change this.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
242
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
243 There are approximately 50 keys bound to special Emacs/W3 functions.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
244 The basic rule of thumb regarding keybindings in Emacs/W3 is that a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
245 lowercase key takes an action on the @b{current document}, and an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
246 uppercase key takes an action on the document pointed to by the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
247 hypertext link @b{under the cursor}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
248
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
249 There are several areas that the keybindings fall into: movement,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
250 information, action, and miscellaneous.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
251
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
252 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
253 * Movement:: Moving around in the buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
254 * Information:: Getting information about a document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
255 * Action:: Following links, printing, etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
256 * Miscellaneous:: Everything else.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
257 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
258
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
259 @node Movement, Information, Basic Usage, Basic Usage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
260 @section Movement
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
261
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
262 All the standard Emacs bindings for movement are still in effect, with a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
263 few additions for convenience.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
264
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
265 @table @kbd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
266 @findex w3-scroll-up
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
267 @kindex space
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
268 @item space
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
269 Scroll downward in the buffer. With prefix arg, scroll down that many
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
270 screenfuls.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
271 @kindex backspace
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
272 @findex scroll-down
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
273 @item backspace
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
274 Scroll upward in the buffer. With prefix arg, scroll up that many
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
275 screenfuls.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
276 @kindex <
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
277 @findex w3-start-of-document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
278 @item <
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
279 Goes to the start of document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
280 @kindex >
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
281 @findex w3-end-of-document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
282 @item >
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
283 Goes to the end of document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
284 @kindex b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
285 @kindex Meta-tab
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
286 @findex w3-widget-backward
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
287 @item Meta-tab, Shift-tab, b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
288 Attempts to move backward one link area in the current document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
289 Signals an error if no previous links are found.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
290 @kindex f
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
291 @kindex tab
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
292 @kindex n
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
293 @findex w3-widget-forward
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
294 @item tab, f, n
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
295 Attempts to move forward one link area in the current document. Signals
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
296 an error if no more links are found.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
297 @kindex B
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
298 @findex w3-backward-in-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
299 @item B
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
300 Move backwards in the history stack.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
301 @kindex F
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
302 @findex w3-forward-in-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
303 @item F
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
304 Move forwards in the history stack.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
305 @kindex l
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
306 @findex w3-goto-last-buffer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
307 @item l
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
308 Return to the last buffer shown before this buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
309 @kindex q
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
310 @findex w3-quit
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
311 @item q
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
312 Kill this buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
313 @kindex Q, u
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
314 @findex w3-leave-buffer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
315 @item Q, u
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
316 Bury this buffer, but don't kill it
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
317 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
318
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
319 @node Information, Action, Movement, Basic Usage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
320 @section Information
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
321
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
322 These functions relate information about one or more links on the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
323 current document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
324
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
325 @table @kbd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
326 @kindex v
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
327 @findex url-view-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
328 @item v
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
329 This shows the @sc{url} of the current document in the minibuffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
330 @kindex V
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
331 @findex w3-view-this-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
332 @item V
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
333 This shows the @sc{url} of the hypertext link under point in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
334 minibuffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
335 @kindex i
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
336 @findex w3-document-information
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
337 @item i
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
338 Shows miscellaneous information about the currently displayed document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
339 This includes the @sc{url}, the last modified date, @sc{mime} headers,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
340 the @sc{http} response code, and any relationships to other documents.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
341 Any security information is also displayed.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
342 @kindex I
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
343 @findex w3-document-information-this-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
344 @item I
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
345 Shows information about the @sc{url} at point.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
346 @kindex s
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
347 @findex w3-source-document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
348 @item s
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
349 This shows the @sc{html} source of the current document in a separate buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
350 The buffer's name is based on the document's @sc{url}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
351 @kindex S
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
352 @findex w3-source-document-at-point
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
353 @item S
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
354 Shows the @sc{html} source of the hypertext link under point in a separate
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
355 buffer. The buffer's name is based on the document's @sc{url}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
356 @kindex k
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
357 @findex w3-save-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
358 @item k
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
359 This stores the current document's @sc{url} in the kill ring, and also in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
360 current window-system's clipboard, if possible.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
361 @kindex K
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
362 @findex w3-save-this-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
363 @item K
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
364 Stores the @sc{url} of the document under point in the kill ring, and also in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
365 the current window-system's clipboard, if possible.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
366 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
367
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
368 @node Action, Miscellaneous, Information, Basic Usage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
369 @section Action
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
370
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
371 First, here are the keys and functions that bring up a new hypertext
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
372 page, usually creating a new buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
373 @table @kbd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
374 @kindex m
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
375 @findex w3-complete-link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
376 @item m
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
377 Choose a link from the current buffer and follow it. A completing-read
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
378 is done on all the links, so @kbd{space} and @kbd{TAB} can be used for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
379 completion.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
380 @kindex return
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
381 @findex w3-follow-link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
382 @item return
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
383 Pressing return when over a hyperlink attempts to follow the link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
384 under the cursor. With a prefix argument (@kbd{C-u}), this forces the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
385 file to be saved to disk instead of being passed off to other viewers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
386 or being parsed as @sc{html}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
387
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
388 Pressing return when over a form input field can cause auto-submission
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
389 of the form. This is for Mosaic and Netscape compatibility. If there
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
390 is only one item in the form other than submit or reset buttons, then
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
391
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
392 minibuffer for the data to insert into the input field. Type checking
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
393 is done, and the data is only entered into the form when data of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
394 correct type is entered (ie: cannot enter 44 for 'date' field, etc).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
395
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
396 @kindex Middle Mouse Button
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
397 @findex w3-follow-mouse
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
398 @item Middle Mouse Button
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
399 Attempt to follow a hypertext link under the mouse cursor. Clicking on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
400 a form input field will prompt in the minibuffer for the data to insert
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
401 into the input field. Type checking is done, and the data is only
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
402 entered into the form when data of the correct type is entered (ie:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
403 cannot enter 44 for 'date' field, etc).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
404
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
405 @kindex Control Middle Mouse Button
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
406 @kindex Meta return
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
407 @findex w3-follow-inlined-image
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
408 @item Control Middle Mouse Button, Meta return
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
409 Tries to retrieve the inlined image that is under point. It ignores any
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
410 form entry areas or hyperlinks, and blindly follows any inlined image.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
411 Useful for seeing images that are meant to be used as hyperlinks when
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
412 not on a terminal capable of displaying graphics.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
413
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
414 @kindex p
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
415 @findex w3-print-this-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
416 @item p
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
417 Prints out the current buffer in a variety of formats, including
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
418 PostScript, @sc{html} source, or formatted text.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
419 @kindex P
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
420 @findex w3-print-url-under-point
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
421 @item P
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
422 Prints out the @sc{url} under point in a variety of formats, including
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
423 PostScript, @sc{html} source, or formatted text.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
424 @kindex m
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
425 @findex w3-complete-link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
426 @item m
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
427 Selects a destination from a list of all the hyperlinks in the current
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
428 buffer. Use @kbd{space} and @kbd{tab} to complete on the links.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
429
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
430 @kindex r
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
431 @kindex g
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
432 @findex w3-reload-document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
433 @item r, g
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
434 Reloads the current document. The position within the buffer remains
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
435 the same (unless the document has changed since it was last retrieved,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
436 in which case it should be relatively close). This causes an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
437 unconditional reload from the remote server - the locally cached copy is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
438 not consulted.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
439 @kindex C-o
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
440 @findex w3-fetch
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
441 @item C-o
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
442 Prompts for a @sc{url} in the minibuffer, and attempts to fetch
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
443 it. If there are any errors, or Emacs/W3 cannot understand the type of link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
444 requested, the errors are displayed in a hypertext buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
445 @kindex o
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
446 @findex w3-open-local
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
447 @vindex url-use-hypertext-dired
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
448 @item o
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
449 Opens a local file, interactively. This prompts for a local file name
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
450 to open. The file must exist, and may be a directory. If the requested
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
451 file is a directory and @code{url-use-hypertext-dired} is @code{nil},
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
452 then a dired-mode buffer is displayed. If non@code{nil}, then Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
453 automatically generates a hypertext listing of the directory. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
454 hypertext mode is the default, so that all the keys and functions remain
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
455 the same.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
456
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
457 @kindex M-s
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
458 @findex w3-save-as
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
459 @item M-s
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
460 Save a document to the local disk as HTML Source, Formatted Text, LaTeX
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
461 Source, or Binary.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
462
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
463 @kindex Hv
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
464 @findex w3-show-history-list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
465 @vindex w3-keep-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
466 @item Hv
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
467 If @code{url-keep-history} is non-@code{nil}, then Emacs/W3 keeps track
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
468 of all the @sc{url}s visited in an Emacs session. This function takes all
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
469 the links that are in that internal list, and formats them as hypertext
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
470 links in a list.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
471 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
472
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
473 @cindex Buffer movement
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
474 And here are the commands to move around between Emacs/W3 buffers:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
475
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
476 @table @kbd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
477 @kindex l
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
478 @findex w3-goto-last-buffer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
479 @item l
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
480 Goes to the last WWW buffer seen.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
481 @kindex q
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
482 @findex w3-quit
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
483 @item q
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
484 Quits WWW mode. This kills the current buffer and goes to the most
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
485 recently visited buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
486 @kindex Q
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
487 @findex w3-leave-buffer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
488 @item u
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
489 This is similar to w3-quit, but the buffer is not killed, it is moved to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
490 the bottom of the buffer list (so it is the least likely to show up as
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
491 the default with switch-to-buffer). This is different from
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
492 @code{w3-goto-last-buffer} in that it does not return to the last WWW
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
493 page visited - it is the same as using @code{switch-to-buffer} - the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
494 buffer left in the window is fairly random.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
495 @kindex HB
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
496 @kindex B
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
497 @findex w3-backward-in-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
498 @item HB, B
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
499 Takes one step back along the path in the current history. Has no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
500 effect if at the beginning of the session history.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
501 @kindex HF
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
502 @kindex F
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
503 @findex w3-forward-in-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
504 @item HF, F
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
505 Takes one step forward along the path in the current history. Has no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
506 effect if at the end of the session history.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
507 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
508
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
509 @node Miscellaneous, , Action, Basic Usage
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
510 @section Miscellaneous
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
511
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
512 @table @kbd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
513 @kindex M-m
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
514 @findex w3-mail-current-document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
515 @item M-m
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
516 Mails the current document to someone. Choose from several different
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
517 formats to mail: formatted text, @sc{html} source, PostScript, or LaTeX source.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
518 When the @sc{html} source is mailed, then an appropriate <base> tag is inserted
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
519 at the beginning of the document so that relative links may be followed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
520 correctly by whoever receives the mail.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
521 @kindex M-M
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
522 @findex w3-mail-document-under-point
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
523 @item M-M
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
524 Mails the document pointed to by the hypertext link under point to someone.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
525 Choose from several different formats to mail: formatted text, @sc{html} source,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
526 PostScript, or LaTeX source. When the @sc{html} source is mailed, then an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
527 appropriate <base> tag is inserted at the beginning of the document so that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
528 relative links may be followed correctly by whoever receives the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
529 mail.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
530 @kindex p
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
531 @findex w3-print-this-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
532 @item p
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
533 Prints the current document. Choose from several different formats to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
534 print: formatted text, @sc{html} source, PostScript (with ps-print), or by using
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
535 LaTeX and dvips).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
536
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
537 @findex lpr-buffer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
538 @vindex lpr-command
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
539 @vindex lpr-switches
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
540 When the formatted text is printed, the normal @code{lpr-buffer} function
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
541 is called, and the variables @code{lpr-command} and @code{lpr-switches}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
542 control how the document is printed.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
543
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
544 When the @sc{html} source is printed, then an appropriate <base> tag is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
545 inserted at the beginning of the document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
546 @vindex w3-print-commnad
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
547 @vindex w3-latex-docstyle
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
548 When postscript is printed, then the @sc{html} source of the document is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
549 converted into LaTeX source. There are several variables controlling
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
550 what the final LaTeX document looks like.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
551
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
552 :: WORK :: Document the new LaTeX backend
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
553
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
554 @table @code
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
555 @item w3-latex-use-latex2e
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
556 @vindex w3-latex-use-latex2e
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
557 If non-@code{nil}, configures the LaTeX engine to use the LaTeX2e
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
558 syntax. A @code{nil} value indicates that LaTeX 2.0.9 compabibility
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
559 will be used instead.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
560 @item w3-latex-docstyle
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
561 @vindex w3-latex-docstyle
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
562 The document style to use when printing or mailing converted @sc{html} files
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
563 in LaTeX. Good defaults are: @{article@}, [psfig,twocolumn]@{article@},
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
564 etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
565 @item w3-latex-packages
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
566 @vindex w3-latex-packages
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
567 List of LaTeX packages to include. Currently this is only used if
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
568 @code{w3-latex-use-latex2e} is non-@code{nil}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
569 @item w3-latex-use-maketitle
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
570 @vindex w3-latex-use-maketitle
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
571 If non-@code{nil}, the LaTeX engine will use real LaTeX title pages for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
572 document titles.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
573 @item w3-latex-print-links
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
574 @vindex w3-latex-print-links
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
575 If non-@code{nil}, prints the @sc{url}s of hypertext links as endnotes at the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
576 end of the document. If set to @code{footnote}, prints the @sc{url}'s as
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
577 footnotes on each page.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
578 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
579
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
580 @kindex P
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
581 @findex w3-print-url-under-point
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
582 @item P
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
583 Prints the document pointed to by the hypertext link under point.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
584 Please see the previous item for more information.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
585 @kindex M-x w3-insert-formatted-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
586 @findex w3-insert-formatted-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
587 @item M-x w3-insert-formatted-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
588 Insert a fully formatted @sc{html} link into another buffer. This gets the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
589 name and @sc{url} of either the current buffer, or, with a prefix arg, of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
590 link under point, and construct the appropriate <a...>...</a> markup and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
591 insert it into the desired buffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
592 @kindex M-tab
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
593 @findex w3-insert-this-url
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
594 @item M-tab
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
595 Inserts the @sc{url} of the current document into another buffer. Buffer is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
596 prompted for in the minibuffer. With prefix arg, uses the @sc{url} of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
597 link under point.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
598 @kindex U
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
599 @findex w3-use-links
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
600 @item U
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
601 Selects one of the <LINK> tags from this document and fetch it. Links
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
602 are attributes of a specific document, and can tell such things as who
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
603 made the document, where a table of contents is located, etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
604
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
605 Link tags specify relationships between documents in two ways. Normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
606 (forward) relationships (where the link has a REL="xxx" attribute), and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
607 reverse relationships (where the link has a REV="xxx" attribute). This
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
608 first asks what type of link to follow (Normal or Reverse), then does
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
609 a @code{completing-read} on only the links that have that type of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
610 relationship.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
611 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
612
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
613 @node Compatibility, Stylesheets, Basic Usage, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
614 @chapter Compatibility with other Browsers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
615 Due to the popularity of several other browsers, Emacs/W3 offers an easy
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
616 transition to its much better way of life. This ranges from being able
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
617 to share the same preferences files and disk cache to actually emulating
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
618 the keybindings used in other browsers.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
619
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
620 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
621 * Emulation:: Emacs/W3 can emulate the keybindings and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
622 other behaviours of other browsers.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
623 * Hotlist Handling:: A hotlist is an easy way to keep track of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
624 interesting Web pages without having to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
625 remember the exact path to get there.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
626 * Session History:: Keeping a history of documents visited
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
627 in one Emacs sessions allows the use of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
628 'forward' and 'back' buttons easily.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
629 * Global History:: Keeping a history of all the places ever
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
630 visited on the web.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
631 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
632
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
633 @node Emulation, Hotlist Handling, Compatibility, Compatibility
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
634 @section Emulation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
635 @cindex Browser emulation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
636 @cindex Emulation of other browsers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
637 @cindex Netscape emulation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
638 @cindex Lynx emulation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
639 @findex turn-on-netscape-emulation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
640 @findex turn-on-lynx-emulation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
641 @findex w3-netscape-emulation-minor-mode
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
642 @findex w3-lynx-emulation-minor-mode
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
643 @vindex w3-mode-hook
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
644
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
645 :: WORK :: Document lynx emulation@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
646 @table @kbd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
647 @item Down arrow
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
648 Highlight next topic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
649 @item Up arrow
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
650 Highlight previous topic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
651 @item Right arrow, Return, Enter
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
652 Jump to highlighted topic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
653 @item Left arrow
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
654 Return to previous topic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
655 @item +
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
656 Scroll down to next page (Page-Down)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
657 @item -
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
658 Scroll up to previous page (Page-Up)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
659 @item SPACE
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
660 Scroll down to next page (Page-Down)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
661 @item b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
662 Scroll up to previous page (Page-Up)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
663 @item C-A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
664 Go to first page of the current document (Home)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
665 @item C-E
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
666 Go to last page of the current document (End)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
667 @item C-B
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
668 Scroll up to previous page (Page-Up)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
669 @item C-F
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
670 Scroll down to next page (Page-Down)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
671 @item C-N
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
672 Go forward two lines in the current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
673 @item C-P
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
674 Go back two lines in the current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
675 @item )
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
676 Go forward half a page in the current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
677 @item (
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
678 Go back half a page in the current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
679 @item #
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
680 Go to Toolbar or Banner in the current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
681 @item ?, h
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
682 Help (this screen)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
683 @item a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
684 Add the current link to a bookmark file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
685 @item c
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
686 Send a comment to the document owner
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
687 @item d
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
688 Download the current link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
689 @item e
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
690 Edit the current file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
691 @item g
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
692 Goto a user specified @sc{url} or file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
693 @item i
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
694 Show an index of documents
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
695 @item j
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
696 Execute a jump operation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
697 @item k
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
698 Show a list of key mappings
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
699 @item l
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
700 List references (links) in current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
701 @item m
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
702 Return to main screen
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
703 @item o
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
704 Set your options
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
705 @item p
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
706 Print the current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
707 @item q
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
708 Quit
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
709 @item /
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
710 Search for a string within the current document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
711 @item s
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
712 Enter a search string for an external search
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
713 @item n
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
714 Go to the next search string
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
715 @item v
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
716 View a bookmark file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
717 @item V
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
718 Go to the Visited Links Page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
719 @item x
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
720 Force submission of form or link with no-cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
721 @item z
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
722 Cancel transfer in progress
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
723 @item [backspace]
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
724 Go to the history Page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
725 @item =
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
726 Show file and link info
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
727 @item \
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
728 Toggle document source/rendered view
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
729 @item !
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
730 Spawn your default shell
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
731 @item *
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
732 Toggle image_links mode on and off
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
733 @item [
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
734 Toggle pseudo_inlines mode on and off
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
735 @item ]
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
736 Send an @sc{http} @sc{head} request for the current doc or link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
737 @item C-R
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
738 Reload current file and refresh the screen
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
739 @item C-W
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
740 Refresh the screen
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
741 @item C-U
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
742 Erase input line
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
743 @item C-G
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
744 Cancel input or transfer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
745 @item C-T
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
746 Toggle trace mode on and off
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
747 @item C-K
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
748 Invoke the Cookie Jar Page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
749 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
750
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
751 :: WORK :: Document netscape emulation@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
752 Uh, turn this into pretty tables about what keys are emulated.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
753
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
754 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
755 (define-key w3-netscape-emulation-minor-mode-map "\M-s" 'w3-save-as)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
756 (define-key w3-netscape-emulation-minor-mode-map "\M-m" 'w3-mailto)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
757 (define-key w3-netscape-emulation-minor-mode-map "\M-n" 'make-frame)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
758 (define-key w3-netscape-emulation-minor-mode-map "\M-l" 'w3-fetch)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
759 (define-key w3-netscape-emulation-minor-mode-map "\M-o" 'w3-open-local)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
760 (define-key w3-netscape-emulation-minor-mode-map "\M-p" 'w3-print-this-url)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
761 (define-key w3-netscape-emulation-minor-mode-map "\M-q" 'w3-quit)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
762 (define-key w3-netscape-emulation-minor-mode-map "\M-f" 'w3-search-forward)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
763 (define-key w3-netscape-emulation-minor-mode-map "\M-g" 'w3-search-again)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
764 (define-key w3-netscape-emulation-minor-mode-map "\M-r" 'w3-reload-document)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
765 (define-key w3-netscape-emulation-minor-mode-map "\M-i" 'w3-load-delayed-images)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
766 (define-key w3-netscape-emulation-minor-mode-map "\M-a" 'w3-hotlist-add-document)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
767 (define-key w3-netscape-emulation-minor-mode-map "\M-b" 'w3-show-hotlist)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
768 (define-key w3-netscape-emulation-minor-mode-map "\M-h" 'w3-show-history-list)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
769
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
770 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
771
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
772 @node Hotlist Handling, Session History, Emulation, Compatibility
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
773 @section Hotlist Handling
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
774
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
775 :: WORK :: Document that it supports different types of hotlist formats@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
776 :: WORK :: Make sure everything hotlist related can be accessed via 'h'@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
777 In order to avoid having to traverse many documents to get to the same
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
778 document over and over, Emacs/W3 supports a ``hotlist'' like Mosaic. This is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
779 a file that contains @sc{url}s and aliases. Hotlists allow quick access to any
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
780 document in the Web, providing it has been visited and added to the hotlist.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
781 The variable @code{w3-hotlist-file} determines where this information
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
782 is saved. The structure of the file is compatible with Mosaic's
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
783 hotlist file, so this defaults to @file{~/.mosaic-hotlist-default}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
784
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
785 Hotlist commands are:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
786 @table @kbd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
787 @kindex hi
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
788 @findex w3-hotlist-add-document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
789 @vindex w3-hotlist-file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
790 @item a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
791 Adds the current document to the hotlist, with the buffer name as its
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
792 identifier. Modifies the file specified by @code{w3-hotlist-file}. If
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
793 this is given a prefix-argument (via @kbd{C-u}), the title is prompted
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
794 for instead of automatically defaulting to the document title.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
795
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
796 @findex w3-hotlist-refresh
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
797 @vindex w3-hotlist-file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
798 @kindex hR
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
799 @item hR
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
800 This rereads the default hostlist file specified by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
801 @code{w3-hotlist-file}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
802 @findex w3-hotlist-delete
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
803 @vindex w3-hotlist-file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
804 @kindex hd
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
805 @item d
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
806 Prompts for the alias of the entry to kill. Pressing the spacebar or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
807 tab will list out partial completions. The internal representation of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
808 the hotlist and the file specified by @code{w3-hotlist-file} are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
809 updated.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
810 @item hr
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
811 @kindex hr
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
812 @findex w3-hotlist-rename-entry
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
813 @vindex w3-hotlist-file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
814 Some hotlist item names can be very unwieldy (`Mosaic for X level 2 fill
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
815 out form support'), or uninformative (`Index of /'). Prompts for the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
816 item to rename in the minibuffer---use the spacebar or tab key for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
817 completion. After having chosen an item to rename, prompts for a new
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
818 title until a unique title is entered. Modifies the file specified by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
819 @code{w3-hotlist-file}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
820
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
821 @item hu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
822 @kindex hu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
823 @findex w3-use-hotlist
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
824 Prompts for the alias to jump to. Pressing the @key{spacebar} or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
825 @key{tab} key shows partial completions.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
826
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
827 @item hv
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
828 @kindex hv
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
829 @findex w3-show-hotlist
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
830 Converts the hotlist into @sc{html} and displays it.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
831 @item ha
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
832 @kindex ha
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
833 @findex w3-hotlist-apropos
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
834 Shows the hotlist entries matching a regular expression.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
835 @item hA
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
836 @kindex hA
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
837 @findex w3-hotlist-append
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
838 Appends another hotlist file to the one currently in memory.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
839 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
840 @node Session History, Global History, Hotlist Handling, Compatibility
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
841 @section History
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
842 @cindex History Lists
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
843
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
844 Almost all web browsers keep track of the @sc{url}s followed from a page, so
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
845 that it can provide @b{forward} and @b{back} buttons to keep a @i{path}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
846 of @sc{url}s that can be traversed easily.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
847
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
848 @vindex url-keep-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
849 If the variable @code{url-keep-history} is @code{t}, then Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
850 keeps a list of all the @sc{url}s visited in a session.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
851
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
852 @findex w3-show-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
853 To view a listing of the history for this session of Emacs/W3, use
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
854 @code{M-x w3-show-history} from any buffer, and Emacs/W3 generates an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
855 @sc{html} document showing every @sc{url} visited since Emacs started (or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
856 cleared the history list), and then format it. Any of the links can
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
857 be chosen and followed to the original document. To clear the history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
858 list, choose 'Clear History' from the 'Options' menu.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
859
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
860 @findex w3-forward-in-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
861 @findex w3-backward-in-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
862 @findex w3-fetch
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
863 Another twist on the history list mechanism is the fact that all
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
864 Emacs/W3 buffers remember what @sc{url}, buffer, and buffer position of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
865 last document, and also keeps track of the next location jumped @b{to}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
866 from that buffer. This means that the user can go forwards and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
867 backwards very easily along the path taken to reach a particular
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
868 document. To go forward, use the function @code{w3-forward-in-history},
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
869 to go backward, use the function @code{w3-backward-in-history}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
870
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
871 @node Global History, , Session History, Compatibility
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
872 @section Global History
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
873
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
874 :: WORK :: Document that the global history can have diff. formats@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
875 Most web browsers also support the idea of a ``history'' of @sc{url}s the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
876 user has visited, and it displays them in a different style than normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
877 @sc{url}s.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
878
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
879 @vindex url-keep-history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
880 @vindex url-global-history-file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
881 If the variable @code{url-keep-history} is @code{t}, then Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
882 keeps a list of all the @sc{url}s visited in a session. The file is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
883 automatically written to disk when exiting emacs. The list is added to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
884 those already in the file specified by @code{url-global-history-file},
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
885 which defaults to @file{~/.mosaic-global-history}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
886
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
887 If any @sc{url} in the list is found in the file, it is not saved, but new
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
888 ones are added at the end of the file.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
889
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
890 The function that saves the global history list is smart enough to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
891 notice what style of history list is being used (Netscape, Emacs/W3, or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
892 XMosaic), and writes out the new additions appropriately.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
893
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
894 @cindex Completion of URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
895 @cindex Usefulness of global history
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
896 One of the nice things about keeping a global history files is that Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
897 can use it as a completion table. When doing @kbd{M-x w3-fetch}, pressing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
898 the @kbd{tab} or @kbd{space} key will show all completions for a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
899 partial @sc{url}. This is very useful, especially for very long @sc{url}s that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
900 are not in a hotlist, or for seeing all the pages from a particular web
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
901 site before choosing which to retrieve.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
902
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
903 @node Stylesheets, Supported URLs, Compatibility, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
904 @chapter Stylesheets
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
905 The way in which Emacs/W3 formats a document is very customizable. All
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
906 formatting is now controlled by a default stylesheet set by the user
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
907 with the @code{w3-default-stylesheet} variable. Emacs/W3 currently
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
908 supports the @sc{W3C} recommendation for Cascading Style Sheets, Level 1
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
909 (commonly known as @sc{CSS1}) with a few experimental items from other
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
910 W3C proposals. Wherever Emacs/W3 diverges from the specification, it
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
911 will be clearly documented, and will be changed once a full standard is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
912 available.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
913
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
914 Support for @sc{DSSSL} is progressing, but spare time is at an all-time
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
915 low. If anyone would like to help, please contact the author.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
916
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
917 The following sections closely parallel the @sc{CSS1} specification so
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
918 it should be very easy to look up what Emacs/W3 supports when browsing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
919 through the @sc{CSS1} specification. Please note that a lot of the text
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
920 in the following sections comes directly from the specification as
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
921 well.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
922
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
923 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
924 * Terminology:: Terms used in the rest of this chapter.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
925 * Basic Concepts:: Why are stylesheets useful? Getting started.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
926 * Pseudo-Classes/Elements:: Special classes for elements.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
927 * The Cascade:: How stylesheets are combined.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
928 * Properties:: What properties you can set on elements.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
929 * Units:: What you can set them to.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
930 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
931
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
932 @node Terminology, Basic Concepts, Stylesheets, Stylesheets
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
933 @section Terminology
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
934
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
935 @table @dfn
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
936 @item attribute
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
937 HTML attribute, ie: @samp{align=center} - align is the attribute.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
938 @item author
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
939 The author of an HTML document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
940 @item block-level element
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
941 An element which has a line break before and after (e.g. 'H1' in @sc{HTML}).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
942 @item canvas
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
943 The part of the UA's drawing surface onto which documents are rendered.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
944 @item child element
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
945 A subelement in @sc{sgml} terminology.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
946 @item contextual selector
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
947 A selector that matches elements based on their position in the document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
948 structure. A contextual selector consists of several simple
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
949 selectors. E.g., the contextual selector 'H1.initial B' consists of two
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
950 simple selectors, 'H1.initial' and 'B'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
951 @item @sc{css}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
952 Cascading Style Sheets.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
953 @item declaration
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
954 A property (e.g. 'font-size') and a corresponding value (e.g. '12pt').
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
955 @item designer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
956 The designer of a style sheet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
957 @item document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
958 @sc{html} document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
959 @item element
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
960 @sc{html} element.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
961 @item element type
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
962 A generic identifier in @sc{sgml} terminology.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
963 @item fictional tag sequence
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
964 A tool for describing the behavior of pseudo-classes and pseudo-elements.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
965 @item font size
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
966 The size for which a font is designed. Typically, the size of a font is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
967 approximately equal to the distance from the bottom of the lowest letter
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
968 with a descender to the top of the tallest letter with an ascender and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
969 (optionally) with a diacritical mark.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
970 @item @sc{html} extension
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
971 Markup introduced by UA vendors, most often to support certain visual
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
972 effects. The @sc{font}, @sc{center} and @sc{blink} elements are examples
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
973 of HTML extensions, as is the @sc{bgcolor} attribute. One of the goals
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
974 of @sc{css} is to provide an alternative to @sc{html} extensions.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
975 @item inline element
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
976 An element which does not have a line break before and after
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
977 (e.g. '@sc{strong}' in @sc{html})
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
978 @item intrinsic dimensions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
979 The width and height as defined by the element itself, not imposed by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
980 the surroundings. In this specification it is assumed that all replaced
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
981 elements -- and only replaced elements -- come with intrinsic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
982 dimensions.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
983 @item parent element
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
984 The containing element in @sc{sgml} terminology.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
985 @item pseudo-element
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
986 Pseudo-elements are used in @sc{css} selectors to address typographical
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
987 items (e.g. the first line of an element) rather than structural
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
988 elements.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
989 @item pseudo-class
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
990 Pseudo-classes are used in @sc{css} selectors to allow information
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
991 external to the @sc{html} source (e.g. the fact that an anchor has been
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
992 visited or not) to classify elements.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
993 @item property
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
994 A stylistic parameter that can be influenced through @sc{css}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
995 @item reader
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
996 The person for whom the document is rendered.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
997 @item replaced element
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
998 An element that the @sc{css} formatter only knows the intrinsic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
999 dimensions of. In @sc{html}, @sc{img}, @sc{input}, @sc{textarea},
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1000 @sc{select} and @sc{object} elements can be examples of replaced
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1001 elements. E.g., the content of the @sc{img} element is often replaced by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1002 the image that the @sc{src} attribute points to. @sc{css1} does not
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1003 define how the intrinsic dimensions are found.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1004 @item rule
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1005 A declaration (e.g. 'font-family: helvetica') and its selector
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1006 (e.g. @sc{'H1'}).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1007 @item selector
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1008 A string that identifies what elements the corresponding rule applies
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1009 to. A selector can either be a simple selector (e.g. 'H1') or a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1010 contextual selector (e.g. @sc{'h1 b'}) which consists of several simple
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1011 selectors.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1012 @item @sc{sgml}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1013 Standard Generalized Markup Language, of which @sc{html} is an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1014 application.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1015 @item simple selector
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1016 A selector that matches elements based on the element type and/or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1017 attributes, and not the element's position in the document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1018 structure. E.g., 'H1.initial' is a simple selector.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1019 @item style sheet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1020 A collection of rules.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1021 @item @sc{ua}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1022 User Agent, often a web browser or web client.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1023 @item user
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1024 Synonymous with reader.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1025 @item weight
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1026 The priority of a rule.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1027 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1028
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1029 @node Basic Concepts, Pseudo-Classes/Elements, Terminology, Stylesheets
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1030 @section Basic Concepts
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1031
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1032 Designing simple style sheets is easy. One needs only to know a little
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1033 HTML and some basic desktop publishing terminology. E.g., to set the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1034 text color of 'H1' elements to blue, one can say:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1035
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1036 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1037 H1 @{ color: blue @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1038 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1039
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1040 The example above is a simple CSS rule. A rule consists of two main
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1041 parts: selector ('H1') and declaration ('color: blue'). The declaration
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1042 has two parts: property ('color') and value ('blue'). While the example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1043 above tries to influence only one of the properties needed for rendering
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1044 an HTML document, it qualifies as a style sheet on its own. Combined
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1045 with other style sheets (one fundamental feature of CSS is that style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1046 sheets are combined) it will determine the final presentation of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1047 document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1048
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1049 The selector is the link between the HTML document and the style sheet, and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1050 all HTML element types are possible selectors.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1051
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1052 @node Pseudo-Classes/Elements, The Cascade, Basic Concepts, Stylesheets
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1053 @section Pseudo-Classes/Elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1054
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1055 In @sc{css1}, style is normally attached to an element based on its
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1056 position in the document structure. This simple model is sufficient for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1057 a wide variety of styles, but doesn't cover some common effects. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1058 concept of pseudo-classes and pseudo-elements extend addressing in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1059 @sc{css1} to allow external information to influence the formatting
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1060 process.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1061
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1062 Pseudo-classes and pseudo-elements can be used in @sc{css} selectors,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1063 but do not exist in the @sc{html} source. Rather, they are "inserted" by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1064 the @sc{ua} under certain conditions to be used for addressing in style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1065 sheets. They are referred to as "classes" and "elements" since this is a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1066 convenient way of describing their behavior. More specifically, their
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1067 behavior is defined by a fictional tag sequence.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1068
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1069 Pseudo-elements are used to address sub-parts of elements, while
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1070 pseudo-classes allow style sheets to differentiate between different
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1071 element types.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1072
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1073 The only support pseudo-classes in Emacs/W3 are on the anchor tag
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1074 (<a>...</a>).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1075
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1076 User agents commonly display newly visited anchors differently from
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1077 older ones. In @sc{css1}, this is handled through pseudo-classes on the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1078 'A' element:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1079
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1080 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1081 A:link @{ color: red @} /* unvisited link */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1082 A:visited @{ color: blue @} /* visited links */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1083 A:active @{ color: lime @} /* active links */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1084 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1085
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1086 All 'A' elements with an 'HREF' attribute will be put into one and only
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1087 one of these groups (i.e. target anchors are not affected). UAs may
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1088 choose to move an element from 'visited' to 'link' after a certain
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1089 time. An 'active' link is one that is currently being selected (e.g. by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1090 a mouse button press) by the reader.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1091
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1092 The formatting of an anchor pseudo-class is as if the class had been
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1093 inserted manually. A @sc{ua} is not required to reformat a currently
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1094 displayed document due to anchor pseudo-class transitions. E.g., a style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1095 sheet can legally specify that the 'font-size' of an 'active' link
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1096 should be larger that a 'visited' link, but the UA is not required to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1097 dynamically reformat the document when the reader selects the 'visited'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1098 link.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1099
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1100 Pseudo-class selectors do not match normal classes, and vice versa. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1101 style rule in the example below will therefore not have any influence:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1102
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1103 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1104 A:link @{ color: red @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1105
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1106 <A CLASS=link NAME=target5> ... </A>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1107 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1108
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1109 In @sc{css1}, anchor pseudo-classes have no effect on elements other
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1110 than 'A'. Therefore, the element type can be omitted from the selector:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1111
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1112 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1113 A:link @{ color: red @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1114 :link @{ color: red @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1115 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1116
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1117 The two selectors above will select the same elements in CSS1.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1118
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1119 Pseudo-class names are case-insensitive.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1120
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1121 Pseudo-classes can be used in contextual selectors:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1122
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1123 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1124 A:link IMG @{ border: solid blue @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1125 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1126
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1127 Also, pseudo-classes can be combined with normal classes:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1128
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1129 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1130 A.external:visited @{ color: blue @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1131
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1132 <A CLASS=external HREF="http://out.side/">external link</A>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1133 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1134
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1135 If the link in the above example has been visited, it will be rendered
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1136 in blue. Note that normal class names precede pseudo-classes in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1137 selector.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1138
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1139 @node The Cascade, Properties, Pseudo-Classes/Elements, Stylesheets
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1140 @section The Cascade
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1141
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1142 In @sc{css}, more than one style sheet can influence the presentation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1143 simultaneously. There are two main reasons for this feature: modularity
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1144 and author/reader balance.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1145
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1146 @table @i
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1147 @item modularity
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1148 A style sheet designer can combine several (partial) style sheets to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1149 reduce redundancy:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1150
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1151 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1152 @@import url(http://www.style.org/pastoral);
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1153 @@import url(http://www.style.org/marine);
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1154
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1155 H1 @{ color: red @} /* override imported sheets */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1156 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1157 @item author/reader balance
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1158 Both readers and authors can influence the presentation through style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1159 sheets. To do so, they use the same style sheet language thus reflecting
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1160 a fundamental feature of the web: everyone can become a publisher. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1161 @sc{ua} is free to choose the mechanism for referencing personal style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1162 sheets.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1163 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1164
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1165 Sometimes conflicts will arise between the style sheets that influence
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1166 the presentation. Conflict resolution is based on each style rule having
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1167 a weight. By default, the weights of the reader's rules are less than
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1168 the weights of rules in the author's documents. I.e., if there are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1169 conflicts between the style sheets of an incoming document and the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1170 reader's personal sheets, the author's rules will be used. Both reader
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1171 and author rules override the @sc{ua}'s default values.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1172
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1173 The imported style sheets also cascade with each other, in the order
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1174 they are imported, according to the cascading rules defined below. Any
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1175 rules specified in the style sheet itself override rules in imported
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1176 style sheets. That is, imported style sheets are lower in the cascading
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1177 order than rules in the style sheet itself. Imported style sheets can
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1178 themselves import and override other style sheets, recursively.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1179
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1180 In @sc{css1}, all '@@import' statements must occur at the start of a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1181 style sheet, before any declarations. This makes it easy to see that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1182 rules in the style sheet itself override rules in the imported style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1183 sheets.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1184
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1185 NOTE: The use of !important in @sc{css} stylesheets is unsupported at
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1186 this time.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1187
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1188 Conflicting rules are intrinsic to the CSS mechanism. To find the value
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1189 for an element/property combination, the following algorithm must be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1190 followed:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1191
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1192 @enumerate
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1193 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1194 Find all declarations that apply to the element/property in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1195 question. Declarations apply if the selector matches the element in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1196 question. If no declarations apply, the inherited value is used. If
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1197 there is no inherited value (this is the case for the 'HTML' element and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1198 for properties that do not inherit), the initial value is used.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1199 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1200 Sort the declarations by explicit weight: declarations marked
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1201 '!important' carry more weight than unmarked (normal) declarations.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1202 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1203 Sort by origin: the author's style sheets override the reader's style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1204 sheet which override the UA's default values. An imported style sheet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1205 has the same origin as the style sheet from which it is imported.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1206 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1207 Sort by specificity of selector: more specific selectors will override
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1208 more general ones. To find the specificity, count the number of ID
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1209 attributes in the selector (a), the number of CLASS attributes in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1210 selector (b), and the number of tag names in the selector
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1211 (c). Concatenating the three numbers (in a number system with a large
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1212 base) gives the specificity. Some examples:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1213 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1214 LI @{...@} /* a=0 b=0 c=1 -> specificity = 1 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1215 UL LI @{...@} /* a=0 b=0 c=2 -> specificity = 2 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1216 UL OL LI @{...@} /* a=0 b=0 c=3 -> specificity = 3 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1217 LI.red @{...@} /* a=0 b=1 c=1 -> specificity = 11 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1218 UL OL LI.red @{...@} /* a=0 b=1 c=3 -> specificity = 13 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1219 #x34y @{...@} /* a=1 b=0 c=0 -> specificity = 100 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1220 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1221 Pseudo-elements and pseudo-classes are counted as normal elements and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1222 classes, respectively.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1223 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1224 Sort by order specified: if two rules have the same weight, the latter
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1225 specified wins. Rules in imported style sheets are considered to be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1226 before any rules in the style sheet itself.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1227 @end enumerate
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1228
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1229 The search for the property value can be terminated whenever one rule
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1230 has a higher weight than the other rules that apply to the same
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1231 element/property combination.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1232
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1233 This strategy gives author's style sheets considerably higher weight
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1234 than those of the reader. It is therefore important that the reader has
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1235 the ability to turn off the influence of a certain style sheet,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1236 e.g. through a pull-down menu.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1237
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1238 A declaration in the 'STYLE' attribute of an element has the same weight
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1239 as a declaration with an ID-based selector that is specified at the end
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1240 of the style sheet:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1241
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1242 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1243 <STYLE TYPE="text/css">
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1244 #x97z @{ color: blue @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1245 </STYLE>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1246
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1247 <P ID=x97z STYLE="color: red">
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1248 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1249
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1250 In the above example, the color of the 'P' element would be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1251 red. Although the specificity is the same for both declarations, the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1252 declaration in the 'STYLE' attribute will override the one in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1253 'STYLE' element because of cascading rule number 5.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1254
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1255 The @sc{ua} may choose to honor other stylistic @sc{html} attributes,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1256 for example 'ALIGN'. If so, these attributes are translated to the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1257 corresponding @sc{css} rules with specificity equal to 1. The rules are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1258 assumed to be at the start of the author style sheet and may be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1259 overridden by subsequent style sheet rules. In a transition phase, this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1260 policy will make it easier for stylistic attributes to coexist with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1261 style sheets.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1262
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1263 @node Properties, Units, The Cascade, Stylesheets
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1264 @section Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1265
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1266 In the text below, the allowed values for each property are listed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1267 with a syntax like the following:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1268
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1269 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1270 Value: N | NW | NE
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1271 Value: [ <length> | thick | thin ]@{1,4@}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1272 Value: <uri>? <color> [ / <color> ]?
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1273 Value: <uri> || <color>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1274 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1275
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1276 The words between < and > give a type of value. The most common types
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1277 are <length>, <percentage>, <url>, <number>and <color> these are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1278 described in the section on [[units]]. The more specialized types
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1279 (e.g. <font-family>and <border-style>) are described under the property
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1280 where they appear.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1281
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1282 Other words are keywords that must appear literally, without quotes. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1283 slash (/) and the comma (,) must also appear literally.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1284
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1285 Several things juxtaposed mean that all of them must occur, in the given
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1286 order. A bar (|) separates alternatives: one of them must occur. A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1287 double bar (A || B) means that either A or B or both must occur, in any
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1288 order. Brackets ([]) are for grouping. Juxtaposition is stronger than
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1289 the double bar, and the double bar is stronger than the bar. Thus "a b |
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1290 c || d e" is equivalent to "[ a b ] | [ c || [ d e ]]".
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1291
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1292 Every type, keyword, or bracketed group may be followed by one of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1293 following modifiers:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1294
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1295 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1296 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1297 An asterisk (*) indicates that the preceding type, word or group is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1298 repeated zero or more times.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1299 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1300 A plus (+) indicates that the preceding type, word or group is repeated
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1301 one or more times.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1302 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1303 A question mark (?) indicates that the preceding type, word or group is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1304 optional.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1305 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1306 A pair of numbers in curly braces (@{A,B@}) indicates that the preceding
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1307 type, word or group is repeated at least A and at most B times.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1308 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1309
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1310 Other than the value the following information is also shown.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1311
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1312 @multitable @columnfractions .20 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1313 @item Supported Values: @tab If this is present, it lists the parts of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1314 the specification that Emacs/W3 currently supports.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1315 @item Unsupported Values: @tab If this is present, it represents the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1316 parts of the specifcation that Emacs/W3 does not support.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1317 @item Initial: @tab The default value for the property, unless
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1318 explicitly set in a stylesheet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1319 @item Applies to: @tab What type of elements this property can be attached to.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1320 @item Inherited: @tab Yes or no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1321 @item Percentage values: @tab What a percentage value applies to when given.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1322 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1323
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1324 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1325 * Font Properties:: Selecting fonts, styles, and sizes.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1326 * Colors and Backgrounds:: Controlling colors, front and back.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1327 * Text Properties:: Alignment, decoration, and more!
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1328 * Box Properties:: Borders, padding, and margins, oh my!
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1329 * Classification:: Changing whitespace and display policies.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1330 * Media Selection:: Conditionalize stylesheets on media-type.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1331 * Speech Properties:: Speech output controlled by stylesheets.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1332 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1333
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1334 @node Font Properties, Colors and Backgrounds, Properties, Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1335 @subsection Font Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1336
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1337 Setting font properties will be among the most common uses of style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1338 sheets. Unfortunately, there exists no well-defined and universally
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1339 accepted taxonomy for classifying fonts, and terms that apply to one
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1340 font family may not be appropriate for others. E.g. 'italic' is commonly
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1341 used to label slanted text, but slanted text may also be labeled as
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1342 being @b{Oblique}, @b{Slanted}, @b{Incline}, @b{Cursive} or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1343 @b{Kursiv}. Therefore it is not a simple problem to map typical font
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1344 selection properties to a specific font.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1345
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1346 The properties defined by CSS1 are described in the following sections.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1347 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1348 * font-family:: Groups of fonts.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1349 * font-style:: Normal, italic, or oblique?
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1350 * font-variant:: Small-caps, etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1351 * font-weight:: How bold can you go?
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1352 * font-size:: How big is yours?
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1353 * font:: Shorthand for all of the above.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1354 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1355
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1356 @node font-family, font-style, Font Properties, Font Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1357 @subsubsection font-family
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1358
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1359 @multitable @columnfractions .20 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1360 @item Supported Values: @tab [[<family-name> | <generic-family>],]* [<family-name> | <generic-family>]
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1361 @item Initial: @tab User specific
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1362 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1363 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1364 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1365 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1366 The value is a prioritized list of font family names and/or generic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1367 family names. Unlike most other CSS1 properties, values are separated
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1368 by a comma to indicate that they are alternatives:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1369
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1370 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1371 BODY @{ font-family: gill, helvetica, sans-serif @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1372 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1373
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1374 There are two types of list values:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1375
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1376 @table @b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1377 @item <family-name>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1378 The name of a font family of choice. In the last example, "gill" and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1379 "helvetica" are font families.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1380 @item <generic-family>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1381 In the example above, the last value is a generic family name. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1382 following generic families are defined:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1383 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1384 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1385 'serif' (e.g. Times)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1386 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1387 'sans-serif' (e.g. Helvetica)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1388 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1389 'cursive' (e.g. Zapf-Chancery)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1390 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1391 'fantasy' (e.g. Western)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1392 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1393 'monospace' (e.g. Courier)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1394 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1395 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1396
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1397 Style sheet designers are encouraged to offer a generic font family as a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1398 last alternative.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1399
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1400 Font names containing whitespace should be quoted:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1401
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1402 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1403 BODY @{ font-family: "new century schoolbook", serif @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1404
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1405 <BODY STYLE="font-family: 'My own font', fantasy">
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1406 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1407
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1408 If quoting is omitted, any whitespace characters before and after the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1409 font name are ignored and any sequence of whitespace characters inside
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1410 the font name is converted to a single space.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1411
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1412 @node font-style, font-variant, font-family, Font Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1413 @subsubsection font-style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1414
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1415 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1416 @item Supported Values: @tab normal | italic | oblique
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1417 @item Initial: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1418 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1419 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1420 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1421 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1422
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1423 The 'font-style' property selects between normal (sometimes referred to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1424 as "roman" or "upright"), italic and oblique faces within a font family.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1425
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1426 A value of 'normal' selects a font that is classified as 'normal' in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1427 UA's font database, while 'oblique' selects a font that is labeled
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1428 'oblique'. A value of 'italic' selects a font that is labeled 'italic',
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1429 or, if that is not available, one labeled 'oblique'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1430
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1431 The font that is labeled 'oblique' in the UA's font database may
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1432 actually have been generated by electronically slanting a normal font.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1433
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1434 Fonts with Oblique, Slanted or Incline in their names will typically be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1435 labeled 'oblique' in the UA's font database. Fonts with Italic, Cursive
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1436 or Kursiv in their names will typically be labeled 'italic'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1437
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1438 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1439 H1, H2, H3 @{ font-style: italic @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1440 H1 EM @{ font-style: normal @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1441 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1442
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1443 In the example above, emphasized text within 'H1' will appear in a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1444 normal face.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1445
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1446 @node font-variant, font-weight, font-style, Font Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1447 @subsubsection font-variant
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1448
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1449 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1450 @item Value: @tab normal | small-caps
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1451 @item Initial: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1452 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1453 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1454 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1455 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1456
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1457 Another type of variation within a font family is the small-caps. In a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1458 small-caps font the lower case letters look similar to the uppercase
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1459 ones, but in a smaller size and with slightly different proportions. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1460 'font-variant' property selects that font.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1461
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1462 A value of 'normal' selects a font that is not a small-caps font,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1463 'small-caps' selects a small-caps font. It is acceptable (but not
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1464 required) in CSS1 if the small-caps font is a created by taking a normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1465 font and replacing the lower case letters by scaled uppercase
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1466 characters. As a last resort, uppercase letters will be used as
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1467 replacement for a small-caps font.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1468
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1469 The following example results in an 'H3' element in small-caps, with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1470 emphasized words in oblique small-caps:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1471
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1472 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1473 H3 @{ font-variant: small-caps @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1474 EM @{ font-style: oblique @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1475 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1476
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1477 There may be other variants in the font family as well, such as fonts
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1478 with old-style numerals, small-caps numerals, condensed or expanded
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1479 letters, etc. CSS1 has no properties that select those.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1480
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1481 @node font-weight, font-size, font-variant, Font Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1482 @subsubsection font-weight
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1483
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1484 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1485 @item Supported Values: @tab normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1486 @item Unsupported Values: @tab bolder | lighter
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1487 @item Initial: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1488 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1489 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1490 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1491 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1492
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1493 The 'font-weight' property selects the weight of the font. The values
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1494 '100' to '900' form an ordered sequence, where each number indicates a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1495 weight that is at least as dark as its predecessor. The keyword 'normal'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1496 is synonymous with '400', and 'bold' is synonymous with '700'. Keywords
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1497 other than 'normal' and 'bold' have been shown to be often confused with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1498 font names and a numerical scale was therefore chosen for the 9-value
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1499 list.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1500
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1501 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1502 P @{ font-weight: normal @} /* 400 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1503 H1 @{ font-weight: 700 @} /* bold */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1504 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1505
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1506 The 'bolder' and 'lighter' values select font weights that are relative
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1507 to the weight inherited from the parent:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1508
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1509 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1510 STRONG @{ font-weight: bolder @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1511 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1512
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1513 There is no guarantee that there will be a darker face for each of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1514 'font-weight' values; for example, some fonts may have only a normal and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1515 a bold face, others may have eight different face weights. There is no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1516 guarantee on how a UA will map font faces within a family to weight
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1517 values. The only guarantee is that a face of a given value will be no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1518 less dark than the faces of lighter values.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1519
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1520 @node font-size, font, font-weight, Font Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1521 @subsubsection font-size
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1522
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1523 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1524 @item Supported Values: @tab <absolute-size> | <length>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1525 @item Unsupported Values: @tab <percentage> | <relative-size>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1526 @item Initial: @tab medium
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1527 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1528 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1529 @item Percentage values: @tab relative to parent element's font size
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1530 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1531
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1532 @table @b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1533 @item <absolute-size>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1534 An <absolute-size> keyword is an index to a table of font sizes computed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1535 and kept by the UA. Possible values are:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1536 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1537 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1538 xx-small
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1539 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1540 x-small
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1541 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1542 small
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1543 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1544 medium
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1545 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1546 large
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1547 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1548 x-large
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1549 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1550 xx-large
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1551 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1552
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1553 On a computer screen a scaling factor of 1.5 is suggested between
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1554 adjacent indexes; if the 'medium' font is 10pt, the 'large' font could
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1555 be 15pt. Different media may need different scaling factors. Also, the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1556 UA should take the quality and availability of fonts into account when
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1557 computing the table. The table may be different from one font family to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1558 another.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1559 @item <relative-size>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1560 A <relative-size> keyword is interpreted relative to the table of font
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1561 sizes and the font size of the parent element. Possible values are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1562 @b{larger} or @b{smaller}. For example, if the parent element has a font
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1563 size of 'medium', a value of 'larger' will make the font size of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1564 current element be 'large'. If the parent element's size is not close to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1565 a table entry, the UA is free to interpolate between table entries or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1566 round off to the closest one. The UA may have to extrapolate table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1567 values if the numerical value goes beyond the keywords.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1568 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1569
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1570 Length and percentage values should not take the font size table into
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1571 account when calculating the font size of the element.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1572
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1573 Negative values are not allowed.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1574
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1575 On all other properties, 'em' and 'ex' length values refer to the font
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1576 size of the current element. On the 'font-size' property, these length
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1577 units refer to the font size of the parent element.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1578
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1579 Note that an application may reinterpret an explicit size, depending on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1580 the context. E.g., inside a VR scene a font may get a different size
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1581 because of perspective distortion.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1582
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1583 Examples:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1584
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1585 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1586 P @{ font-size: 12pt; @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1587 BLOCKQUOTE @{ font-size: larger @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1588 EM @{ font-size: 150% @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1589 EM @{ font-size: 1.5em @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1590 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1591
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1592 If the suggested scaling factor of 1.5 is used, the last three
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1593 declarations are identical.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1594
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1595 @node font, , font-size, Font Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1596 @subsubsection font
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1597
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1598 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1599 @item Value: @tab [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height> ]? <font-family>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1600 @item Initial: @tab not defined for shorthand properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1601 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1602 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1603 @item Percentage values: @tab allowed on <font-size> and <line-height>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1604 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1605 The 'font' property is a shorthand property for setting 'font-style'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1606 'font-variant' 'font-weight' 'font-size', 'line-height' and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1607 'font-family' at the same place in the style sheet. The syntax of this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1608 property is based on a traditional typographical shorthand notation to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1609 set multiple properties related to fonts.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1610
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1611 For a definition of allowed and initial values, see the previously
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1612 defined properties. Properties for which no values are given are set to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1613 their initial value.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1614
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1615 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1616 P @{ font: 12pt/14pt sans-serif @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1617 P @{ font: 80% sans-serif @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1618 P @{ font: x-large/110% "new century schoolbook", serif @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1619 P @{ font: bold italic large Palatino, serif @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1620 P @{ font: normal small-caps 120%/120% fantasy @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1621 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1622
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1623 In the second rule, the font size percentage value ('80%') refers to the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1624 font size of the parent element. In the third rule, the line height
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1625 percentage refers to the font size of the element itself.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1626
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1627 In the first three rules above, the 'font-style', 'font-variant' and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1628 'font-weight' are not explicitly mentioned, which means they are all
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1629 three set to their initial value ('normal'). The fourth rule sets the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1630 'font-weight' to 'bold', the 'font-style' to 'italic' and implicitly
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1631 sets 'font-variant' to 'normal'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1632
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1633 The fifth rule sets the 'font-variant' ('small-caps'), the 'font-size'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1634 (120% of the parent's font), the 'line-height' (120% times the font
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1635 size) and the 'font-family' ('fantasy'). It follows that the keyword
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1636 'normal' applies to the two remaining properties: 'font-style' and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1637 'font-weight'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1638
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1639 @node Colors and Backgrounds, Text Properties, Font Properties, Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1640 @subsection Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1641
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1642 These properties describe the color (often called foreground color) and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1643 background of an element (i.e. the surface onto which the content is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1644 rendered). One can set a background color and/or a background image. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1645 position of the image, if/how it is repeated, and whether it is fixed or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1646 scrolled relative to the canvas can also be set.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1647
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1648 The 'color' property inherits normally. The background properties do not
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1649 inherit, but the parent element's background will shine through by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1650 default because of the initial 'transparent' value on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1651 'background-color'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1652
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1653 NOTE: Currently, Emacs/W3 can only show background images under XEmacs.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1654 Emacs 19 doesn't have the support in its display code yet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1655
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1656 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1657 * color:: Foreground colors.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1658 * background-color:: Background colors.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1659 * background-image:: Background images.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1660 * background-repeat:: Controlling repeating of background images.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1661 * background-attachment:: Where background images are drawn.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1662 * background-position:: Where background images are drawn.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1663 * background:: Shorthand for all background properties.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1664 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1665
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1666 @node color, background-color, Colors and Backgrounds, Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1667 @subsubsection color
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1668
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1669 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1670 @item Value: @tab <color>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1671 @item Initial: @tab User specific
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1672 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1673 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1674 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1675 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1676
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1677 This property describes the text color of an element (often referred to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1678 as the foreground color). There are different ways to specify red:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1679
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1680 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1681 EM @{ color: red @} /* natural language */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1682 EM @{ color: rgb(255,0,0) @} /* RGB range 0-255 */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1683 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1684
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1685 See @ref{Color Units} for a description of possible color values.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1686
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1687 @node background-color, background-image, color, Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1688 @subsubsection background-color
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1689
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1690 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1691 @item Value: @tab <color> | transparent
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1692 @item Initial: @tab transparent
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1693 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1694 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1695 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1696 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1697
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1698 This property sets the background color of an element.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1699
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1700 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1701 H1 @{ background-color: #F00 @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1702 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1703
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1704 @node background-image, background-repeat, background-color, Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1705 @subsubsection background-image
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1706
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1707 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1708 @item Value: @tab <url> | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1709 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1710 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1711 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1712 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1713 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1714
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1715 This property sets the background image of an element. When setting a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1716 background image, one should also set a background color that will be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1717 used when the image is unavailable. When the image is available, it is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1718 overlaid on top of the background color.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1719
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1720 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1721 BODY @{ background-image: url(marble.png) @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1722 P @{ background-image: none @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1723 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1724
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1725 @node background-repeat, background-attachment, background-image, Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1726 @subsubsection background-repeat
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1727
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1728 This property is not supported at all under Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1729
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1730 @node background-attachment, background-position, background-repeat, Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1731 @subsubsection background-attachment
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1732
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1733 This property is not supported at all under Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1734
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1735 @node background-position, background, background-attachment, Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1736 @subsubsection background-position
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1737
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1738 This property is not supported at all under Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1739
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1740 @node background, , background-position, Colors and Backgrounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1741 @subsubsection background
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1742
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1743 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1744 @item Value: @tab <background-color> || <background-image> || <background-repeat> || <background-attachment> || <background-position>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1745 @item Initial: @tab not defined for shorthand properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1746 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1747 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1748 @item Percentage values: @tab allowed on <background-position>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1749 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1750
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1751 The 'background' property is a shorthand property for setting the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1752 individual background properties (i.e., 'background-color',
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1753 'background-image', 'background-repeat', 'background-attachment' and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1754 'background-position') at the same place in the style sheet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1755
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1756 Possible values on the 'background' properties are the set of all
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1757 possible values on the individual properties.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1758
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1759 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1760 BODY @{ background: red @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1761 P @{ background: url(chess.png) gray 50% repeat fixed @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1762 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1763
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1764 The 'background' property always sets all the individual background
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1765 properties. In the first rule of the above example, only a value for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1766 'background-color' has been given and the other individual properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1767 are set to their initial value. In the second rule, all individual
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1768 properties have been specified.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1769
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1770 @node Text Properties, Box Properties, Colors and Backgrounds, Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1771 @subsection Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1772
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1773 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1774 * word-spacing::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1775 * letter-spacing::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1776 * text-decoration::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1777 * vertical-align::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1778 * text-transform::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1779 * text-align::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1780 * text-indent::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1781 * line-height::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1782 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1783
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1784 @node word-spacing, letter-spacing, Text Properties, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1785 @subsubsection word-spacing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1786
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1787 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1788 @item Supported Values: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1789 @item Unsupported Values: @tab <length>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1790 @item Initial: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1791 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1792 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1793 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1794 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1795
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1796 The length unit indicates an addition to the default space between
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1797 words. Values can be negative, but there may be implementation-specific
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1798 limits. The UA is free to select the exact spacing algorithm. The word
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1799 spacing may also be influenced by justification (which is a value of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1800 'align' property).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1801
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1802 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1803 H1 @{ word-spacing: 0.4em @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1804 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1805
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1806 Here, the word-spacing between each word in 'H1' elements would be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1807 increased by '1em'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1808
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1809 NOTE: Emacs/W3 cannot currently support this, due to limitations in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1810 Emacs. It may be implemented in the future.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1811
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1812 @node letter-spacing, text-decoration, word-spacing, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1813 @subsubsection letter-spacing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1814
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1815 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1816 @item Supported Values: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1817 @item Unsupported Values: @tab <length>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1818 @item Initial: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1819 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1820 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1821 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1822 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1823
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1824 The length unit indicates an addition to the default space between
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1825 characters. Values can be negative, but there may be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1826 implementation-specific limits. The UA is free to select the exact
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1827 spacing algorithm. The letter spacing may also be influenced by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1828 justification (which is a value of the 'align' property).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1829
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1830 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1831 BLOCKQUOTE @{ letter-spacing: 0.1em @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1832 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1833
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1834 Here, the letter-spacing between each character in 'BLOCKQUOTE' elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1835 would be increased by '0.1em'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1836
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1837 NOTE: Emacs/W3 cannot currently support this, due to limitations in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1838 Emacs. It may be implemented in the future.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1839
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1840 @node text-decoration, vertical-align, letter-spacing, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1841 @subsubsection text-decoration
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1842
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1843 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1844 @item Supported Values: @tab none | underline | line-through | blink
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1845 @item Unsupported Values: @tab overline
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1846 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1847 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1848 @item Inherited: @tab no, but see clarification below
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1849 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1850 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1851
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1852 This property describes decorations that are added to the text of an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1853 element. If the element has no text (e.g. the 'IMG' element in HTML) or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1854 is an empty element (e.g. '<EM></EM>'), this property has no effect. A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1855 value of 'blink' causes the text to blink.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1856
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1857 The color(s) required for the text decoration should be derived from the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1858 'color' property value.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1859
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1860 This property is not inherited, but elements should match their
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1861 parent. E.g., if an element is underlined, the line should span the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1862 child elements. The color of the underlining will remain the same even
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1863 if descendant elements have different 'color' values.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1864
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1865 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1866 A:link, A:visited, A:active @{ text-decoration: underline @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1867 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1868
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1869 The example above would underline the text of all links (i.e., all 'A'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1870 elements with a 'HREF' attribute).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1871
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1872 NOTE: The 'line-through' property is only supported under XEmacs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1873 currently. A patch has been sent to the Emacs maintainers to add
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1874 support for this, but it has not made it into the main distribution
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1875 yet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1876
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1877 @node vertical-align, text-transform, text-decoration, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1878 @subsubsection vertical-align
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1879
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1880 This is currently unsupported in Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1881
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1882 @node text-transform, text-align, vertical-align, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1883 @subsubsection text-transform
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1884
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1885 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1886 @item Supported Values: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1887 @item Unsupported Values: @tab capitalize | uppercase | lowercase
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1888 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1889 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1890 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1891 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1892 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1893
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1894 @table @b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1895 @item 'capitalize'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1896 Uppercases the first character of each word.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1897 @item 'uppercase'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1898 Uppercases all letters of the element.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1899 @item 'lowercase'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1900 Lowercases all letters of the element.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1901 @item 'none'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1902 Neutralizes inherited value.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1903 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1904
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1905 The actual transformation in each case is human language dependent.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1906
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1907 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1908 H1 @{ text-transform: uppercase @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1909 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1910
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1911 The example above would put 'H1' elements in uppercase text.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1912
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1913 NOTE: This capability was in the previous version of Emacs/W3, but has
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1914 not been reimplemented in the new display code yet. Please feel free to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1915 send me patches.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1916
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1917 @node text-align, text-indent, text-transform, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1918 @subsubsection text-align
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1919
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1920 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1921 @item Value: @tab left | right | center | justify
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1922 @item Initial: @tab User specific
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1923 @item Applies to: @tab block-level elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1924 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1925 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1926 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1927
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1928 This property describes how text is aligned within the element. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1929 actual justification algorithm used is UA and human language dependent.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1930
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1931 Example:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1932 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1933 DIV.center @{ text-align: center @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1934 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1935
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1936 Since 'text-align' inherits, all block-level elements inside the 'DIV'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1937 element with 'CLASS=center' will be centered. Note that alignments are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1938 relative to the width of the element, not the canvas.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1939
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1940 @node text-indent, line-height, text-align, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1941 @subsubsection text-indent
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1942
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1943 Not currently implemented in Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1944
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1945 @node line-height, , text-indent, Text Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1946 @subsubsection line-height
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1947
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1948 Not currently implemented in Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1949
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1950 @node Box Properties, Classification, Text Properties, Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1951 @subsection Box Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1952
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1953 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1954 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1955
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1956 @node Classification, Media Selection, Box Properties, Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1957 @subsection Classification
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1958
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1959 These properties classify elements into categories more than they set
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1960 specific visual parameters.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1961
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1962 The list-style properties describe how list items (i.e. elements with a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1963 'display' value of 'list-item') are formatted. The list-style properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1964 can be set on any element, and it will inherit normally down the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1965 tree. However, they will only be have effect on elements with a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1966 'display' value of 'list-item'. In HTML this is typically the case for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1967 the 'LI' element.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1968
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1969 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1970 * display::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1971 * white-space::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1972 * list-style-type::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1973 * list-style-image::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1974 * list-style-position::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1975 * list-style::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1976 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1977
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1978 @node display, white-space, Classification, Classification
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1979 @subsubsection display
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1980
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1981 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1982 @item Value: @tab block | inline | list-item | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1983 @item Extensions: @tab line
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1984 @item Initial: @tab inline
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1985 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1986 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1987 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1988 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1989
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1990 This property describes how/if an element is displayed on the canvas
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1991 (which may be on a printed page, a computer display etc.).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1992
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1993 An element with a 'display' value of 'block' opens whitespace suitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1994 for a paragraph break. Typically, elements like 'H1' and 'P' are of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1995 type 'block'. A value of 'list-item' is similar to 'block' except that a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1996 list-item marker is added. In HTML, 'LI' will typically have this value.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1997
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1998 An element with a 'display' value of 'inline' results in a new inline
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
1999 box on the same line as the previous content.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2000
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2001 A value of 'none' turns off the display of the element, including
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2002 children elements and the surrounding box.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2003
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2004 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2005 P @{ display: block @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2006 EM @{ display: inline @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2007 LI @{ display: list-item @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2008 IMG @{ display: none @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2009 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2010
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2011 The last rule turns off the display of images.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2012
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2013 A value of 'line' results in a single line break. Emacs/W3 needs this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2014 extension to be able to fully specify the behaviour of @sc{br} and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2015 @sc{hr} elements within a stylesheet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2016
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2017 NOTE: Emacs/W3 defaults to using 'inline' for this property, which is a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2018 slight deviation from the specification.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2019
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2020 @node white-space, list-style-type, display, Classification
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2021 @subsubsection white-space
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2022
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2023 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2024 @item Value: @tab normal | pre | nowrap
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2025 @item Initial: @tab normal
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2026 @item Applies to: @tab block-level elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2027 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2028 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2029 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2030
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2031 This property declares how whitespace inside the element is handled: the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2032 'normal' way (where whitespace is collapsed), as 'pre' (which behaves
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2033 like the 'PRE' element in HTML) or as 'nowrap' (where wrapping is done
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2034 only through BR elements):
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2035
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2036 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2037 PRE @{ white-space: pre @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2038 P @{ white-space: normal @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2039 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2040
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2041 @node list-style-type, list-style-image, white-space, Classification
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2042 @subsubsection list-style-type
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2043
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2044 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2045 @item Value: @tab disc | circle | square | decimal | lower-roman | upper-roman | lower-alpha | upper-alpha | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2046 @item Initial: @tab disc
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2047 @item Applies to: @tab elements with 'display' value 'list-item'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2048 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2049 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2050 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2051
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2052 This property is used to determine the appearance of the list-item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2053 marker if 'list-style-image' is 'none' or if the image pointed to by the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2054 URL cannot be displayed.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2055
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2056 Fo example:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2057 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2058 OL @{ list-style-type: decimal @} /* 1 2 3 4 5 etc. */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2059 OL @{ list-style-type: lower-alpha @} /* a b c d e etc. */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2060 OL @{ list-style-type: lower-roman @} /* i ii iii iv v etc. */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2061 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2062
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2063 @node list-style-image, list-style-position, list-style-type, Classification
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2064 @subsubsection list-style-image
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2065
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2066 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2067 @item Value: @tab <url> | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2068 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2069 @item Applies to: @tab elements with 'display' value 'list-item'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2070 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2071 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2072 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2073
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2074 This property sets the image that will be used as the list-item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2075 marker. When the image is available it will replace the marker set with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2076 the 'list-style-type' marker.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2077
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2078 NOTE: This is currently unimplemented in Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2079
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2080 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2081 UL @{ list-style-image: url(http://png.com/ellipse.png) @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2082 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2083
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2084 @node list-style-position, list-style, list-style-image, Classification
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2085 @subsubsection list-style-position
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2086
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2087 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2088 @item Supported Values: @tab outside
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2089 @item Unsupported Values: @tab inside
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2090 @item Initial: @tab outside
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2091 @item Applies to: @tab elements with 'display' value 'list-item'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2092 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2093 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2094 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2095
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2096 The value of 'list-style-position' determines how the list-item marker
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2097 is drawn with regard to the content. For a formatting example see
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2098 section 4.1.3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2099
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2100 @node list-style, , list-style-position, Classification
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2101 @subsubsection list-style
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2102
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2103 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2104 @item Value: @tab <keyword> || <position> || <url>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2105 @item Initial: @tab not defined for shorthand properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2106 @item Applies to: @tab elements with 'display' value 'list-item'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2107 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2108 @item Percentage values: @tab N/A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2109 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2110
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2111 The 'list-style' property is a shorthand notation for setting the three
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2112 properties 'list-style-type', 'list-style-image' and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2113 'list-style-position' at the same place in the style sheet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2114
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2115 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2116 UL @{ list-style: upper-roman inside @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2117 UL UL @{ list-style: circle outside @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2118 LI.square @{ list-style: square @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2119 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2120
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2121 Setting 'list-style' directly on 'LI' elements can have unexpected
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2122 results. Consider:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2123
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2124 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2125 <STYLE TYPE="text/css">
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2126 OL.alpha LI @{ list-style: lower-alpha @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2127 UL LI @{ list-style: disc @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2128 </STYLE>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2129 <BODY>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2130 <OL CLASS=alpha>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2131 <LI>level 1
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2132 <UL>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2133 <LI>level 2
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2134 </UL>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2135 </OL>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2136 </BODY>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2137 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2138
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2139 Since the specificity (as defined in the cascading order) is higher for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2140 the first rule in the style sheet in the example above, it will override
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2141 the second rule on all 'LI' elements and only 'lower-alpha' list styles
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2142 will be used. It is therefore recommended to set 'list-style' only on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2143 the list type elements:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2144
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2145 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2146 OL.alpha @{ list-style: lower-alpha @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2147 UL @{ list-style: disc @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2148 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2149
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2150 In the above example, inheritance will transfer the 'list-style' values
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2151 from 'OL' and 'UL' elements to 'LI' elements.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2152
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2153 A URL value can be combined with any other value:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2154
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2155 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2156 UL @{ list-style: url(http://png.com/ellipse.png) disc @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2157 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2158
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2159 In the example above, the 'disc' will be used when the image is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2160 unavailable.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2161
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2162 @node Media Selection, Speech Properties, Classification, Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2163 @subsection Media Selection
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2164
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2165 To specify that a stylesheet declaration should only apply when using a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2166 certain media type (ie: different font families preferred when printing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2167 versus on-screen presentation), the declarations should be wrapped in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2168 the proposed @b{@@media} directive.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2170 The @@media directive takes two arguments, the media type, and a block
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2171 of style declarations.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2172
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2173 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2174 @@media print @{
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2175 BODY @{ font-size: 10pt @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2176 H1 @{ font-size: 14pt @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2177 @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2178 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2179 The '@@media' construct also allows to put include style sheet rules
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2180 for various media in the same style sheet:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2181
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2182 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2183 @@media print @{
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2184 BODY @{ font-size: 10pt @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2185 @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2186 @@media screen @{
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2187 BODY @{ font-size: 12pt @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2188 @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2189 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2190
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2191 Currently, the following media types are defined.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2192 @table @b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2193 @item Print
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2194 Output for paged opaque material, and for documents viewed on screen in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2195 print preview mode.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2196 @item Screen
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2197 A continuous presentation for computer screens.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2198 @item Projector
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2199 Paged presentation for projected presentations.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2200 @item Braille
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2201 For braille tactile feedback devices.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2202 @item Speech
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2203 Aural presentation.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2204 @item Light
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2205 The stylesheet will only be applied if the user is using a light background.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2206 @item Dark
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2207 The stylesheet will only be applied if the user is using a dark background.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2208 @item Emacs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2209 The stylesheet will only be applied if the user is running in Emacs 19.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2210 @item XEmacs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2211 The stylesheet will only be applied if the user is running in XEmacs 19.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2212 @item All
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2213 The default value, the style sheet applies to all output devices.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2214 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2215
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2216 @node Speech Properties, , Media Selection, Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2217 @subsection Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2218
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2219 Those of us who are sighted are accustomed to visual presentation of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2220 @sc{html} documents, frequently on a bitmapped display. This is not the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2221 only possible presentation method, however. Aural presentation, using a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2222 combination of speech synthesis and 'audio icons', provides an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2223 alternative presentation. This form of presentation is in current use by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2224 the blind and print-impaired communities.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2225
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2226 Often such aural presentation occurs by converting the document to plain
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2227 text and feeding this to a 'screen reader' -- software or hardware that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2228 simply reads all the characters on the screen. This results in less
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2229 effective presentation than would be the case if the document structure
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2230 were retained.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2231
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2232 There are other large markets for aural presentation, including in-car
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2233 and home entertainment use; aurual or mixed aural/visual presentation is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2234 thus likely to increase in importance over the next few years. Realizing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2235 that that the aural rendering is essentially independent of the visual
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2236 rendering:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2237
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2238 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2239 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2240 Allows orthogonal aural and visual views.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2241 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2242 Allows browsers to optionally implement both aural and visual views to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2243 produce truly multimodal documents.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2244 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2245
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2246 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2247 * volume::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2248 * pause-before::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2249 * pause-after::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2250 * pause::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2251 * cue-before::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2252 * cue-after::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2253 * cue::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2254 * play-during::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2255 * speed::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2256 * voice-family::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2257 * pitch::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2258 * pitch-range::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2259 * stress::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2260 * richness::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2261 * speak-punctuation::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2262 * speak-date::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2263 * speak-numeral::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2264 * speak-time::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2265 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2266
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2267 @node volume, pause-before, Speech Properties, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2268 @subsubsection volume
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2269
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2270 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2271 @item Value: @tab <percentage> | mute | x-soft | soft | medium | loud | x-loud
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2272 @item Initial: @tab medium
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2273 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2274 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2275 @item Percentage values: @tab relative to user-specified mapping
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2276 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2277
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2278 The legal range of percentage values is 0% to 100%. There is a fixed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2279 mapping between keyword values and percentages:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2280
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2281 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2282 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2283 'x-soft' = '0%'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2284 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2285 'soft' = '25%'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2286 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2287 'medium' = '50%'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2288 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2289 'loud' = '75%'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2290 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2291 'x-loud' = '100%'
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2292 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2293
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2294 Volume refers to the median volume of the waveform. In other words, a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2295 highly inflected voice at a volume of 50 might peak well above
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2296 that. Note that '0%' does not mean the same as "mute". 0% represents the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2297 minimum audible volume level and 100% corresponds to the maximum
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2298 comfortable level. The UA should allow the values corresponding to 0%
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2299 and 100% to be set by the user. Suitable values depend on the equipment
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2300 in use (speakers, headphones), the environment (in car, home theater,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2301 library) and personal preferences. Some examples:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2302
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2303 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2304 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2305 A browser for in-car use has a setting for when there is lots of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2306 background noise . 0% would map to a fairly high level and 100% to a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2307 quite high level. The overall values are likely to be human adjustable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2308 for comfort, for example with a physical volume control: what this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2309 proposal does is adjust the dynamic range.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2310 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2311 Another speech browser is being used in the home, late at night, (don't
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2312 annoy the neighbors) or in a shared study room. 0% is set to very quiet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2313 and 100% to a fairly quiet level, too. As with the first example, there
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2314 is a low slope; the dynamic range is reduced. The actual volumes are low
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2315 here, wheras they were high in the first example.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2316 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2317 In a quiet and isolated house, an expensive hifi home theatre setup. 0%
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2318 is set fairly low and 100% to quite high; there is wide dynamic range.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2319 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2320
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2321 The same authors stylesheet could be used in all cases, simply by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2322 mapping the 0 and 100 points suitably at the client side.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2323
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2324 @node pause-before, pause-after, volume, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2325 @subsubsection pause-before
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2326
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2327 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2328 @item Value: @tab <time> | <percentage>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2329 @item Initial: @tab UA specific
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2330 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2331 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2332 @item Percentage values: @tab speed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2333 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2334
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2335 This property specifies the pause before elements. It may be given in an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2336 absolute units (seconds, milliseconds) or as a relative value in which
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2337 case it is relative to the reciprocal of the 'speed' property: if speed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2338 is 120 words per minute (ie a word takes half a second -- 500
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2339 milliseconds) then a pause-before of 100% means a pause of 500 ms and a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2340 pause-before of 20% means 100ms.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2341
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2342 Using relative units gives more robust stylesheets in the face of large
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2343 changes in speed.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2344
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2345 @node pause-after, pause, pause-before, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2346 @subsubsection pause-after
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2347
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2348 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2349 @item Value: @tab <time> | <percentage>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2350 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2351 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2352 @item Percentage values: @tab speed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2353 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2354
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2355 This property specifies the pause after elements. Values are specified
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2356 the same way as 'pause-before'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2357
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2358 @node pause, cue-before, pause-after, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2359 @subsubsection pause
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2360
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2361 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2362 @item Value: @tab [<time> | <percentage> ]@{1,2@};
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2363 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2364 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2365 @item Percentage values: @tab speed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2366 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2367
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2368 The 'pause' property is a shorthand for setting 'pause-before' and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2369 'pause-after'. The first value is pause-before and the second is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2370 pause-after. If only one value is given, it applies to both properties.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2371
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2372 Examples:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2373
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2374 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2375 H1 @{ pause: 20ms @} /* pause-before: 20ms; pause-after: 20ms */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2376 H2 @{ pause: 30ms 40ms @} /* pause-before: 30ms; pause-after: 40ms */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2377 H3 @{ pause-after: 10ms @} /* pause-before: ?; pause-after: 10ms */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2378 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2379
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2380 @node cue-before, cue-after, pause, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2381 @subsubsection cue-before
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2382
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2383 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2384 @item Value: @tab <url> | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2385 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2386 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2387 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2388 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2389 Auditory icons are another way to distinguish semantic elements. Sounds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2390 may be played before, and/or after the element to delimit it. The same
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2391 sound can be used both before and after, using the cue property.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2392
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2393 Examples:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2394
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2395 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2396 A @{ cue-before: url(bell.aiff); cue-after: url(dong.wav) @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2397 H1 @{ cue-before: url(pop.au); cue-after: url(pop.au) @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2398 H1 @{ cue: url(pop.au) @} /* same as previous */
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2399 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2400
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2401 @node cue-after, cue, cue-before, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2402 @subsubsection cue-after
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2403
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2404 @xref{cue-before}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2405
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2406 @node cue, play-during, cue-after, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2407 @subsubsection cue
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2408
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2409 @xref{cue-before}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2410
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2411 @node play-during, speed, cue, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2412 @subsubsection cue-during
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2413
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2414 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2415 @item Value: @tab <url> | mix | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2416 @item Initial: @tab mix
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2417 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2418 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2419 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2420 Similar to the cue-before and cue-after properties, this indicates sound
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2421 to be played during an element as a background (ie the sound is mixed in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2422 with the speech).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2423
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2424 Examples:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2425
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2426 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2427 BLOCKQUOTE.sad @{ cue-during: url(violins.aiff) @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2428 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2429
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2430 @node speed, voice-family, play-during, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2431 @subsubsection speed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2432
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2433 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2434 @item Value: @tab <words-per-minute> | x-slow | slow | medium | fast | x-fast | faster | slower
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2435 @item Initial: @tab medium
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2436 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2437 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2438 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2439
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2440 Specifies the speaking rate. Note that both absolute and relative
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2441 keyword values are allowed (compare with @ref{font-weight}).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2442
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2443 @node voice-family, pitch, speed, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2444 @subsubsection voice-family
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2445
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2446 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2447 @item Value: @tab [[<specific-voice> | <generic-voice>],]* [<specific-voice> | <generic-voice>]
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2448 @item Initial: @tab device-specific
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2449 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2450 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2451 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2452
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2453 The value is a prioritized list of voice family names. Generic families
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2454 are male, female, and child.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2455
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2456 Examples of specific voice families are: comedian, paul, lisa
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2457
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2458 Examples
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2459
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2460 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2461 H1 @{ voice-family: announcer, male @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2462 P.part.romeo @{ voice-family: romeo, male @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2463 P.part.juliet @{ voice-family: juliet, female @}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2464 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2465
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2466 @node pitch, pitch-range, voice-family, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2467 @subsubsection pitch
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2468
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2469 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2470 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2471
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2472 @node pitch-range, stress, pitch, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2473 @subsubsection pitch-range
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2474
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2475 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2476 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2477
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2478 @node stress, richness, pitch-range, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2479 @subsubsection stress
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2480
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2481 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2482 @item Value: @tab <percentage>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2483 @item Initial: @tab medium
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2484 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2485 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2486 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2487
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2488 Specifies the level of stress (assertiveness or emphasis) of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2489 speaking voice. English is a stressed language, and different parts of a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2490 sentence are assigned primary, secondary or tertiary stress. The value
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2491 of property 'stress' controls the amount of inflection that results from
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2492 these stress markers.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2493
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2494 Increasing the value of this property results in the speech being more
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2495 strongly inflected. It is in a sense dual to property 'pitch-range' and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2496 is provided to allow developers to exploit higher-end auditory displays.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2497
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2498 @node richness, speak-punctuation, stress, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2499 @subsubsection richness
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2500
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2501 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2502 @item Value: @tab <percentage>
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2503 @item Initial: @tab medium (50%)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2504 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2505 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2506 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2507
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2508 Specifies the richness (brightness) of the speaking voice. Different
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2509 speech devices may require the setting of one or more device-specific
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2510 parameters to achieve this effect.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2511
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2512 The effect of increasing richness is to produce a voice that carries --
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2513 reducing richness produces a soft, mellifluous voice.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2514
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2515 @node speak-punctuation, speak-date, richness, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2516 @subsubsection speak-punctuation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2517
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2518 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2519 @item Value: @tab code | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2520 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2521 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2522 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2523 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2524
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2525 'code' indicates that punctuation such as semicolons, braces, and so on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2526 are to be spoken literally. The default value of 'none' means that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2527 punctuation is not spoken but instead is rendered naturally as various
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2528 pauses.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2529
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2530 @node speak-date, speak-numeral, speak-punctuation, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2531 @subsubsection speak-date
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2532
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2533 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2534 @item Value: @tab myd | dmy | ymd | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2535 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2536 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2537 @item Inherited: @tab no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2538 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2539
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2540 This is a hint that the element contains a date and also how that date
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2541 should be spoken. month-day-year is common in the USA, while
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2542 day-month-year is common in Europe and year-month-day is also used.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2543
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2544 This should really be an HTML tag not a stylesheet property, since it
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2545 gives semantic information about the content.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2546
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2547 @node speak-numeral, speak-time, speak-date, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2548 @subsubsection speak-numeral
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2549
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2550 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2551 @item Value: @tab digits | continous
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2552 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2553 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2554 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2555 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2556
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2557 @node speak-time, , speak-numeral, Speech Properties
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2558 @subsubsection speak-time
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2559
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2560 @multitable @columnfractions .2 .8
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2561 @item Value: @tab 24 | 12 | none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2562 @item Initial: @tab none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2563 @item Applies to: @tab all elements
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2564 @item Inherited: @tab yes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2565 @end multitable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2566
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2567 @node Units, , Properties, Stylesheets
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2568 @section Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2569
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2570 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2571 * Length Units::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2572 * Percentage Units::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2573 * Color Units::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2574 * URLs::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2575 * Angle Units::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2576 * Time Units::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2577 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2578
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2579 @node Length Units, Percentage Units, Units, Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2580 @subsection Length Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2581
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2582 @node Percentage Units, Color Units, Length Units, Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2583 @subsection Percentage Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2584
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2585 @node Color Units, URLs, Percentage Units, Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2586 @subsection color Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2587
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2588 @node URLs, Angle Units, Color Units, Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2589 @subsection URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2590
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2591 @node Angle Units, Time Units, URLs, Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2592 @subsection Angle Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2593
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2594 These are the legal angle units:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2595 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2596 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2597 deg: degrees
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2598 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2599 grad
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2600 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2601 rad: radians
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2602 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2603
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2604 @node Time Units, , Angle Units, Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2605 @subsection Time Units
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2606
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2607 These are the legal time units:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2608
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2609 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2610 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2611 ms: milliseconds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2612 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2613 s: seconds
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2614 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2615
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2616 @node Supported URLs, MIME Support, Stylesheets, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2617 @chapter Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2618
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2619 ::WORK:: List supported URL types, specific RFCs, etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2620
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2621 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2622 * file:: Local file access.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2623 * ftp:: Remote file access via ftp.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2624 * nfs:: Remote file access via NFS.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2625 * info:: Access to the Emacs Info system.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2626 * http/https:: @sc{http/1.0} support.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2627 * mailto:: Sending simple electronic mail.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2628 * news/nntp/snews:: Reading and sending Usenet news.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2629 * rlogin/telnet/tn3270:: Legacy host connections.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2630 * irc:: Internet Relay Chat.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2631 * data:: Embedding the data within the URL itself.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2632 * mailserver:: Slightly more complicated electronic mail.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2633 * gopher:: Gopher and Gopher+.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2634 * finger:: The old favorite.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2635 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2636
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2637 @node file, ftp, Supported URLs, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2638 @section file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2639
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2640 @node ftp, nfs, file, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2641 @section ftp
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2642
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2643 @node nfs, info, ftp, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2644 @section nfs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2645
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2646 @node info, http/https, nfs, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2647 @section info
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2648
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2649 @node http/https, mailto, info, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2650 @section http/https
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2651
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2652 @node mailto, news/nntp/snews, http/https, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2653 @section mailto
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2654
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2655 @node news/nntp/snews, rlogin/telnet/tn3270, mailto, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2656 @section news/nntp/snews
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2657
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2658 @node rlogin/telnet/tn3270, irc, news/nntp/snews, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2659 @section rlogin/telnet/tn3270
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2660
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2661 @node irc, data, rlogin/telnet/tn3270, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2662 @section irc
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2663
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2664 @node data, mailserver, irc, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2665 @section data
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2666
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2667 @node mailserver, gopher, data, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2668 @section mailserver
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2669
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2670 @node gopher, finger, mailserver, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2671 @section gopher
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2672
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2673 @node finger, , gopher, Supported URLs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2674 @section finger
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2675
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2676 @node MIME Support, Security, Supported URLs, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2677 @chapter MIME Support
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2678 @sc{mime} is an emerging standard for multimedia mail. It offers a very
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2679 flexible typing mechanism. The type of a file or message is specified
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2680 in two parts, separated by a '/'. The first part is the general
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2681 category of the data (text, application, image, etc.). The second part
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2682 is the specific type of data (postscript, png, jpeg, etc.). So
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2683 @samp{text/html} specifies an @sc{html} document, whereas
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2684 @samp{image/x-xwindowdump} specifies an image of an Xwindow taken with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2685 the @file{xwd} program.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2686
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2687
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2688 This typing allows much more flexibility in naming files. @sc{http}/1.0
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2689 servers can now send back content-type headers in response to a request,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2690 and not have the client second-guess it based on file extensions. @sc{html}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2691 files can now be named @file{something.png} (not a great idea, but
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2692 possible).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2693
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2694 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2695 * Adding MIME types based on file extensions:: How to map file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2696 extensions onto MIME
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2697 types (e.g., @samp{.png ->
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2698 image/png)}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2699 * Specifying Viewers:: How to specify external and internal viewers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2700 for files that Emacs/W3 cannot handle natively.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2701 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2702
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2703 @node Adding MIME types based on file extensions, Specifying Viewers, MIME Support, MIME Support
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2704 @section Adding MIME types based on file extensions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2705
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2706 @vindex mm-mime-extensions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2707 For some protocols however, it is still necessary to guess the content
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2708 of a file based on the file extension. This type of guess-work should
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2709 only be needed when accessing files via @sc{ftp}, local file access, or old
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2710 @sc{http}/0.9 servers.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2711
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2712 Instead of specifying how to view things twice, once based on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2713 content-type and once based on the file extension, it is easier to map
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2714 file extensions to MIME content-types. The variable that controls this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2715 is @code{mm-mime-extensions}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2716
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2717 This variable is an assoc list of file extensions and the corresponding
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2718 MIME content-type. A sample entry looks like: @samp{(".movie"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2719 . "video/x-sgi-movie")} This makes all files that end in @file{.movie}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2720 (@file{foo.movie} and @file{bar.movie}) be interpreted as SGI animation
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2721 files. If a content-type is defined for the document, then this is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2722 over-ridden. Regular expressions can @b{NOT} be used.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2723
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2724 @cindex mime-types file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2725 @findex mm-parse-mimetypes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2726 Both Mosaic and the NCSA @sc{http} daemon rely on a separate file for mapping
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2727 file extensions to MIME types. Instead of having the users of Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2728 duplicate this in lisp, this file can be parsed using the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2729 @code{url-parse-mimetypes} function. This function is called each time
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2730 w3 is loaded. It tries to locate mimetype files in several places. If
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2731 the environment variable @code{MIMETYPES} is nonempty, then this is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2732 assumed to specify a UNIX-like path of mimetype files (this is a colon
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2733 separated string of pathnames). If the @code{MIMETYPES} environment
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2734 variable is empty, then Emacs/W3 looks for these files:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2735
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2736 @enumerate
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2737 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2738 @file{~/.mime-types}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2739 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2740 @file{/etc/mime-types}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2741 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2742 @file{/usr/etc/mime-types}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2743 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2744 @file{/usr/local/etc/mime-types}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2745 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2746 @file{/usr/local/www/conf/mime-types}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2747 @end enumerate
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2748
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2749 Each line contains information for one @sc{http} type. These types resemble
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2750 MIME types. To add new ones, use subtypes beginning with x-, such as
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2751 application/x-myprogram. Lines beginning with # are comment lines, and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2752 suitably ignored. Each line consists of:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2753
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2754 type/subtype ext1 ext2 ... ext@var{n}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2755
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2756 type/subtype is the MIME-like type of the document. ext* is any number
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2757 of space-separated filename extensions which correspond to the MIME
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2758 type.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2759
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2760 @node Specifying Viewers, , Adding MIME types based on file extensions, MIME Support
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2761 @section Specifying Viewers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2762
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2763 Not all files look as they should when parsed as an @sc{html} document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2764 (whitespace is stripped, paragraphs are reformatted, and lots of little
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2765 changes that make the document look unrecognizable). Files may be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2766 passed to external programs or Emacs Lisp functions to be viewed.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2767
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2768 Not all files can be viewed accurately from within an Emacs session (PNG
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2769 files for example, or audio files). For this reason, the user can
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2770 specify file "viewers" based on MIME content-types. This is done with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2771 a standard mailcap file. @xref{Mailcap Files}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2772
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2773 @findex mm-add-mailcap-entry
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2774 As an alternative, the function @code{mm-add-mailcap-entry} can also be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2775 used from an appropriate hook.@xref{Hooks} This functions takes three
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2776 arguments, the major type ("@i{image}"), the minor type ("@i{png}"), and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2777 an assoc list of information about the viewer. Please see the @sc{url}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2778 documentation for more specific information on what this assoc list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2779 should look like.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2780
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2781 @node Security, Non-Unix Operating Systems, MIME Support, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2782 @chapter Security
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2783 @cindex Security
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2784 @cindex Paranoia
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2785 There are an increasing number of ways to authenticate a user to a web
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2786 service. Emacs/W3 tries to support as many as possible. Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2787 currently supports:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2788
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2789 @table @b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2790 @item Basic Authentication
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2791 @cindex Security, Basic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2792 @cindex HTTP/1.0 Authentication
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2793 @cindex Authentication, Basic
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2794 The weakest authentication available, not recommended if serious
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2795 security is necessary. This is simply a string that looks like
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2796 @samp{user:password} that has been Base64 encoded, as defined in RFC
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2797 1421.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2798 @item Digest Authentication
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2799 @cindex Security, Digest
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2800 @cindex HTTP/1.0 Authentication
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2801 @cindex Authentication, Digest
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2802 Jeffery L. Hostetler, John Franks, Philip Hallam-Baker, Ari Luotonen,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2803 Eric W. Sink, and Lawrence C. Stewart have an internet draft for a new
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2804 authentication mechanism. For the complete specification, please see
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2805 draft-ietf-http-digest-aa-01.txt in the nearest internet drafts
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2806 archive@footnote{One is ftp://ds.internic.net/internet-drafts}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2807 @item SSL Encryption
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2808 @cindex HTTP/1.0 Authentication
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2809 @cindex Secure Sockets Layer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2810 @cindex SSL
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2811 @cindex Gag Puke Retch
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2812 @cindex Exportability
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2813 @cindex Export Restrictions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2814 SSL is the @code{Secure Sockets Layer} interface developed by Netscape
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2815 Communications @footnote{http://www.netscape.com/}. Emacs/W3 supports
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2816 @sc{http} transfers over an SSL encrypted channel, if the appropriate files
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2817 have been installed.@xref{Installing SSL}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2818 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2819
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2820 @node Non-Unix Operating Systems, Speech Integration, Security, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2821 @chapter Non-Unix Operating Systems
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2822 @cindex Non-Unix Operating Systems
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2823
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2824 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2825 * VMS:: The wonderful world of VAX|AXP-VMS!
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2826 * OS/2:: The next-best thing to Unix.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2827 * MS-DOS:: The wonderful world of MS-DOG!
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2828 * Windows:: Windows NT, Chicago/Windows 95.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2829 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2830
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2831 @node VMS, OS/2, Non-Unix Operating Systems, Non-Unix Operating Systems
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2832 @section VMS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2833 @cindex VAX-VMS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2834 @cindex AXP-VMS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2835 @cindex Digital VMS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2836 @cindex VMS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2837
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2838 :: WORK :: VMS Specific instriuctions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2839
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2840 @node OS/2, MS-DOS, VMS, Non-Unix Operating Systems
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2841 @section OS/2
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2842 @cindex OS/2
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2843 @cindex Warp
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2844
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2845 :: WORK :: OS/2 Specific instructions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2846
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2847 @node MS-DOS, Windows, OS/2, Non-Unix Operating Systems
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2848 @section MS-DOS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2849 @cindex MS-DOS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2850 @cindex Microsloth
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2851 @cindex DOS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2852 @cindex MS-DOG
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2853
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2854 :: WORK :: DOS Specific instructions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2855
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2856 @node Windows, , MS-DOS, Non-Unix Operating Systems
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2857 @section Windows
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2858 @cindex Windows (32-Bit)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2859 @cindex 32-Bit Windows
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2860 @cindex Microsloth
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2861 @cindex Windows '95
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2862
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2863 :: WORK :: 32bit Windows Specific instructions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2864
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2865 @node Speech Integration, Advanced Features, Non-Unix Operating Systems, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2866 @chapter Speech Integration
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2867
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2868 :: WORK :: Emacspeak integration
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2869
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2870 @node Advanced Features, More Help, Speech Integration, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2871 @chapter Advanced Features
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2872
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2873 @menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2874 * Disk Caching:: Improving performance by using a local disk cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2875 * Interfacing to Mail/News:: How to make VM understand hypertext links
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2876 * Debugging HTML:: How to make Emacs/W3 display warnings about invalid
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2877 @sc{html}/@sc{html}+ constructs.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2878 * Hooks:: Various hooks to use throughout Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2879 * Other Variables:: Miscellaneous variables that control the real
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2880 guts of Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2881 @end menu
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2882
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2883 @node Disk Caching, Interfacing to Mail/News, Advanced Features, Advanced Features
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2884 @section Disk Caching
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2885 @cindex Caching
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2886 @cindex Persistent Cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2887 @cindex Disk Cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2888
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2889 A cache stores the information on a page on the local machine. When
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2890 requesting a page that is in the cache, Emacs/W3 can retrieve the page
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2891 from the cache more quickly than retrieving the page again from its
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2892 location out on the network. With a well-populated cache, browsing the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2893 web is dramatically faster.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2894
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2895 The first time a page is requested, Emacs/W3 retrieves the page from the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2896 network. When requesting a page that is in the cache, Emacs/W3 checks
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2897 to see if the page has changed since it was last retrieved from the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2898 remote machine. If it has not changed, the local copy is used, saving
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2899 the transmission of the file over the network.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2900
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2901 @vindex url-automatic-caching
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2902 @cindex Turning on caching
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2903 @cindex Cleaning the cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2904 @cindex Clearing the cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2905 @cindex Cache cleaning
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2906 @cindex Limiting the size of the cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2907 To turn on disk caching, set the variable @code{url-automatic-caching}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2908 to non-@code{nil}, or choose the 'Caching' menu item (under `Options').
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2909 That is all there is to it. Running the @code{clean-cache} shell script
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2910 fist is recommended, to allow for future cleaning of the cache. This
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2911 shell script will remove all files that have not been accessed since it
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2912 was last run. To keep the cache pared down, it is recommended that this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2913 script be run from @i{at} or @i{cron} (see the manual pages for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2914 crontab(5) or at(1) for more information)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2915
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2916
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2917 @cindex Relying on cache
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2918 @cindex Cache only mode
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2919 @cindex Standalone mode
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2920 @cindex Browsing with no network connection
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2921 @cindex Netless browsing
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2922 @vindex url-standalone-mode
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2923 With a large cache of documents on the local disk, it can be very handy
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2924 when traveling, or any other time the network connection is not active
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2925 (a laptop with a dial-on-demand PPP connection, etc). Emacs/W3 can rely
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2926 solely on its cache, and avoid checking to see if the page has changed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2927 on the remote server. In the case of a dial-on-demand PPP connection,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2928 this will keep the phone line free as long as possible, only bringing up
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2929 the PPP connection when asking for a page that is not located in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2930 cache. This is very useful for demonstrations as well. To turn this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2931 feature on, set the variable @code{url-standalone-mode} to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2932 non-@code{nil}, or choose the `Use Cache Only' menu item (under
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2933 `Options')
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2934
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2935 @node Interfacing to Mail/News, Debugging HTML, Disk Caching, Advanced Features
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2936 @section Interfacing to Mail/News
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2937 @cindex Interfacing to Mail/News
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2938 @cindex VM
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2939 @cindex Using Emacs/W3 with VM
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2940 @cindex GNUS
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2941 @cindex Using Emacs/W3 with Gnus
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2942 @cindex RMAIL
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2943 @cindex Using Emacs/W3 with RMAIL
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2944
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2945 More and more people are including @sc{url}s in their signatures, and within
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2946 the body of mail messages. It can get quite tedious to type these into
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2947 the minibuffer to follow one.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2948
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2949 @vindex browse-url-browser-function
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2950 With the latest versions of VM (the 5.9x series of betas) and Gnus
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2951 (5.x), @sc{url}s are automatically highlighted, and can be followed with the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2952 mouse or the return key. How the @sc{url}s are viewed is determined by the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2953 variable @code{browse-url-browser-function}, and it should be set to the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2954 symbol @code{browse-url-w3}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2955
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2956 To access @sc{url}s from within RMAIL, the following hook should do the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2957 trick.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2958 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2959 (add-hook 'rmail-mode-hook
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2960 (function
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2961 (lambda ()
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2962 (define-key rmail-mode-map [mouse-2] 'w3-maybe-follow-link-mouse)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2963 (define-key rmail-mode-map "\r" 'w3-maybe-follow-link))))
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2964 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2965
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2966 @node Debugging HTML, Hooks, Interfacing to Mail/News, Advanced Features
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2967 @section Debugging HTML
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2968 @cindex Debugging
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2969 @cindex Invalid HTML
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2970 @cindex Bad HTML
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2971 @vindex w3-debug-buffer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2972 @vindex w3-debug-html
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2973
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2974 For those people that are adventurous, or are just as anal as I am about
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2975 people writing valid @sc{html}, set the variable @code{w3-debug-html} to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2976 @code{t} and see what happens.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2977
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2978
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2979 If a Emacs/W3 thinks it has encountered invalid @sc{html}, then a debugging
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2980 message is displayed.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2981
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2982 :: WORK :: Need to list the different values w3-debug-html can have, and@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2983 :: WORK :: what they do ::
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2984
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2985 @node Hooks, Other Variables, Debugging HTML, Advanced Features
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2986 @section Hooks
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2987 @cindex Hooks
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2988
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2989 These are the various hooks that can be used to customize some of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2990 Emacs/W3's behavior. They are arranged in the order in which they would
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2991 happen when retrieving a document. These are all 'normal hooks' in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2992 standard Emacs-terminology, meaning they are functions (or lists of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2993 functions) that are called consecutively.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2994
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2995 @table @code
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2996 @vindex w3-load-hook
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2997 @item w3-load-hook
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2998 These hooks are run the first time a @sc{url} is fetched. All the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
2999 Emacs/W3 variables are initialized before this hook is run.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3000 @item w3-mode-hook
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3001 These hooks are run after a buffer has been parsed and displayed, but
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3002 before any inlined images are downloaded and converted.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3003 @item w3-source-file-hook
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3004 These hooks are run after displaying a document's source.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3005 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3006
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3007 @node Other Variables, , Hooks, Advanced Features
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3008 @section Miscellaneous variables
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3009
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3010 There are lots of variables that control the real nitty-gritty of Emacs/W3
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3011 that the beginning user probably shouldn't mess with. Here they are.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3012
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3013 @table @code
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3014 @item url-bad-port-list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3015 @vindex url-bad-port-list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3016 List of ports to warn the user about connecting to. Defaults to just
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3017 the mail and @sc{nntp} ports so a malicious @sc{html} author cannot spoof mail or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3018 news to other people.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3019 @item url-confirmation-func
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3020 @vindex url-confirmation-func
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3021 What function to use for asking yes or no functions. Possible values
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3022 are @code{'yes-or-no-p} or @code{'y-or-n-p}, or any function that takes
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3023 a single argument (the prompt), and returns @code{t} only if a positive
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3024 answer is gotten. Defaults to @code{'yes-or-no-p}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3025 @item w3-default-action
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3026 @vindex w3-default-action
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3027 A lisp symbol specifying what action to take for files with extensions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3028 that are not in the @code{mm-mime-extensions} assoc list. This is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3029 useful in case Emacs/W3 ever run across files with weird extensions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3030 (.foo, .README, .READMEFIRST, etc.). In most circumstances, this should
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3031 not be required anymore.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3032
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3033 Possible values: any lisp symbol. Should be a function that takes no
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3034 arguments. The return value does not matter, it is ignored. Some examples
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3035 are @code{'w3-prepare-buffer} or @code{'indented-text-mode}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3036 @ignore
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3037 @item w3-icon-directory-list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3038 @vindex w3-icon-directory-list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3039 A list of directorys to look in for the w3 standard icons... must end
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3040 in a /! If the directory @code{data-directory}/w3 exists, then this is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3041 automatically added to the default value of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3042 http://cs.indiana.edu/elisp/w3/icons/.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3043 @end ignore
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3044 @item w3-keep-old-buffers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3045 @vindex w3-keep-old-buffers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3046 Whether to keep old buffers around when following links. To avoid lots
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3047 of buffers in one Emacs session, set this variable to @code{nil}. I
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3048 recommend setting it to @code{t}, so that backtracking from one link to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3049 another is faster.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3050
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3051 @item url-passwd-entry-func
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3052 @vindex url-passwd-entry-func
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3053 This is a symbol indicating which function to call to read in a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3054 password. If this variable is @code{nil} at startup, it is initialized
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3055 depending on whether @dfn{EFS} or @dfn{ange-ftp} is being used. This
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3056 function should accept the prompt string as its first argument, and the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3057 default value as its second argument.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3058
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3059 @item w3-reuse-buffers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3060 @vindex w3-reuse-buffers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3061 Determines what happens when @code{w3-fetch} is called on a document
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3062 that has already been loaded into another buffer. Possible values are:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3063 @code{nil}, @code{yes}, and @code{no}. @code{nil} will ask the user if
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3064 Emacs/W3 should reuse the buffer (this is the default value). A value of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3065 @code{yes} means assume the user wants to always reuse the buffer. A
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3066 value of @code{no} means assume the user always wants to re-fetch the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3067 document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3068 @item w3-show-headers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3069 @vindex w3-show-headers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3070 This is a list of @sc{http}/1.0 headers to show at the end of a buffer. All
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3071 the headers should be in lowercase. They are inserted at the end of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3072 buffer in a <UL> list. Alternatively, if this is simply @code{t}, then
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3073 all the @sc{http}/1.0 headers are shown. The default value is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3074 @code{nil}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3075 @item w3-show-status, url-show-status
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3076 @vindex url-show-status
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3077 @vindex w3-show-status
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3078 Whether to show progress messages in the minibuffer.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3079 @code{w3-show-status} controls if messages about the parsing are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3080 displayed, and @code{url-show-status} controls if a running total of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3081 number of bytes transferred is displayed. These Can cause a large
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3082 performance hit if using a remote X display over a slow link, or a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3083 terminal with a slow modem.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3084 @item mm-content-transfer-encodings
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3085 @vindex mm-content-transfer-encodings
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3086 An assoc list of @var{Content-Transfer-Encodings} or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3087 @var{Content-Encodings} and the appropriate decoding algorithms for each.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3088 If the @code{cdr} of a node is a list, then this specifies the decoder is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3089 an external program, with the program as the first item in the list, and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3090 the rest of the list specifying arguments to be passed on the command line.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3091 If using an external decoder, it must accept its input from @code{stdin}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3092 and send its output to @code{stdout}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3093
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3094 If the @code{cdr} of a node is a symbol whose function definition is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3095 non-@code{nil}, then that encoding can be handled internally. The function
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3096 is called with 2 arguments, buffer positions bounding the region to be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3097 decoded. The function should completely replace that region with the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3098 unencoded information.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3099
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3100 Currently supported transfer encodings are: base64, x-gzip, 7bit, 8bit,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3101 binary, x-compress, x-hqx, and quoted-printable.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3102 @item url-uncompressor-alist
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3103 @vindex url-uncompressor-alist
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3104 An assoc list of file extensions and the appropriate uncompression
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3105 programs for each. This is used to build the Accept-encoding header for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3106 @sc{http}/1.0 requests.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3107 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3108
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3109 @node More Help, Future Directions, Advanced Features, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3110 @chapter More Help
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3111 @cindex Relevant Newsgroups
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3112 @cindex Newsgroups
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3113 @cindex Support
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3114 For more help on Emacs/W3, please send me mail
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3115 (@i{wmperry@@cs.indiana.edu}). Several discussion lists have also been
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3116 created for Emacs/W3. To subscribe, send mail to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3117 @i{majordomo@@indiana.edu}, with the body of the message 'subscribe
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3118 @var{listname} @var{<email addres>}'. All other mail should go to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3119 @i{<listname>@@indiana.edu}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3120
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3121
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3122 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3123 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3124 w3-announce -- this list is for anyone interested in Emacs/W3, and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3125 should in general only be used by me. The gnu.emacs.sources newsgroup
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3126 and a few other mailing lists are included on this. Please only use
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3127 this list for major package releases related to Emacs/W3.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3128 (@i{www-announce@@w3.org} is included on this list).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3129 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3130 w3-beta -- this list is for beta testers of Emacs/W3. These brave souls test
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3131 out not-quite stable code.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3132 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3133 w3-dev -- a list consisting of myself and a few other people who are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3134 interested in the internals of Emacs/W3, and doing active development work.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3135 Pretty dead right now, but I hope it will grow.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3136 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3137
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3138 For more help on the World Wide Web in general, please refer to the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3139 comp.infosystems.www.* newsgroups. There are also several discussion
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3140 lists concerning the Web. Send mail to @i{<listname>-request@@w3.org}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3141 with a subject line of 'subscribe <listname>'. All mail should go to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3142 @i{<listname>@@w3.org}. Administrative mail should go to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3143 @i{www-admin@@w3.org}. The lists are:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3144
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3145
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3146 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3147 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3148 www-talk -- for general discussion of the World Wide Web, where its
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3149 going, new features, etc. All the major developers are subscribed to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3150 this list.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3151 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3152 www-announce -- for announcements concerning the World Wide Web. Server
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3153 changes, new servers, new software, etc.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3154 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3155
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3156 As a last resort, mail me. I'll try to answer as quickly as I can.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3157
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3158 @node Future Directions, Reporting Bugs, More Help, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3159 @chapter Future Directions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3160 Changes are constantly being made to the Emacs browser (hopefully all
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3161 for the better). This is a list of the things that are being worked on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3162 right now.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3163
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3164 :: WORK :: Revamp the todo list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3165
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3166 @node Reporting Bugs, Dealing with Firewalls, Future Directions, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3167 @appendix Reporting Bugs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3168 @cindex Reporting Bugs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3169 @cindex Bugs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3170 @cindex Contacting the author
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3171
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3172 If any bugs are discovered in Emacs/W3, please report them to the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3173 mailing list @t{w3-beta@@indiana.edu} - this is where the brave souls
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3174 who beta test the latest versions of Emacs/W3 reside, and are generally
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3175 very responsive to bug reports.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3176
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3177 @kindex w
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3178 Please make sure to use the bug submission feature of Emacs/W3, so that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3179 all relevant information will be sent along with your bug report. By
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3180 default this is bound to the `@key{w}' key when in an Emacs/W3 buffer,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3181 or you can use @key{M-x w3-submit-bug} from anywhere within Emacs.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3182
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3183 For problems that are causing emacs to signal and error, please send a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3184 backtrace. You can get a backtrace by @kbd{M-x setvariable RET
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3185 debug-on-error RET t RET}, and then reproduce the error.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3186
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3187 If the problem is visual, please capture a copy of the output and mail
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3188 it along with the bug report (preferably as a MIME attachment, but
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3189 anything will do). You can use the @code{xwd} program under X-windows
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3190 for this, or @key{Alt-PrintScreen} under Windows 95/NT. Sorry, but I
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3191 don't remember what the magic incarnation is for doing a screen dump
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3192 under NeXTstep or OS/2.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3193
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3194 If the problem is actually causing Emacs to crash, then you will need to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3195 also mail the maintainers of the various Emacs distributions with the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3196 bug. Please use the @t{gnu.emacs.bug} newgroup for reporting bugs with
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3197 GNU Emacs 19, and @t{comp.emacs.xemacs} for reporting bugs with XEmacs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3198 19 or XEmacs 20. I am actively involved with the beta testing of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3199 latest versions of both branches of Emacs, and if I can reproduce the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3200 problem, I will do my best to see it gets fixed in the next release.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3201
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3202 It is also important to always maintain as much context as possible in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3203 your responses. I get so much email from my various Emacs-activities
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3204 and work, that I cannot remember everything. If you send a bug report,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3205 and I send you a reply, and you reply with 'no that didn't work', then
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3206 odds are I will have no clue what didn't work, much less what that was
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3207 trying to fix in the first place. It will be much quicker and less
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3208 painful if I don't have to waste a round-trip email exchange saying
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3209 'what are you talking about'.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3210
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3211 @node Dealing with Firewalls, Proxy Gateways, Reporting Bugs, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3212 @appendix Dealing with Firewalls
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3213 By default, Emacs can support standard @sc{tcp}/@sc{ip} network
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3214 connections on almost all the platforms it runs on (Unix, @sc{vms},
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3215 Windows, etc). However, there are several situations where it is not
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3216 sufficient.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3217
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3218 @table @b
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3219 @cindex Firewalls
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3220 @item Firewalls
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3221 It is becoming more and more common to be behind a firewall or some
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3222 other system that restricts your outbound network activity, especially
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3223 if you are like me and away from the wonderful world of academia.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3224 Emacs/W3 has several different methods to get around firewalls (not to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3225 worry though - none of them should get you in trouble with the local
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3226 @sc{mis} department.)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3227
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3228 @item Emacs cannot resolve hostnames.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3229 @cindex Faulty hostname resolvers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3230 @cindex Broken SunOS libc
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3231 @cindex Hostname resolution
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3232 This happens quite often on SunOS workstations and some ULTRIX machines.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3233 Some C libraries do not include the hostname resolver routines in their
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3234 static libraries. If Emacs was linked statically, and was not linked
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3235 with the resolver libraries, it wil not be able to get to any machines
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3236 off the local network. This is characterized by being able to reach
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3237 someplace with a raw ip number, but not its hostname
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3238 (@url{http://129.79.254.191/} works, but
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3239 @url{http://www.cs.indiana.edu/} doesn't).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3240
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3241 The best solution for this problem is to recompile Emacs, making sure to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3242 either link dynamically (if available on your operating system), or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3243 include the @file{-lresolv}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3244
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3245 @cindex url-gateway-broken-resolution
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3246 If you do not have the disk space or the appropriate permissions to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3247 recompile Emacs, another alternative is using the @file{nslookup}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3248 program to do hostname resolution. To turn this on, set the variable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3249 @code{url-gateway-broken-resolution} in your @file{~/.emacs} file. This
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3250 runs the program specified by @code{url-gateway-nslookup-program} (by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3251 default "@code{nslookup}" to do hostname resolution. This program should
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3252 expect a single argument on the command line - the hostname to resolve,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3253 and should produce output similar to the standard Unix @file{nslookup}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3254 program:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3255
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3256 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3257 Name: www.cs.indiana.ed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3258 Address: 129.79.254.191
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3259 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3260
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3261 @cindex @sc{term}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3262 @item Using @sc{term} (or @sc{term}-like) Networking Software
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3263 @sc{term} @footnote{@sc{term} is a user-level protocol for emulating
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3264 @sc{ip} over a serial line. More information is available at
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3265 @url{ftp://sunsite.unc.edu/pub/Linux/apps/comm/term}} for slip-like
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3266 access to the internet.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3267
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3268 @sc{note}: XEmacs and Emacs 19.22 or later have patches to enable native
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3269 @sc{term} networking. To enable it, @code{#define TERM} in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3270 appropriate s/*.h file for the operating system, then change the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3271 @code{SYSTEM_LIBS} definition to include the @file{termnet} library that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3272 comes with the latest versions of @sc{term}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3273
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3274 If you run into any problems with the native @sc{term} networking
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3275 support in Emacs or XEmacs, please let @t{wmperry@@cs.indiana.edu} know,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3276 as he is responsible for the original support.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3277 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3278
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3279 @vindex url-gateway-local-host-regexp
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3280 Emacs/W3 has support for using the gateway mechanism for certain
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3281 domains, and directly connecting to others. The variable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3282 @code{url-gateway-local-host-regexp} controls this behaviour. This is a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3283 regular expression @footnote{Please see the full Emacs distribution for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3284 a description of regular expressions} that matches local hosts that do
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3285 not require the use of a gateway. If @code{nil}, then all connections
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3286 are made through the gateway.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3287
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3288 @vindex url-gateway-method
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3289 Emacs/W3 supports several methods of getting around gateways. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3290 variable @code{url-gateway-method} controls which of these methods is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3291 used. This variable can have several values (use these as symbol names,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3292 not strings), ie: @samp{(setq url-gateway-method 'telnet)}. Possible
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3293 values are:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3294
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3295 @table @dfn
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3296 @item telnet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3297 Use this method if you must first telnet and log into a gateway host,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3298 and then run telnet from that host to connect to outside machines.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3299
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3300 :: WORK :: document telnet gw variables@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3301 This section needs more information, specifically documenting the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3302 following variables. For now, please do @key{C-h v} on the variable for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3303 more information.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3304
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3305 @table @code
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3306 @item url-gateway-telnet-host
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3307 @item url-gateway-telnet-parameters
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3308 @item url-gateway-telnet-password-prompt
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3309 @item url-gateway-telnet-puser-name
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3310 @item url-gateway-prompt-pattern
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3311 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3312
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3313 @item rlogin
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3314 This method is identical to the @code{telnet} method, but uses
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3315 @file{rlogin} to log into the remote machine without having to send the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3316 username and password over the wire every time.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3317
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3318 :: WORK :: document rlogin gw variables@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3319 This section needs more information, specifically documenting the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3320 following variables. For now, please do @key{C-h v} on the variable for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3321 more information.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3322
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3323 @table @code
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3324 @item url-gateway-rlogin-host
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3325 @item url-gateway-rlogin-parameters
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3326 @item url-gateway-rlogin-user-name
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3327 @item url-gateway-prompt-pattern
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3328 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3329
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3330 @item tcp
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3331 Masanobu UMEDA (@i{umerin@@mse.kyutech.ac.jp}) has written a very small
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3332 application that you can run in a subprocess to do the network
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3333 connections.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3334
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3335 @item @sc{socks}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3336 Use if the firewall has a @sc{socks} gateway running on it.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3337
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3338 :: WORK :: document socks variables@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3339 This section needs more information, specifically documenting the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3340 following variables. For now, please do @key{C-h v} on the variable for
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3341 more information.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3342
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3343 @table @code
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3344 @item socks-host
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3345 @item socks-password
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3346 @item socks-username
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3347 @item socks-port
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3348 @item socks-timeout
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3349 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3350
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3351 @c @item ssl
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3352 @c This probably shouldn't be documented
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3353
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3354 @item native
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3355 This means that Emacs/W3 should use the builtin networking code of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3356 Emacs. This should be used only if there is no firewall, or the Emacs
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3357 source has already been hacked to get around the firewall.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3358 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3359
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3360 Emacs/W3 should now be able to get outside the local network. If none
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3361 of this makes sense, its probably my fault. Please check with the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3362 network administrators to see if they have a program that does most of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3363 this already, since somebody somewhere at the company has probably been
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3364 through something similar to this before, and would be much more
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3365 helpful/knowledgeable about the local setup than I would be. But feel
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3366 free to mail me as a last resort.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3367
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3368 @node Proxy Gateways, Installing SSL, Dealing with Firewalls, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3369 @appendix Proxy Gateways
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3370 @vindex url-proxy-services
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3371 @cindex Proxy Servers
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3372 @cindex Proxies
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3373 @cindex Proxies, environment variables
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3374 @cindex HTTP Proxy
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3375
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3376 In late January 1993, Kevin Altis and Lou Montulli proposed and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3377 implemented a new proxy service. This service requires the use of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3378 environment variables to specify a gateway server/port # to send
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3379 protocol requests to. Each protocol (@sc{http}, @sc{wais}, gopher,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3380 @sc{ftp}, etc.) can have a different gateway server. The environment
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3381 variables are @code{PROTOCOL}_proxy, where @code{PROTOCOL} is one of the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3382 supported network protocols (gopher, file, @sc{http}, @sc{ftp}, etc.)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3383
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3384 @cindex No Proxy
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3385 @cindex Proxies, exclusion lists
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3386 @vindex NO_PROXY
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3387 For companies with internal intranets, it will usually be helpful to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3388 define a list of hosts that should be contacted directly, @b{not} sent
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3389 through the proxy. The @code{NO_PROXY} environment variable controls
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3390 what hosts are able to be contacted directly. This should be a comma
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3391 separated list of hostnames, domain names, or a mixture of both.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3392 Asterisks can be used as a wildcard. For example:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3393
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3394 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3395 NO_PROXY=*.aventail.com,home.com,*.seanet.com
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3396 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3397
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3398 tells Emacs/W3 to contact all machines in the @b{aventail.com} and
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3399 @b{seanet.com} domains directly, as well as the machine named
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3400 @b{home.com}.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3401
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3402 @vindex url-proxy-services
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3403 @cindex Proxies, setting from lisp
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3404 For those adventurous souls who enjoy writing regular expressions, all
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3405 the proxy settings can be manipulated from Emacs-Lisp. The variable
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3406 @code{url-proxy-services} controls this. This is an assoc list, keyed
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3407 on the protocol type (@sc{http}, gopher, etc) in all lowercase. The
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3408 @code{cdr} of each entry should be the fully-specified @sc{url} of the proxy
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3409 server to contact, or, in the case of the special "no_proxy" entry, a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3410 regular expression that matches any hostnames that should be contacted
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3411 directly.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3412
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3413 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3414 (setq url-proxy-services '(("http" . "http://proxy.aventail.com/")
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3415 ("no_proxy" . "^.*\\(aventail\\|seanet\\)\.com")))
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3416 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3417
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3418 @node Installing SSL, Mailcap Files, Proxy Gateways, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3419 @appendix Installing SSL
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3420 @cindex HTTP/1.0 Authentication
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3421 @cindex Secure Sockets Layer
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3422 @cindex SSL
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3423 @cindex Gag Puke Retch
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3424 @cindex Exportability
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3425 @cindex Export Restrictions
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3426 In order to use SSL in Emacs/W3, an implementation of SSL is necessary.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3427 Emacs/W3 is configued to work out of the box with SSLeay 0.6.6 or later.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3428 For best results, you should apply a patch that makes the SSLeay client
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3429 much quieter about what it reports.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3430
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3431 You can download SSLeay from
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3432 @url{ftp://ftp.psy.uq.oz.au/pub/Crypto/SSL/}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3433
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3434 The following variables control how the external program is invoked.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3435
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3436 @table @code
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3437 @item ssl-program-name
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3438 @vindex ssl-program-name
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3439 The name of the program to run, as a string.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3440
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3441 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3442 (setq ssl-program-name "s_client")
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3443 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3444
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3445 @item ssl-program-arguments
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3446 @vindex ssl-program-arguments
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3447 This should be used if your SSL program needs command line switches to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3448 specify any behaviour (certificate file locations, etc). This is a list
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3449 of strings and symbols.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3450
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3451 The special symbols 'host and 'port may be used in the list of arguments
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3452 and will be replaced with the hostname and service/port that will be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3453 connected to.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3454
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3455 @example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3456 (setq ssl-program-arguments '("-host" host "-port" service "-verify" "4"
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3457 "-CApath /usr/local/ssl/certs"))
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3458 @end example
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3459 @end table
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3460
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3461 @node Mailcap Files, Down with DoubleClick, Installing SSL, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3462 @appendix Mailcap Files
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3463 NCSA Mosaic and almost all other WWW browsers rely on a separate file
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3464 for mapping MIME types to external viewing programs. This takes some of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3465 the burden off of browser developers, so each browser does not have to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3466 support all image formats, or postscript, etc. Instead of having the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3467 users of Emacs/W3 duplicate this in lisp, this file can be parsed using
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3468 the @code{mm-parse-mailcaps} function. This function is called each
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3469 time Emacs/W3 is loaded. It tries to locate mimetype files in several
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3470 places. If the environment variable @code{MAILCAPS} is nonempty, then
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3471 this is assumed to specify a UNIX-like path of mimetype files (this is a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3472 colon separated string of pathnames). If the @code{MAILCAPS}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3473 environment variable is empty, then Emacs/W3 looks for these
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3474 files:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3475
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3476 @enumerate
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3477 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3478 @file{~/.mailcap}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3479 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3480 @file{/etc/mailcap}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3481 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3482 @file{/usr/etc/mailcap}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3483 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3484 @file{/usr/local/etc/mailcap}
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3485 @end enumerate
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3486
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3487 This format of this file is specified in RFC 1343, but a brief synopsis
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3488 follows (this is taken verbatim from sections of RFC 1343).
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3489
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3490 Each mailcap file consists of a set of entries that describe the proper
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3491 handling of one media type at the local site. For example, one line
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3492 might tell how to display a message in Group III fax format. A mailcap
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3493 file consists of a sequence of such individual entries, separated by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3494 newlines (according to the operating system's newline
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3495 conventions). Blank lines and lines that start with the "#" character
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3496 (ASCII 35) are considered comments, and are ignored. Long entries may
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3497 be continued on multiple lines if each non-terminal line ends with a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3498 backslash character ('\', ASCII 92), in which case the multiple lines
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3499 are to be treated as a single mailcap entry. Note that for such
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3500 "continued" lines, the backslash must be the last character on the line
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3501 to be continued.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3502
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3503 Each mailcap entry consists of a number of fields, separated by
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3504 semi-colons. The first two fields are required, and must occur in the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3505 specified order. The remaining fields are optional, and may appear in
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3506 any order.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3507
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3508 The first field is the content-type, which indicates the type of data
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3509 this mailcap entry describes how to handle. It is to be matched against
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3510 the type/subtype specification in the "Content-Type" header field of an
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3511 Internet mail message. If the subtype is specified as "*", it is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3512 intended to match all subtypes of the named content-type.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3513
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3514 The second field, view-command, is a specification of how the message or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3515 body part can be viewed at the local site. Although the syntax of this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3516 field is fully specified, the semantics of program execution are
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3517 necessarily somewhat operating system dependent.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3518
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3519 The optional fields, which may be given in any order, are as follows:
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3520 @itemize @bullet
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3521 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3522 The "compose" field may be used to specify a program that can be used to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3523 compose a new body or body part in the given format. Its intended use
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3524 is to support mail composing agents that support the composition of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3525 multiple types of mail using external composing agents. As with the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3526 view- command, the semantics of program execution are operating system
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3527 dependent. The result of the composing program may be data that is not
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3528 yet suitable for mail transport---that is, a Content-Transfer-Encoding
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3529 may need to be applied to the data.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3530 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3531 The "composetyped" field is similar to the "compose" field, but is to be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3532 used when the composing program needs to specify the Content-type header
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3533 field to be applied to the composed data. The "compose" field is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3534 simpler, and is preferred for use with existing (non-mail-oriented)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3535 programs for composing data in a given format. The "composetyped" field
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3536 is necessary when the Content-type information must include auxilliary
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3537 parameters, and the composition program must then know enough about mail
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3538 formats to produce output that includes the mail type
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3539 information.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3540 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3541 The "edit" field may be used to specify a program that can be used to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3542 edit a body or body part in the given format. In many cases, it may be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3543 identical in content to the "compose" field, and shares the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3544 operating-system dependent semantics for program execution.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3545 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3546 The "print" field may be used to specify a program that can be used to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3547 print a message or body part in the given format. As with the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3548 view-command, the semantics of program execution are operating system
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3549 dependent.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3550 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3551 The "test" field may be used to test some external condition (e.g. the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3552 machine architecture, or the window system in use) to determine whether
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3553 or not the mailcap line applies. It specifies a program to be run to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3554 test some condition. The semantics of execution and of the value
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3555 returned by the test program are operating system dependent. If the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3556 test fails, a subsequent mailcap entry should be sought. Multiple test
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3557 fields are not permitted---since a test can call a program, it can
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3558 already be arbitrarily complex.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3559 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3560 The "needsterminal" field indicates that the view-command must be run on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3561 an interactive terminal. This is needed to inform window-oriented user
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3562 agents that an interactive terminal is needed. (The decision is not
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3563 left exclusively to the view-command because in some circumstances it
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3564 may not be possible for such programs to tell whether or not they are on
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3565 interactive terminals.) The needsterminal command should be assumed to
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3566 apply to the compose and edit commands, too, if they exist. Note that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3567 this is NOT a test---it is a requirement for the environment in which
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3568 the program will be executed, and should typically cause the creation of
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3569 a terminal window when not executed on either a real terminal or a
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3570 terminal window.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3571 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3572 The "copiousoutput" field indicates that the output from the
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3573 view-command will be an extended stream of output, and is to be
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3574 interpreted as advice to the UA (User Agent mail- reading program) that
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3575 the output should be either paged or made scrollable. Note that it is
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3576 probably a mistake if needsterminal and copiousoutput are both
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3577 specified.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3578 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3579 The "description" field simply provides a textual description,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3580 optionally quoted, that describes the type of data, to be used
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3581 optionally by mail readers that wish to describe the data before
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3582 offering to display it.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3583 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3584 The "x11-bitmap" field names a file, in X11 bitmap (xbm) format, which
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3585 points to an appropriate icon to be used to visually denote the presence
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3586 of this kind of data.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3587 @item
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3588 Any other fields beginning with "x-" may be included for local or
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3589 mailer-specific extensions of this format. Implementations should
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3590 simply ignore all such unrecognized fields to permit such extensions,
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3591 some of which might be standardized in a future version of this
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3592 document.
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3593 @end itemize
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3594
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3595 @node Down with DoubleClick, General Index, Mailcap Files, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3596 @appendix Down with DoubleClick
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3597 :: WORK :: Document why doubleclick is evil@*
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3598 :: WORK :: Document how you can never see another ad from them again
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3599
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3600 @node General Index, Key Index, Down with DoubleClick, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3601 @appendix General Index
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3602 @printindex fn
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3603 @node Key Index, , General Index, Top
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3604 @appendix Key Index
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3605 @printindex ky
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3606 @contents
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 165
diff changeset
3607 @bye