[Ltru] Language Ranges

Mark Davis <mark.davis@icu-project.org> Wed, 28 September 2005 19:31 UTC

Received: from localhost.localdomain ([127.0.0.1] helo=megatron.ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1EKheo-0003LZ-PX; Wed, 28 Sep 2005 15:31:58 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1EKhem-0003LR-CH for ltru@megatron.ietf.org; Wed, 28 Sep 2005 15:31:56 -0400
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA01969 for <ltru@ietf.org>; Wed, 28 Sep 2005 15:31:54 -0400 (EDT)
Received: from e31.co.us.ibm.com ([32.97.110.149]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EKhmG-0007Xb-89 for ltru@ietf.org; Wed, 28 Sep 2005 15:39:42 -0400
Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e31.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id j8SJV9dZ002193 for <ltru@ietf.org>; Wed, 28 Sep 2005 15:31:09 -0400
Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay04.boulder.ibm.com (8.12.10/NCO/VERS6.7) with ESMTP id j8SJWMct543360 for <ltru@ietf.org>; Wed, 28 Sep 2005 13:32:22 -0600
Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id j8SJViTG028093 for <ltru@ietf.org>; Wed, 28 Sep 2005 13:31:44 -0600
Received: from [127.0.0.1] (sig-9-48-116-75.mts.ibm.com [9.48.116.75]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j8SJVhJs027988; Wed, 28 Sep 2005 13:31:43 -0600
Message-ID: <433AEF9C.9070405@icu-project.org>
Date: Wed, 28 Sep 2005 12:31:40 -0700
From: Mark Davis <mark.davis@icu-project.org>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Davis <mark.davis@icu-project.org>
References: <FA13712B13469646A618BC95F7E1BA8F0E2763@alvmbxw01.prod.quest.corp> <433AE893.4030304@icu-project.org>
In-Reply-To: <433AE893.4030304@icu-project.org>
X-MIME-Autoconverted: from 8bit to quoted-printable by e31.co.us.ibm.com id j8SJV9dZ002193
X-Spam-Score: 0.1 (/)
X-Scan-Signature: c1c65599517f9ac32519d043c37c5336
Cc: ltru@ietf.org
Subject: [Ltru] Language Ranges
X-BeenThere: ltru@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Language Tag Registry Update working group discussion list <ltru.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/ltru>, <mailto:ltru-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/ltru>
List-Post: <mailto:ltru@ietf.org>
List-Help: <mailto:ltru-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/ltru>, <mailto:ltru-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0300151778=="
Sender: ltru-bounces@ietf.org
Errors-To: ltru-bounces@ietf.org

The main issue I have with the document as it stands is that it neglects a very important case. The general case of language matching involves having a *list* of language ranges. You take a list like "en-US en fr it" and use it for either matching or lookup. So I would suggest adding the following text. (It probably needs fleshing out a bit, but this is a start.).


2.3 Language Range Lists

A language range list is a space-delimited list of zero or more language ranges. An extended language range list contains extended language ranges; a basic language range list is limited to containing basic language ranges. In matching, anything that matches any element of the list according to the above options is included. (With distance metrics, the shortest distance from any element in the list is the one used for the overall distance).

In lookup, the list is examined from first to last for a match, according to the above options. For example, starting with the list range "zh-Hant-CN en-US fr", and using Lookup with truncation as in 2.1.1, the lookup would progressively search for content as shown below:
List Range to match: zh-Hant-CN en-US fr
1. zh-Hant-CN
2. zh-Hant
3. zh
4. en-US
5. en
6. fr
7. (default content or the empty tag)



2.3
 Meaning of Language Tags and Ranges [RENUMBER to 2.4...]

_______________________________________________
Ltru mailing list
Ltru@ietf.org
https://www1.ietf.org/mailman/listinfo/ltru