Ignore:
Timestamp:
Jul 19, 2009, 6:10:24 AM (10 years ago)
Author:
julian.reschke@…
Message:

Resolve #13: refer to RFC4646bis for language tag definition (closes #13)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p3-payload.xml

    r609 r613  
    617617<section title="Language Tags" anchor="language.tags">
    618618  <x:anchor-alias value="language-tag"/>
    619   <x:anchor-alias value="primary-tag"/>
    620   <x:anchor-alias value="subtag"/>
    621 <t>
    622    A language tag identifies a natural language spoken, written, or
    623    otherwise conveyed by human beings for communication of information
    624    to other human beings. Computer languages are explicitly excluded.
    625    HTTP uses language tags within the Accept-Language and Content-Language
    626    fields.
    627 </t>
    628 <t>
    629    The syntax and registry of HTTP language tags is the same as that
    630    defined by <xref target="RFC1766"/>. In summary, a language tag is composed of 1
    631    or more parts: A primary language tag and a possibly empty series of
    632    subtags:
    633 </t>
    634 <figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="language-tag"/><iref primary="true" item="Grammar" subitem="primary-tag"/><iref primary="true" item="Grammar" subitem="subtag"/>
    635   <x:ref>language-tag</x:ref>  = <x:ref>primary-tag</x:ref> *( "-" <x:ref>subtag</x:ref> )
    636   <x:ref>primary-tag</x:ref>   = 1*8<x:ref>ALPHA</x:ref>
    637   <x:ref>subtag</x:ref>        = 1*8<x:ref>ALPHA</x:ref>
     619<t>
     620   A language tag, as defined in <xref target="RFC4646bis"/>, identifies a
     621   natural language spoken, written, or otherwise conveyed by human beings for
     622   communication of information to other human beings. Computer languages are
     623   explicitly excluded. HTTP uses language tags within the Accept-Language and
     624   Content-Language fields.
     625</t>
     626<t>
     627   In summary, a language tag is composed of one or more parts: A primary
     628   language subtag followed by a possibly empty series of subtags:
     629</t>
     630<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="language-tag"/>
     631  <x:ref>language-tag</x:ref> = &lt;Language-Tag, defined in <xref target="RFC4646bis" x:sec="2.1"/>&gt;
    638632</artwork></figure>
    639633<t>
    640634   White space is not allowed within the tag and all tags are case-insensitive.
    641    The name space of language tags is administered by the
    642    IANA. Example tags include:
    643 </t>
    644 <figure><artwork type="example">
    645   en, en-US, en-cockney, i-cherokee, x-pig-latin
    646 </artwork></figure>
    647 <t>
    648    where any two-letter primary-tag is an ISO-639 language abbreviation
    649    and any two-letter initial subtag is an ISO-3166 country code. (The
    650    last three tags above are not registered tags; all but the last are
    651    examples of tags which could be registered in future.)
     635   The name space of language subtags is administered by the IANA (see
     636   <eref target="http://www.iana.org/assignments/language-subtag-registry"/>).
     637</t>
     638<figure>
     639  <preamble>Example tags include:</preamble>
     640<artwork type="example">
     641  en, en-US, es-419, az-Arab, x-pig-latin, man-Nkoo-GN
     642</artwork>
     643</figure>
     644<t>
     645   See <xref target="RFC4646bis"/> for further information.
    652646</t>
    653647</section>
     
    19421936</reference>
    19431937
    1944 <reference anchor="RFC1766">
    1945   <front>
    1946     <title abbrev="Language Tag">Tags for the Identification of Languages</title>
    1947     <author initials="H." surname="Alvestrand" fullname="Harald Tveit Alvestrand">
    1948       <organization>UNINETT</organization>
    1949       <address><email>Harald.T.Alvestrand@uninett.no</email></address>
    1950     </author>
    1951     <date month="March" year="1995"/>
    1952   </front>
    1953   <seriesInfo name="RFC" value="1766"/>
    1954 </reference>
    1955 
    19561938<reference anchor="RFC1864">
    19571939  <front>
     
    21382120  <seriesInfo name="STD" value="68"/>
    21392121  <seriesInfo name="RFC" value="5234"/>
     2122</reference>
     2123
     2124<reference anchor='RFC4646bis'>
     2125  <front>
     2126    <title>Tags for Identifying Languages</title>
     2127    <author initials='A.' surname='Phillips' fullname='Addison Phillips' role='editor'>
     2128      <organization>Lab126</organization>
     2129      <address><email>addison@inter-locale.com</email></address>
     2130    </author>
     2131    <author initials='M.' surname='Davis' fullname='Mark Davis' role='editor'>
     2132      <organization>Google</organization>
     2133      <address><email>mark.davis@google.com</email></address>
     2134    </author>
     2135    <date month='June' day='11' year='2009' />
     2136  </front>
     2137  <seriesInfo name='Internet-Draft' value='draft-ietf-ltru-4646bis-23' />
    21402138</reference>
    21412139
     
    27362734
    27372735<x:ref>language-range</x:ref> = &lt;language-range, defined in [RFC4647], Section 2.1&gt;
    2738 <x:ref>language-tag</x:ref> = primary-tag *( "-" subtag )
     2736<x:ref>language-tag</x:ref> = &lt;Language-Tag, defined in [RFC4646bis], Section 2.1&gt;
    27392737
    27402738<x:ref>media-range</x:ref> = ( "*/*" / ( type "/*" ) / ( type "/" subtype ) ) *( OWS
     
    27452743<x:ref>parameter</x:ref> = attribute "=" value
    27462744<x:ref>partial-URI</x:ref> = &lt;partial-URI, defined in [Part1], Section 2.1&gt;
    2747 <x:ref>primary-tag</x:ref> = 1*8ALPHA
    27482745
    27492746<x:ref>quoted-string</x:ref> = &lt;quoted-string, defined in [Part1], Section 1.2.2&gt;
    27502747<x:ref>qvalue</x:ref> = &lt;qvalue, defined in [Part1], Section 3.5&gt;
    27512748
    2752 <x:ref>subtag</x:ref> = 1*8ALPHA
    27532749<x:ref>subtype</x:ref> = token
    27542750
     
    27572753
    27582754<x:ref>value</x:ref> = token / quoted-string
    2759 
    2760 
    27612755</artwork>
    27622756</figure>
     
    29792973<section title="Since draft-ietf-httpbis-p3-payload-07" anchor="changes.since.07">
    29802974<t>
    2981   None.
     2975  Closed issues:
     2976  <list style="symbols">
     2977    <t>
     2978      <eref target="http://www3.tools.ietf.org/wg/httpbis/trac/ticket/13"/>:
     2979      "Updated reference for language tags"
     2980    </t>
     2981  </list>
    29822982</t>
    29832983</section>
Note: See TracChangeset for help on using the changeset viewer.