Re: [precis] Directionality rule (Was: Review of current document draft-ietf-precis-framework-20)
Peter Saint-Andre - &yet <peter@andyet.net> Mon, 09 February 2015 19:56 UTC
Return-Path: <peter@andyet.net>
X-Original-To: precis@ietfa.amsl.com
Delivered-To: precis@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 01FBB1A87BE for <precis@ietfa.amsl.com>; Mon, 9 Feb 2015 11:56:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 72E7kTCajxqR for <precis@ietfa.amsl.com>; Mon, 9 Feb 2015 11:56:36 -0800 (PST)
Received: from mail-ig0-f172.google.com (mail-ig0-f172.google.com [209.85.213.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5F75C1A6F15 for <precis@ietf.org>; Mon, 9 Feb 2015 11:56:15 -0800 (PST)
Received: by mail-ig0-f172.google.com with SMTP id l13so18835633iga.5 for <precis@ietf.org>; Mon, 09 Feb 2015 11:56:14 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=BPNM+Qt4SBtkb9BJ21qUa/J7V3OhCmOfhYGJSq2Y7Hc=; b=S1O5c6GzUF5G+WsifPpT9YmulpSUWTiGcWkFN0VpzM+TdmbKie4UDJcLqA+X0q5fXk jpTT7OcWJalwqmd4F8w20hiKVp3BvjpSxYIQQInzoclDIzDa0t6Oj2roegbZNHoQKfov fWZDWo3Z5yEaAO8qaCKHTPcwSVNAGSlAO4LgfG0aZbha1NsK6HnFQiyiSRVN6hfivMhu umgvAz3Ce49IXY2EJtUw2eSzWQKSd/uGRT9VyjO3SVDpflUh5vikXFOLnW2Bklcw/1cN NKjyX6QtndVZOGNJ9Xh58XjaDDiJRA3Pq/Lb5g1pHJE2o1ixUGCYKoFqHokqZ5JTFHrj NlNQ==
X-Gm-Message-State: ALoCoQklsWghWBkwaTci+cR+bBkhffD0nJJq4iUHiBf/WPgTs/h3FcUZjPXrPg7WQryEYE0r0ufc
X-Received: by 10.43.178.134 with SMTP id ow6mr12326745icc.66.1423511774770; Mon, 09 Feb 2015 11:56:14 -0800 (PST)
Received: from aither.local (c-73-34-202-214.hsd1.co.comcast.net. [73.34.202.214]) by mx.google.com with ESMTPSA id 199sm6994584ioe.14.2015.02.09.11.56.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Feb 2015 11:56:14 -0800 (PST)
Message-ID: <54D910DC.1080003@andyet.net>
Date: Mon, 09 Feb 2015 12:56:12 -0700
From: Peter Saint-Andre - &yet <peter@andyet.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Pete Resnick <presnick@qti.qualcomm.com>
References: <13AD33F4-1741-472E-8423-1B0302734325@frobbit.se> <54851FAD.4040009@andyet.net> <54D8EC54.8020203@qti.qualcomm.com> <54D8F98F.4050309@andyet.net>
In-Reply-To: <54D8F98F.4050309@andyet.net>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/precis/AwBs_0pFAkJydEgA9JBffsBGWY4>
Cc: precis@ietf.org
Subject: Re: [precis] Directionality rule (Was: Review of current document draft-ietf-precis-framework-20)
X-BeenThere: precis@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Preparation and Comparison of Internationalized Strings <precis.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/precis>, <mailto:precis-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/precis/>
List-Post: <mailto:precis@ietf.org>
List-Help: <mailto:precis-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/precis>, <mailto:precis-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Feb 2015 19:56:39 -0000
On 2/9/15 11:16 AM, Peter Saint-Andre - &yet wrote: > On 2/9/15 10:20 AM, Pete Resnick wrote: >> Crap. Somehow I missed this discussion back in December, and didn't >> notice it before I sent out Last Call. When I went to put in my new >> ballot, I saw the change. >> >> On 12/7/14 9:49 PM, Peter Saint-Andre - &yet wrote: >>>>> 5.2.5. Directionality Rule >>>>> >>>>> >>>>> The directionality rule of a profile specifies how to treat >>>>> strings containing left-to-right (LTR) and right-to-left (RTL) >>>>> characters (see Unicode Standard Annex #9 [ UAX9 ]). A profile >>>>> usually specifies a directionality rule that restricts strings to >>>>> be entirely LTR >>>>> strings or entirely RTL strings and defines the allowable >>>>> sequences of characters in LTR and RTL strings. Possible rules >>>>> include, but are not limited to, (a) considering any string that >>>>> contains a right- to-left code point to be a right-to-left string, >>>>> or (b) applying the "Bidi Rule" from [ RFC5893 ]. >>>> >>>> One can not restrict to only LTR or RTL as some code points are >>>> neutral regarding directionality. >>>> >>>> See RFC5893. This was one of the mistakes in IDNA2003. >>> >>> I think you're right that the foregoing text is not quite correct. >>> >>> And in any case, as John Klensin reiterated at the mic in a recent >>> PRECIS WG session, if we define something other than the Bidi Rule >>> then we'll likely get it wrong. I think that text predates John's >>> comments and hasn't been updated.. >> >> While I agree that the text that I had proposed earlier is not correct >> as it stands for the reason Patrik identifies, setting it back to: >> >> The directionality rule of a profile specifies how to treat strings >> that contain right-to-left (RTL) characters (see Unicode Standard >> Annex #9 [UAX9]). In general this document recommends applying the >> "Bidi Rule" from [RFC5893] to strings that contain RTL characters. >> >> (i.e., what was there before the AD Evaluation) was not correct. There >> was, I thought, agreement on the problem I was pointing out, and text >> inserted to address it. Encouraging the use of 5893 is a bad thing >> outside of the DNS. > > I think John Klensin made a good point at the mic at a semi-recent > meeting (London?) that, if we try to define a new bidirectionality rule, > we are likely to do it wrong. > >> As we discussed at the time, the only reason that >> the 5893 Bidi Rule is so restrictive is because the (a) IDNA is already >> extremely restrictive in the characters it allows and (b) for DNS >> purposes, they wanted to make the display of labels around "."s more >> sane. Recommending 5893 it in other contexts is far too restrictive. Let >> me make another attempt to correct the above text without getting the >> bit about "only LTR or RTL" wrong: >> >> The directionality rule of a profile specifies how to treat strings >> containing combinations of characters with different directionality >> (e.g., left-to-right (LTR) characters, right-to-left (RTL) >> characters, and/or neutral directionality characters; see Unicode >> Standard Annex #9 [ UAX9 ]). A profile usually specifies a >> directionality rule that restricts strings to contain combinations of >> either entirely LTR and neutral characters or entirely RTL and >> neutral characters. A directionality rule can also define the >> allowable sequences of characters in such strings. The "Bidi Rule" >> from [RFC5893] is a particularly restrictive example of such a >> directionality rule. >> >> I am not wedded to the above, but what I would hate to see was this >> document go out the door with 5893 as the *recommendation*. > > What I would hate to see is leaving directionality handling up to the > profiles without much guidance about what to do. Further thoughts... If I read your proposed text correctly, you are saying three things: 1. A profile needs to define which directionality rule applies. 2. A profile can define its own directionality rule. 3. A profile can/might/may/should use the following rule: A string MUST contain LTR characters and neutral characters only or contain RTL characters and neutral characters only, but MUST NOT contain both LTR and RTL characters. (Does that rule have a name?) 4. The directionality rule defined by a particular profile may specify further restrictions, or may use a more restrictive rule (such as the Bidi Rule). I agree with (1). I think (2) is a bad idea for the reasons John explained. I think (3) is an acceptable rule and I think we might want to give profiles a choice between that and the Bidi Rule (thus discouraging new directionality rules). I think (4) is a bad idea if it assumes (2). Peter
- [precis] Review of current document draft-ietf-pr… Patrik Fältström
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Patrik Fältström
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Patrik Fältström
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Patrik Fältström
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Patrik Fältström
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Patrik Fältström
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Patrik Fältström
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- Re: [precis] Review of current document draft-iet… Peter Saint-Andre - &yet
- [precis] Directionality rule (Was: Review of curr… Pete Resnick
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Pete Resnick
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Pete Resnick
- Re: [precis] Directionality rule (Was: Review of … Bjoern Hoehrmann
- Re: [precis] Directionality rule (Was: Review of … John C Klensin
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Andrew Sullivan
- Re: [precis] Directionality rule (Was: Review of … Pete Resnick
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Bjoern Hoehrmann
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Pete Resnick
- Re: [precis] Directionality rule (Was: Review of … John C Klensin
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Black, David
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet
- Re: [precis] Directionality rule (Was: Review of … Pete Resnick
- Re: [precis] Directionality rule (Was: Review of … Peter Saint-Andre - &yet