comparison man/url.texi @ 60497:c40fb3b5ae9e

Fix usage of "e.g.". (HTTP language/coding): Explain the rules for these strings.
author Richard M. Stallman <rms@gnu.org>
date Tue, 08 Mar 2005 03:01:55 +0000
parents 3c4a7446da3d
children ed7e8235f78d
comparison
equal deleted inserted replaced
60496:3a569489ffdb 60497:c40fb3b5ae9e
107 address. If the @samp{:@var{port}} is omitted then the library will 107 address. If the @samp{:@var{port}} is omitted then the library will
108 use the `well known' port for that service when accessing URLs. With 108 use the `well known' port for that service when accessing URLs. With
109 the possible exception of @code{telnet}, it is rare for ports to be 109 the possible exception of @code{telnet}, it is rare for ports to be
110 specified, and it is possible using a non-standard port may have 110 specified, and it is possible using a non-standard port may have
111 undesired consequences if a different service is listening on that 111 undesired consequences if a different service is listening on that
112 port (e.g.@: an HTTP URL specifying the SMTP port can cause mail to be 112 port (e.g., an HTTP URL specifying the SMTP port can cause mail to be
113 sent).@c , but @xref{Other Variables, url-bad-port-list}. 113 sent).@c , but @xref{Other Variables, url-bad-port-list}.
114 The meaning of 114 The meaning of
115 the @var{path} component depends on the service. 115 the @var{path} component depends on the service.
116 116
117 @menu 117 @menu
140 @end example 140 @end example
141 141
142 @noindent where 142 @noindent where
143 @table @var 143 @table @var
144 @item type 144 @item type
145 is the type of the URL scheme, e.g.@: @code{http} 145 is the type of the URL scheme, e.g., @code{http}
146 @item user 146 @item user
147 is the username associated with it, or @code{nil}; 147 is the username associated with it, or @code{nil};
148 @item password 148 @item password
149 is the user password associated with it, or @code{nil}; 149 is the user password associated with it, or @code{nil};
150 @item host 150 @item host
180 @findex url-set-file 180 @findex url-set-file
181 @findex url-set-target 181 @findex url-set-target
182 @findex url-set-attributes 182 @findex url-set-attributes
183 @findex url-set-full 183 @findex url-set-full
184 These attributes have accessors named @code{url-@var{part}}, where 184 These attributes have accessors named @code{url-@var{part}}, where
185 @var{part} is the name of one of the elements above, e.g.@: 185 @var{part} is the name of one of the elements above, e.g.,
186 @code{url-host}. Similarly, there are setters of the form 186 @code{url-host}. Similarly, there are setters of the form
187 @code{url-set-@var{part}}. 187 @code{url-set-@var{part}}.
188 188
189 There are functions for parsing and unparsing between the string and 189 There are functions for parsing and unparsing between the string and
190 vector forms. 190 vector forms.
315 315
316 @node HTTP language/coding 316 @node HTTP language/coding
317 @subsection Language and Encoding Preferences 317 @subsection Language and Encoding Preferences
318 318
319 HTTP allows clients to express preferences for the language and 319 HTTP allows clients to express preferences for the language and
320 encoding of documents which servers may honour. 320 encoding of documents which servers may honour. For each of these
321 variables, the value is a string; it can specify a single choice, or
322 it can be a comma-separated list in descending order of preference.
323 Each element can be followed by @samp{;q=@var{priority}} to specify
324 its preference level; e.g., for @code{url-mime-language-string},
325 @w{@code{"de, en-gb;q=0.8, en;q=0.7"}}.
321 326
322 @defopt url-mime-charset-string 327 @defopt url-mime-charset-string
323 @cindex character sets 328 @cindex character sets
324 @cindex coding systems 329 @cindex coding systems
325 This variable specifies a preference for character sets when documents 330 This variable specifies a preference for character sets when documents
326 can be served in more than one encoding. 331 can be served in more than one encoding.
327 332
328 HTTP allows specifying a list of MIME charsets which indicate your 333 HTTP allows specifying a series of MIME charsets which indicate your
329 preferred character set encodings, e.g.@: Latin-9 or Big5, and these 334 preferred character set encodings, e.g., Latin-9 or Big5, and these
330 can be weighted. This list is generated automatically from the list 335 can be weighted. The default series is generated automatically from
331 of defined coding systems which have associated MIME types. These are 336 the associated MIME types of all defined coding systems, sorted by the
332 sorted by coding priority. @xref{Recognize Coding, , Recognizing 337 coding system priority specified in Emacs. @xref{Recognize Coding, ,
333 Coding Systems, emacs, The GNU Emacs Manual}. 338 Recognizing Coding Systems, emacs, The GNU Emacs Manual}.
334 @end defopt 339 @end defopt
335 340
336 @defopt url-mime-language-string 341 @defopt url-mime-language-string
337 @cindex language preferences 342 @cindex language preferences
338 A string specifying the preferred language when servers can serve 343 A string specifying the preferred language when servers can serve
339 files in several languages. Use RFC 1766 abbreviations, e.g.@: 344 files in several languages. Use RFC 1766 abbreviations, e.g.,
340 @samp{en} for English, @samp{de} for German. It can be a 345 @samp{en} for English, @samp{de} for German.
341 comma-separated list in descending order of preference. The ordering 346
342 can be made explicit using `q' factors defined by HTTP, e.g.@: 347 The string can be @code{"*"} to get the first available language (as
343 @w{@samp{de, en-gb;q=0.8, en;q=0.7}}. It can be @samp{*} to get the 348 opposed to the default).
344 first available language (as opposed to the default).
345 @end defopt 349 @end defopt
346 350
347 @node HTTP URL Options 351 @node HTTP URL Options
348 @subsection HTTP URL Options 352 @subsection HTTP URL Options
349 353