Ticket #113: i113.2.diff
File i113.2.diff, 3.2 KB (added by julian.reschke@…, 15 years ago) |
---|
-
p3-payload.xml
1170 1170 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="Accept-Language"/><iref primary="true" item="Grammar" subitem="language-range"/> 1171 1171 <x:ref>Accept-Language</x:ref> = "Accept-Language" ":" 1172 1172 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 <language-range, defined in <xref target="RFC4647" x:fmt="," x:sec="2.1"/>> 1174 1175 </artwork></figure> 1175 1176 <t> 1176 Each language-range &MAY;be given an associated quality value which1177 Each language-range can be given an associated quality value which 1177 1178 represents an estimate of the user's preference for the languages 1178 1179 specified by that range. The quality value defaults to "q=1". For 1179 1180 example, … … 1183 1184 </artwork></figure> 1184 1185 <t> 1185 1186 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> 1189 1202 The special range "*", if present in the Accept-Language field, 1190 1203 matches every tag not matched by any other range present in the 1191 1204 Accept-Language field. … … 2025 2038 <seriesInfo name="RFC" value="2119"/> 2026 2039 </reference> 2027 2040 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 2028 2058 </references> 2029 2059 2030 2060 <references title="Informative References"> … … 2652 2682 "Quoting Charsets" 2653 2683 </t> 2654 2684 <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> 2655 2689 <eref target="http://tools.ietf.org/wg/httpbis/trac/ticket/121"/>: 2656 2690 "RFC 1806 has been replaced by RFC2183" 2657 2691 </t>