Ticket #113: i113.2.diff

File i113.2.diff, 3.2 KB (added by julian.reschke@…, 15 years ago)

Updated proposal.

  • p3-payload.xml

     
    11701170<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept-Language"/><iref primary="true" item="Grammar" subitem="language-range"/>
    11711171  <x:ref>Accept-Language</x:ref> = "Accept-Language" ":"
    11721172                    1#( <x:ref>language-range</x:ref> [ ";" "q" "=" <x:ref>qvalue</x:ref> ] )
    1173   <x:ref>language-range</x:ref>  = ( ( 1*8<x:ref>ALPHA</x:ref> *( "-" 1*8<x:ref>ALPHA</x:ref> ) ) | "*" )
     1173  <x:ref>language-range</x:ref>  =
     1174            &lt;language-range, defined in <xref target="RFC4647" x:fmt="," x:sec="2.1"/>&gt;
    11741175</artwork></figure>
    11751176<t>
    1176    Each language-range &MAY; be given an associated quality value which
     1177   Each language-range can be given an associated quality value which
    11771178   represents an estimate of the user's preference for the languages
    11781179   specified by that range. The quality value defaults to "q=1". For
    11791180   example,
     
    11831184</artwork></figure>
    11841185<t>
    11851186   would mean: "I prefer Danish, but will accept British English and
    1186    other types of English." A language-range matches a language-tag if
    1187    it exactly equals the tag, or if it exactly equals a prefix of the
    1188    tag such that the first tag character following the prefix is "-".
     1187   other types of English."
     1188</t>
     1189<t>
     1190   For matching, the "Basic Filtering" matching scheme, defined in
     1191   <xref target="RFC4647" x:sec="3.3.1" x:fmt="of"/>, is used:
     1192</t>
     1193<x:blockquote cite="http://tools.ietf.org/html/rfc4647#section-3.3.1">
     1194  <t>
     1195     A language range matches a
     1196     particular language tag if, in a case-insensitive comparison, it
     1197     exactly equals the tag, or if it exactly equals a prefix of the tag
     1198     such that the first character following the prefix is "-".
     1199  </t>
     1200</x:blockquote>
     1201<t>
    11891202   The special range "*", if present in the Accept-Language field,
    11901203   matches every tag not matched by any other range present in the
    11911204   Accept-Language field.
     
    20252038  <seriesInfo name="RFC" value="2119"/>
    20262039</reference>
    20272040
     2041<reference anchor='RFC4647'>
     2042  <front>
     2043    <title>Matching of Language Tags</title>
     2044    <author initials='A.' surname='Phillips' fullname='Addison Phillips' role="editor">
     2045      <organization>Yahoo! Inc.</organization>
     2046      <address><email>addison@inter-locale.com</email></address>
     2047    </author>
     2048    <author initials='M.' surname='Davis' fullname='Mark Davis' role="editor">
     2049      <organization>Google</organization>
     2050      <address><email>mark.davis@macchiato.com</email></address>
     2051    </author>
     2052    <date year='2006' month='September' />
     2053  </front>
     2054  <seriesInfo name='BCP' value='47' />
     2055  <seriesInfo name='RFC' value='4647' />
     2056</reference>
     2057
    20282058</references>
    20292059
    20302060<references title="Informative References">
     
    26522682      "Quoting Charsets"
    26532683    </t>
    26542684    <t>
     2685      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/113"/>:
     2686      "language tag matching (Accept-Language) vs RFC4647"
     2687    </t>
     2688    <t>
    26552689      <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/121"/>:
    26562690      "RFC 1806 has been replaced by RFC2183"
    26572691    </t>