Re: [xml2rfc] assuming that period (.) ends a sentence is sometimes wrong

Nico Williams <nico@cryptonector.com> Sun, 28 February 2021 17:38 UTC

Return-Path: <nico@cryptonector.com>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 194273A19C7 for <xml2rfc@ietfa.amsl.com>; Sun, 28 Feb 2021 09:38:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.2
X-Spam-Level:
X-Spam-Status: No, score=-0.2 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cryptonector.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 BXidMNNF0y-C for <xml2rfc@ietfa.amsl.com>; Sun, 28 Feb 2021 09:38:33 -0800 (PST)
Received: from bumble.birch.relay.mailchannels.net (bumble.birch.relay.mailchannels.net [23.83.209.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE9E23A19C6 for <xml2rfc@ietf.org>; Sun, 28 Feb 2021 09:38:32 -0800 (PST)
X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com
Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 61FE2680F4D; Sun, 28 Feb 2021 17:38:31 +0000 (UTC)
Received: from pdx1-sub0-mail-a68.g.dreamhost.com (100-96-133-25.trex.outbound.svc.cluster.local [100.96.133.25]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E585A680F12; Sun, 28 Feb 2021 17:38:30 +0000 (UTC)
X-Sender-Id: dreamhost|x-authsender|nico@cryptonector.com
Received: from pdx1-sub0-mail-a68.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.133.25 (trex/6.0.2); Sun, 28 Feb 2021 17:38:31 +0000
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|nico@cryptonector.com
X-MailChannels-Auth-Id: dreamhost
X-Madly-Wide-Eyed: 640f5cc81550b18a_1614533911183_3076056641
X-MC-Loop-Signature: 1614533911183:1791913227
X-MC-Ingress-Time: 1614533911183
Received: from pdx1-sub0-mail-a68.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a68.g.dreamhost.com (Postfix) with ESMTP id 9DCE97E4B5; Sun, 28 Feb 2021 09:38:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to:content-transfer-encoding; s= cryptonector.com; bh=A0p/OQxLHU2j/SzjGRmvS2ZfOS8=; b=lnPxLrDZbuk /iFZmg6IYBVK/n5rhl3Vd6xoi8srJi6EZ6ZJCFSUsoHMi2+pjK35GG3DBy6obwjh qf7ewgKO1mOUwq0m1o23yMOCH8O3lGj8iCGyDuB7z78YUHOd5GeznJ3I1yw0FKc0 5Skk2B5t0B4HoQJlGzQw+BE5YkL+yj3A=
Received: from localhost (unknown [24.28.108.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by pdx1-sub0-mail-a68.g.dreamhost.com (Postfix) with ESMTPSA id B1E3C7E4AF; Sun, 28 Feb 2021 09:38:28 -0800 (PST)
Date: Sun, 28 Feb 2021 11:38:26 -0600
X-DH-BACKEND: pdx1-sub0-mail-a68
From: Nico Williams <nico@cryptonector.com>
To: John R Levine <johnl@taugh.com>
Cc: Carsten Bormann <cabo@tzi.org>, xml2rfc@ietf.org
Message-ID: <20210228173825.GE30153@localhost>
References: <20210227191644.165F76F105E2@ary.qy> <28B528D6-7CBA-4735-A5EE-C7061D1C1D0C@tzi.org> <3dc1abe5-24bf-3b12-7b58-d06c7cde428e@taugh.com> <BBA9B16E-5B06-419D-9ABE-BFB7E69B54C9@tzi.org> <6603926-561f-c9b8-2612-2afb9847b71@taugh.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <6603926-561f-c9b8-2612-2afb9847b71@taugh.com>
User-Agent: Mutt/1.9.4 (2018-02-28)
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/CSH3ZHsbPykMw43UI66Yfi8m5Gw>
Subject: Re: [xml2rfc] assuming that period (.) ends a sentence is sometimes wrong
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 28 Feb 2021 17:38:34 -0000

On Sun, Feb 28, 2021 at 12:14:27PM -0500, John R Levine wrote:
> I don't see how that would work in xml2rfc where <t> elements don't preserve
> spacing.

Provided it doesn't also lose alternative Unicode whitespace characters,
using &emsp; is an option.  In a pinch we could have an element to mark
the end of a sentence (<s/>).

> > The discussion came up because xml2rfc treated the dot in “Philip R. Zimmermann” as a sentence end.
> > This is a mere bug, and bugs can be fixed.
> 
> It is a hard bug to fix.  You can add a heuristic not to treat a single
> letter followed by a dot as a sentence end, but it's wrong sometimes since
> the single letter word "I" occasionally ends a sentence.

Indeed.  "U.S." is a perfect example, because it can appear in the
middle of a sentence or at the end of a sentence, and you can't even use
the case of the first letter of the next word to distinguish because
words naming principal U.S. insitutions are capitalized after "U.S."