Re: [rfc-i] getting SVG of RFC diagrams

Carsten Bormann <cabo@tzi.org> Thu, 23 November 2023 16:48 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: rfc-interest@ietfa.amsl.com
Delivered-To: rfc-interest@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7403BC14F5E0 for <rfc-interest@ietfa.amsl.com>; Thu, 23 Nov 2023 08:48:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IpM2q4QmMc3q for <rfc-interest@ietfa.amsl.com>; Thu, 23 Nov 2023 08:47:57 -0800 (PST)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [IPv6:2001:638:708:32::21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BEAD0C14CEFF for <rfc-interest@rfc-editor.org>; Thu, 23 Nov 2023 08:47:56 -0800 (PST)
Received: from [192.168.217.145] (p548dcbf2.dip0.t-ipconnect.de [84.141.203.242]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4SbkZ237sszDCbw; Thu, 23 Nov 2023 17:47:54 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <c9084344-2b12-48c4-aa90-91ee77179545@alum.mit.edu>
Date: Thu, 23 Nov 2023 17:47:54 +0100
Cc: RFC Interest <rfc-interest@rfc-editor.org>
X-Mao-Original-Outgoing-Id: 722450873.653818-97cb90d71ee5264eafb4d581d5de9da5
Content-Transfer-Encoding: quoted-printable
Message-Id: <B80605E8-434E-4E39-95B3-65633C6033FD@tzi.org>
References: <310371.1700735021@dyas> <5e7a517c-0615-47e4-9dd2-24dbad1044a5@alum.mit.edu> <632b5155-212a-4de7-8a4e-0a7bd109a11f@petit-huguenin.org> <c9084344-2b12-48c4-aa90-91ee77179545@alum.mit.edu>
To: Paul Kyzivat <pkyzivat@alum.mit.edu>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-interest/3qMOCRo7zq0GQSe3NlK5QpufRkQ>
Subject: Re: [rfc-i] getting SVG of RFC diagrams
X-BeenThere: rfc-interest@rfc-editor.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "A list for discussion of the RFC series and RFC Editor functions." <rfc-interest.rfc-editor.org>
List-Unsubscribe: <https://mailman.rfc-editor.org/mailman/options/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rfc-interest/>
List-Post: <mailto:rfc-interest@rfc-editor.org>
List-Help: <mailto:rfc-interest-request@rfc-editor.org?subject=help>
List-Subscribe: <https://mailman.rfc-editor.org/mailman/listinfo/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Nov 2023 16:48:00 -0000

On 2023-11-23, at 17:39, Paul Kyzivat <pkyzivat@alum.mit.edu> wrote:
> 
> On 11/23/23 10:01 AM, Marc Petit-Huguenin wrote:
> 
>> XPointer can be used as a URI fragment[1].  Firefox does not implement it[2] but I found an obsolete extension that did[3], so maybe such extension is still possible.
> 
> I would like there to be a sufficient naming convention so that someone that wants a piece of the rfc can construct the URL based on what is visible in the rendering of the RFC.

I don’t think this is attainable in general.

> That may be easy for figures that are labeled, but might be a problem for some source code such as ABNF that often is interleaved with text, without any label.

Indeed, artwork (including SVG) often is not embedded in a figure, so it doesn’t have a natural “Figure 4711” label.

(It also turns the numbered labels are rather brittle during development, so giving the artwork a name= attribute for external referencing generally is good practice.  Slugified names can stand in for that, but also are more brittle than given names.)

Grüße, Carsten