Re: [Rfc-markdown] [rfc-i] The <tt> train wreck

Martin Thomson <mt@lowentropy.net> Mon, 16 August 2021 21:59 UTC

Return-Path: <mt@lowentropy.net>
X-Original-To: rfc-markdown@ietfa.amsl.com
Delivered-To: rfc-markdown@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EAA553A1A65 for <rfc-markdown@ietfa.amsl.com>; Mon, 16 Aug 2021 14:59:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=WnMaWwno; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=DRuqt+wm
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 xp7wmmU3T9yR for <rfc-markdown@ietfa.amsl.com>; Mon, 16 Aug 2021 14:59:37 -0700 (PDT)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A24AC3A1A59 for <rfc-markdown@ietf.org>; Mon, 16 Aug 2021 14:59:37 -0700 (PDT)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7F1C05C01C0; Mon, 16 Aug 2021 17:59:36 -0400 (EDT)
Received: from imap41 ([10.202.2.91]) by compute5.internal (MEProxy); Mon, 16 Aug 2021 17:59:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:in-reply-to:references:date:from:to :cc:subject:content-type:content-transfer-encoding; s=fm3; bh=C5 m7/Q9pfNbvpBDWdgR0NLrA8pNOdIzcBBPekklX12M=; b=WnMaWwnoJ1EGj9JDjR iePTgu5ecjL7+c1bYHBHnY2XTofOTs0RjB+KvqCj5u6ZcGfB/ajYoH0CrvRqQMZH aSuKjoMlLMrF30AF8M27bMKsBsfMaDoIgRbsunSwQkTgeIU07sTrKfV9qt1RAAxH 8OMOq5Rvw1nFjZzxqI5vRl8kVjomZgDw/8vtDsx0QYnr29MeWdjVBRNXAxc+i+7u 1iz/IoveqHH3EMcMkBxynifbsXOIqXZnDd3TjFHjxPB2DcAa0ycJbh0lCJhGA+I1 mxJUmuyWJY2/bcIn3uXb0i7sdSczmCq1vRtmgn2Iml+ynWVl9LsUG9YgHXi6c8Yv zSbA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=C5m7/Q9pfNbvpBDWdgR0NLrA8pNOdIzcBBPekklX1 2M=; b=DRuqt+wmEsR3Q+FUnBjWKdroP3UepTQRbbJ3A7tyqTjz/JNzsHeh6s//X aVNPk+aLcVWdySEIm5v9v1rte+lUu8YBJfa+KVfo5sdbO9fEGtrGnm6AyRfc55fP 31FUNUAX+Slpe3zhxzfvoZVejEwuzFQ45oFCBI3ihGq+DISr2Mu/OfSWG+3mdk+e VkOoPs+mKw3U5o5BxdGkh+Ifw8niG1lwQfao5UfTObhouv6FFMWIILsuquhd8klM wOUzX0Bk2cotR5IhPUEUvGu4TMLA2rA+hJJG/jfzwwIHF4R2K5RUuNtHbbfuWdiX 6qW7DtE4VOtcr0MUsdAP1A/hFgnuQ==
X-ME-Sender: <xms:xt8aYa2WD2ipd7MJ_R4XdKI7v93YbDz-ZXF1UaQ6BPw8vmPJk0twTA> <xme:xt8aYdGxdIWns3MJx6z-WVCGqFn_75IN0nme6x0K3a1954eABXors2KOELQPzQLlM pJfiIxMjUkoCcbNxuA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrledvgddtfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdforghr thhinhcuvfhhohhmshhonhdfuceomhhtsehlohifvghnthhrohhphidrnhgvtheqnecugg ftrfgrthhtvghrnhepgfejueduieffledtgeelheejvdettdejudduhefggeefgfekgfeu ieetgefftddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepmhhtsehlohifvghnthhrohhphidrnhgvth
X-ME-Proxy: <xmx:xt8aYS7UfcyvoRjnmYUS33Ail6Vrw95ywMsIXSpB47kUJE-Q8zAthQ> <xmx:xt8aYb0XgOHkjkJsi6oRjP-ttzSLy_GgKvGxbuQSpe6EcnEvf0sdrA> <xmx:xt8aYdGtXR1b_SOwNhfxfnOBazM_E7Ke-EIF1JfjYa5qERjwM7J8iA> <xmx:yN8aYQMJ9Oeeb762UAWEF7LFwq7YIMhjvyKU-DkiPdxv1BiyHAtj3w>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id DD69C3C0453; Mon, 16 Aug 2021 17:59:34 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.5.0-alpha0-1118-g75eff666e5-fm-20210816.002-g75eff666
Mime-Version: 1.0
Message-Id: <997639af-2c94-4189-86ef-9594b3581aa7@www.fastmail.com>
In-Reply-To: <3ADB9914-FA52-44CF-9F11-70AD99F88F59@tzi.org>
References: <04BFB6A7-7601-409D-8101-237242F6F38A@tzi.org> <a001c6eb-330c-4029-a7ce-2809a9b5352a@www.fastmail.com> <3ADB9914-FA52-44CF-9F11-70AD99F88F59@tzi.org>
Date: Tue, 17 Aug 2021 07:59:15 +1000
From: Martin Thomson <mt@lowentropy.net>
To: Carsten Bormann <cabo@tzi.org>
Cc: rfc-interest@rfc-editor.org, rfc-markdown@ietf.org
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-markdown/Dn3KYG4Cm7EVHjlUn-Wkhh2J6_E>
Subject: Re: [Rfc-markdown] [rfc-i] The <tt> train wreck
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "rfc-markdown is a discussion list for people writing I-Ds and RFCs in Markdown and the authors of the tools used for that." <rfc-markdown.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rfc-markdown/>
List-Post: <mailto:rfc-markdown@ietf.org>
List-Help: <mailto:rfc-markdown-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rfc-markdown>, <mailto:rfc-markdown-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Aug 2021 21:59:44 -0000

On Mon, Aug 16, 2021, at 19:09, Carsten Bormann wrote:
> I find a zero-width space (U+200B) on 0x0100-​0x01ff 

Ah, I forgot which it was, you are right.

> So you would prefer 0x0100-<preferentially-break-here/>0x01ff or some such?

Neither.  The table layout should handle hyphens as it would in regular flow, with an override needed to suppress that behaviour.  It appears as though hyphen/punctuation breaks are not considered when doing an initial pass on column width calculations.  That said, I appreciate just how challenging it is to do this sort of thing and don't see a fix as high priority, so I can tolerate the hack.

> (Do you mean the Phrase “BCP 14”, which should have an nbsp in it, or 
> do you mean <bcp14>MUST NOT</bcp14>?)

I meant the phrase "BCP 14".  In LaTeX source we would have "BCP~14".  I am ambivalent on whether to discourage breaking within bcp14 elements.  They seem OK with their current implementation.

> The boilerplate says “BCP 78” without no-break as well.

Yep.

> Note that RFC 9087 has six occurrences of “AS path”, only one of which 
> is nbsp-protected (but the example pathes after three of them are).

> Note that there are several aspects of horizontal no-breaking:
> 
> — turn blank space into no-break spaces etc.
> — don’t allow breaking after characters such as / @ & | - + # % :
> (— hyphenation no-breaking, which we don’t need as we don’t do 
> hyphenation - or should we?)

I would settle for a control that discouraged breaking at the usual places (spaces and punctuation).  I would use that for URLs, RFC numbers (like "RFC 9000", for which breaking should be avoided), and Section references ("Section 7.1" is often cause for &nbsp; if constructed manually).

As for the rest, I generally only want the font change.  It appears as though you usually want a default of font+decoration.  That suggests a global switch in authoring tools might be worthwhile.  The XML can do whatever it likes.