[precis] PRECIS bidi rule for usernames

William Fisher <william.w.fisher@gmail.com> Fri, 07 October 2016 19:00 UTC

Return-Path: <william.w.fisher@gmail.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 79107129742 for <precis@ietfa.amsl.com>; Fri, 7 Oct 2016 12:00:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 DvZL3LeXKf_N for <precis@ietfa.amsl.com>; Fri, 7 Oct 2016 12:00:46 -0700 (PDT)
Received: from mail-io0-x230.google.com (mail-io0-x230.google.com [IPv6:2607:f8b0:4001:c06::230]) (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 79D8012980A for <precis@ietf.org>; Fri, 7 Oct 2016 12:00:32 -0700 (PDT)
Received: by mail-io0-x230.google.com with SMTP id r30so56352796ioi.1 for <precis@ietf.org>; Fri, 07 Oct 2016 12:00:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=wVbC5oujD7snyKWviVMUSNBVUj62H187dQJb48pIzo4=; b=DAoWsxIisCk/3ONaNwWakoVslyJJRrOCGcLeWqpwYmVbdTASjPzKyYaT3QmX3bjFIw VKVrQ1GnxnzQa6OC3FTI19JMBlOEJSH6+oXT3ksKXy4dCNgReDp/UgigllETBtHffoV2 sAKn4YinOHHqUKmGTDuOOVTGbyzXn4QYzUUkRXN6/2bAhdYyYrVkGIoNdrAfuOCRNFJ4 H59ShdTbT2NE/BE4bezxN1V9/2tbz+dL3+dTMwQuo2d7g0TrmlhUkHjLLais88m9pQyf UX+ly0opGzn/lsNg6tfj3h4dbiK2E6ZtlsZCuuEOg3dLH/F+Zdij3nni5N/gE7ilkc8I 7cxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=wVbC5oujD7snyKWviVMUSNBVUj62H187dQJb48pIzo4=; b=MhSghZObqPqKwiYBY0K0kqi7ec6niMgjGBcT9aypmHt+Ku6foWApfMsXTxW4y3UM5b GpCGsI9JQ9GwnXNnN8kzHsCOVwDbISypLA8dn3QmCs47t2leuCl1432afyatpTY85vdD Y5IQOroZmv9e8+yi7ENAZ++z0eZ6tinzEzhTEXc/J7JkmZI7TS+jvrMoS0HGX1i+ltnP waJPkDyi4/Y6UtRM0J4jxQ1c2gvH/pLeZFVKZcCLRPNZqyBlxhRwgn+1yOHEoCADeZj1 DbVolRmAm1KDKi3Sp1/9TltGgAdzNP+ZyZG2XpEmehO9TAu1wheYaDxCQPBxZpo7VhKe uOdg==
X-Gm-Message-State: AA6/9RnSPobVQjEeENJ1NsioeA4QqEE7AqZir9LkY5zo80Gm2DPAqin1fAeys3KbRLR6DhydPnvHlfYXb7A1Fg==
X-Received: by 10.107.129.69 with SMTP id c66mr25056038iod.111.1475866831484; Fri, 07 Oct 2016 12:00:31 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.50.95.42 with HTTP; Fri, 7 Oct 2016 12:00:31 -0700 (PDT)
From: William Fisher <william.w.fisher@gmail.com>
Date: Fri, 07 Oct 2016 12:00:31 -0700
Message-ID: <CAHVjMKH6BGhhOoCC=1yv1y5njoq0jobbBPS6eWpB2vwtibASFA@mail.gmail.com>
To: precis@ietf.org
Content-Type: multipart/alternative; boundary="001a113f9b0c39fd17053e4b06c0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/precis/mlTMZ-gzMzlQYaG9Mm8tiYPs4i8>
Subject: [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:11:40 -0000

I've been working on a python implementation of the PRECIS specification
(https:github.com/byllyfish/precis-i18n).

The Username profiles apply the "bidi rule".

       Directionality Rule: Applications MUST 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).

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.

If the answer is A, then "Juliet+" is a valid username.

If the answer is B, "Juliet+" is not a valid username because it violates
the Bidi rule.

I think the answer is probably A. However, this implies that right-to-left
usernames can never begin or end with ASCII punctuation.

Thanks,
Bill