Ignore:
Timestamp:
Jul 29, 2013, 12:54:43 PM (6 years ago)
Author:
fielding@…
Message:

improve the description of language tags to be closer to what is defined by RFC5646; updates [2293] which addresses #456

File:
1 edited

Legend:

Unmodified
Added
Removed
  • draft-ietf-httpbis/latest/p2-semantics.xml

    r2320 r2323  
    629629   natural language spoken, written, or otherwise conveyed by human beings for
    630630   communication of information to other human beings. Computer languages are
    631    explicitly excluded. HTTP uses language tags within the
    632    <x:ref>Accept-Language</x:ref> and <x:ref>Content-Language</x:ref>
    633    header fields.
    634 </t>
    635 <t>
    636    <x:ref>Accept-Language</x:ref> uses the looser language-range production
     631   explicitly excluded.
     632</t>
     633<t>
     634   HTTP uses language tags within the <x:ref>Accept-Language</x:ref> and
     635   <x:ref>Content-Language</x:ref> header fields.
     636   <x:ref>Accept-Language</x:ref> uses the broader language-range production
    637637   defined in <xref target="header.accept-language"/>, whereas
    638    <x:ref>Content-Language</x:ref> uses the stricter language-tag production
    639    defined below.
     638   <x:ref>Content-Language</x:ref> uses the language-tag production defined
     639   below.
    640640</t>
    641641<figure><artwork type="abnf2616"><iref primary="true" item="Grammar" subitem="language-tag"/>
     
    643643</artwork></figure>
    644644<t>
    645    A language tag is composed of one or more parts: a primary
    646    language subtag followed by a possibly empty series of subtags.
    647    White space is not allowed within the tag and all tags are case-insensitive.
     645   A language tag is a sequence of one or more case-insensitive subtags, each
     646   separated by a hyphen character ("-", %x2D).  In most cases, a language tag
     647   consists of a primary language subtag that identifies a broad family of
     648   related languages (e.g., "en" = English) which is optionally followed by a
     649   series of subtags that refine or narrow that language's range (e.g.,
     650   "en-CA" = the variety of English as communicated in Canada).
     651   Whitespace is not allowed within a language tag.
    648652   Example tags include:
    649653</t>
    650654<figure><artwork type="example">
    651   en, en-US, es-419, az-Arab, x-pig-latin, man-Nkoo-GN
     655  fr, en-US, es-419, az-Arab, x-pig-latin, man-Nkoo-GN
    652656</artwork></figure>
    653657<t>
Note: See TracChangeset for help on using the changeset viewer.