Re: [precis] PRECIS bidi rule for usernames

Sam Whited <sam@samwhited.com> Fri, 07 October 2016 19:29 UTC

Return-Path: <sam@samwhited.com>
X-Original-To: precis@ietfa.amsl.com
Delivered-To: precis@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9DA461295FE for <precis@ietfa.amsl.com>; Fri, 7 Oct 2016 12:29:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=samwhited.com
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 H3MF_WaUyBLS for <precis@ietfa.amsl.com>; Fri, 7 Oct 2016 12:29:37 -0700 (PDT)
Received: from mail-qt0-x22d.google.com (mail-qt0-x22d.google.com [IPv6:2607:f8b0:400d:c0d::22d]) (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 07A60129530 for <precis@ietf.org>; Fri, 7 Oct 2016 12:29:37 -0700 (PDT)
Received: by mail-qt0-x22d.google.com with SMTP id f6so25714482qtd.2 for <precis@ietf.org>; Fri, 07 Oct 2016 12:29:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samwhited.com; s=swgoo; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=TqYYOeJgTyfVrHQpmzx4e0PUxioJc0tC1ETUo69Cq4s=; b=H7cqO6boae47Hr5uAOQuwph2dC/UjeNEuA+UsGQpIr7OJPcw7g86BeZkAXqYmFDNbc zGu0KP9ZwZzw1sokblGkj6/glLc7mpcTFO0d2Ce1KCAzIcDIjx0r4i3vASBk+m8Ah2C7 BraCvQSD6AwAGEwOuEPIBRbbnBoBNJ5VdSxcg=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=TqYYOeJgTyfVrHQpmzx4e0PUxioJc0tC1ETUo69Cq4s=; b=FV+0JeZUJlbSsNuxr5XJyWbw1/BhG9z470tHSvqS7NPEz4GCAG5OGhzYJ0kkXiMvPE fWQNOXCaH44Yf8pIsVlg3PEt4JOoLcJhre31TTCWNC6sV0vTpiTjVGqCC4R9XDJPX3I4 CgDXfrSwhcM7mHK5EQyZjAjo0L8ce8zVgVT0tKVrf/ChKLX1VFuwS6cL5DuWwtMfbKL4 5ZWN6G+f+6CW46vnD7R1phJBQcSYlRDXPnhY9q5WZeV5oNtnIdTqr0LapzbDlJvFEOV5 9v61La0S4bdMviTFqb0rSCksWm4tO84chfkccQxYRxVjJb4E7QBfOh1LGbX8/ON5iS7L wXfQ==
X-Gm-Message-State: AA6/9Rnpi5mE3+8vtfGK5zJ6zhqMOBDwjLb8UsQMTovNtV46DgShh96t70Tk9oGY0Q/dyhArgTA8HBAowYCkVA==
X-Received: by 10.200.37.177 with SMTP id e46mr21550264qte.95.1475868576023; Fri, 07 Oct 2016 12:29:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.55.15.166 with HTTP; Fri, 7 Oct 2016 12:28:55 -0700 (PDT)
X-Originating-IP: [72.48.156.244]
In-Reply-To: <CAHVjMKH6BGhhOoCC=1yv1y5njoq0jobbBPS6eWpB2vwtibASFA@mail.gmail.com>
References: <CAHVjMKH6BGhhOoCC=1yv1y5njoq0jobbBPS6eWpB2vwtibASFA@mail.gmail.com>
From: Sam Whited <sam@samwhited.com>
Date: Fri, 7 Oct 2016 14:28:55 -0500
Message-ID: <CAHbk4RK4hVJzVWft9Vzn4Xfi+J_troCMDQi6eCHgFzCSaoDWiw@mail.gmail.com>
To: William Fisher <william.w.fisher@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/precis/P8EamaitB8Ur-sM0eJIJmbc-yQk>
Cc: precis@ietf.org
Subject: Re: [precis] PRECIS bidi rule for usernames
X-BeenThere: precis@ietf.org
X-Mailman-Version: 2.1.17
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: <https://mailarchive.ietf.org/arch/browse/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: Fri, 07 Oct 2016 19:29:39 -0000

On Fri, Oct 7, 2016 at 2:00 PM, William Fisher
<william.w.fisher@gmail.com>; wrote:
> I've been working on a python implementation of the PRECIS specification
> (https:github.com/byllyfish/precis-i18n).

Great timing; I was just this moment looking at your library and
considering including it in some interoperability tests for a set of
test vectors I'm working on.


> Can someone please clarify whether:
>
> A. The "Bidi rule" is ONLY applied to strings that contain right-to-left
> characters.
> B. The "Bidi rule" is applied to ALL strings.

The recent draft-ietf-precis-7613bis-03 clarifies this:

       Directionality Rule: Apply the "Bidi Rule" defined in [RFC5893]
       to strings that contain right-to-left characters (i.e., each of
       the six conditions of the Bidi Rule must be satisfied); for
       strings that do not contain right-to-left characters, there is no
       special processing for directionality.

I was apparently confused about this before too, I'm applying Bidi all
the time in the Go implementation. I'll be sure to add a test for this
in the test vectors when I publish them.

I'm actually not convinced this is the correct behavior though; it
seems confusing to me that usernames with RTL characters couldn't end
with punctuation, but strings with them could. This violates the
principal of least suprise.

Maybe Peter (CCed) can clarify if I'm misunderstanding something?

—Sam




-- 
Sam Whited
pub 4096R/54083AE104EA7AD3