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

Paul Kyzivat <pkyzivat@alum.mit.edu> Fri, 24 November 2023 16:47 UTC

Return-Path: <pkyzivat@alum.mit.edu>
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 E77CBC151993 for <rfc-interest@ietfa.amsl.com>; Fri, 24 Nov 2023 08:47:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.008
X-Spam-Level:
X-Spam-Status: No, score=-7.008 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_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=alum.mit.edu
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 uwxa1JTJK7GU for <rfc-interest@ietfa.amsl.com>; Fri, 24 Nov 2023 08:47:17 -0800 (PST)
Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on20619.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8c::619]) (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 48473C151992 for <rfc-interest@rfc-editor.org>; Fri, 24 Nov 2023 08:47:17 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ca1DwUjR7iTO5y5p88jj9kIPQg3TSstDj07a2CNFU5XHLfE1s2rAV9bVBJiiOfUdeRMHNBvxl/gIdn9mr68zrkMyUz6Bpo0cJ1yXpL8DbBHm6IJmpFMHSSRPNH6zLP9KTpYec+C2g98eDjAqkKzcfea/aM/IjIjXty2YXzkvN+KVFEDasHlX3vcKSHvAn98dZ6lefsvfUki3IoYP0JCVzsc9EAOyeFgfv0hGAW1NuKwVo2tDtdUUKrTqZbFYHkMqh2bJekwTi7z10NRbGnxjZNOO5R+wOIFDKIgU6A0Ol2SiZu2v58NvDYN9Ohf9cqJ4RWffxNlIIzPSGAJqqEjwqg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9ZObu4uQxDO8MDtXhD1y5Zup45LJS9WB4JVDuKXjHM0=; b=RkZoqEx5ECXaNuxHUndbZeBkbGO09fajKj3Nunjw08KpiGDSzGcOqmqM2VyWh5wPFW2vSL4I2BcwxkHgkN7vzM5OoJAI5kJg9y9HoX9m8UG+VoQdKtabdIJxqV1ZGwe6m81kfrRszzXHZ1BSdk6hYyO+GfyW+P7jlznmC2Mm6msctpnehtfIkGrx7rxa0ilJ67hg2LxXGEr4A2yXcBC+oMF1jAuEJUH7y5DwXFbTiTkJLeppvySdfndG1mXxuIFrOzqm3Mv7NhD1NUBMFgnhwHR5D+XhE9JlcSuWU+wRUeDdGE1R33NaIT5a8D6di/i0lasIOqtOVAv7Lb+P1S56Pg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 18.7.68.33) smtp.rcpttodomain=rfc-editor.org smtp.mailfrom=alum.mit.edu; dmarc=pass (p=none sp=none pct=100) action=none header.from=alum.mit.edu; dkim=none (message not signed); arc=none (0)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alum.mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9ZObu4uQxDO8MDtXhD1y5Zup45LJS9WB4JVDuKXjHM0=; b=WAQfsr8FZBaLkJ3I+s+hmjN+jBaxKdB97uWwVoIcXNk/BcL/mIvxECsOWDpqThygpwsTVR1YMsEVYJVJce5l9sHKyyQAXjTR/HOpjNgLitVv9pasr2hXzj8g0cWX/KBRHgJIkvLMfLJDRc8C+d3hsDlXUrh/FXYVi5e4vDoTHsg=
Received: from MW4PR04CA0264.namprd04.prod.outlook.com (2603:10b6:303:88::29) by IA0PR12MB8375.namprd12.prod.outlook.com (2603:10b6:208:3dd::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.21; Fri, 24 Nov 2023 16:47:14 +0000
Received: from MWH0EPF000971E4.namprd02.prod.outlook.com (2603:10b6:303:88:cafe::47) by MW4PR04CA0264.outlook.office365.com (2603:10b6:303:88::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.21 via Frontend Transport; Fri, 24 Nov 2023 16:47:14 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 18.7.68.33) smtp.mailfrom=alum.mit.edu; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=alum.mit.edu;
Received-SPF: Pass (protection.outlook.com: domain of alum.mit.edu designates 18.7.68.33 as permitted sender) receiver=protection.outlook.com; client-ip=18.7.68.33; helo=outgoing-alum.mit.edu; pr=C
Received: from outgoing-alum.mit.edu (18.7.68.33) by MWH0EPF000971E4.mail.protection.outlook.com (10.167.243.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.12 via Frontend Transport; Fri, 24 Nov 2023 16:47:13 +0000
Received: from [192.168.1.52] (c-73-143-251-114.hsd1.ma.comcast.net [73.143.251.114]) (authenticated bits=0) (User authenticated as pkyzivat@ALUM.MIT.EDU) by outgoing-alum.mit.edu (8.14.7/8.12.4) with ESMTP id 3AOGlB3C030572 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for <rfc-interest@rfc-editor.org>; Fri, 24 Nov 2023 11:47:12 -0500
Message-ID: <8373b6b5-4a0a-4abb-8880-d618154b2f81@alum.mit.edu>
Date: Fri, 24 Nov 2023 11:47:11 -0500
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: rfc-interest@rfc-editor.org
References: <310371.1700735021@dyas> <7C81D316-7D04-4941-BEE5-6AE8C96F0DE1@tzi.org> <D1F8F86E-80D7-4FC7-B7B5-32648ACB5D65@tzi.org> <MN2PR11MB3757AF8CCDF388BA5CECFE1AB9B8A@MN2PR11MB3757.namprd11.prod.outlook.com> <153bde12-5773-42ce-bfdf-392e4492c06b@gmx.de> <9D66A3A2-5516-4924-8B1E-420871D862C5@tzi.org>
From: Paul Kyzivat <pkyzivat@alum.mit.edu>
In-Reply-To: <9D66A3A2-5516-4924-8B1E-420871D862C5@tzi.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: MWH0EPF000971E4:EE_|IA0PR12MB8375:EE_
X-MS-Office365-Filtering-Correlation-Id: 377a1c4a-b2b8-4ae2-141f-08dbed0d02c3
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: gS4x23x/Tpun5obj4pLSlZiIVGkyPOjJhxiFoDKah58W2QbI03jlrM4JaUmchFMOWwvJAgh7psH0ndBc93c65URfFv5t7ka7YAaxRAXftROFVwradjG6VKQqNUr6PhgfwFmXNTGiRmUxHzZiaTtV1ZyJneWY5UD2R/K9dLWt1sLNmFt35+Mf0rSdSZ6UiQqZGzf0Rsi/Y2tfFtTwvCKRbhBKokzQccvaI7vF42vmH85qg9aHe2TxC3WMs8aFpHq5Y+/vMQBVnLErqubHHshEHVtP2azaYo7nchXptGa1tWDPhpg2H1JgaAP/VrcRlcC9xPIexQI7mhrZNLi40f+Jl41KmgUbn+YmHGKY25l7EgmJKFUHQIvb0kGt0lWpiKaDrovdupCwnpQLpdb9ewK9gQ3Acux7uhyUshGS97PrnBx0ZXk02LKeIGgb+6LRaD5TCLTKXaQ4ZfxTpl9X+0YF+miOlwosoKVMqon5PWnO7jGyts196NR64Db7NqDtbxMwxVLzQT/MfMluhueE8K5s7+ty60pIxtmX2dfM2E36ZPZleB6PLfTSnhKmGykVCA2uDFpwvYK2vuyiDHK4ZD+LD4K49UUSmiHOUu2yq4q+yH3vPHAKmBoLqDNSj3X7K5FvTOerW+2e1O7vm4+Q2p2H9wqUUjEmCkPT1wtzYAENW8eA2yjOFPigjZEqe+7X/iJhDASapVdNm0wMIFvzlcOckesTQnCcMHZB9aKEtNCbBbU=
X-Forefront-Antispam-Report: CIP:18.7.68.33; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:outgoing-alum.mit.edu; PTR:outgoing-alum.mit.edu; CAT:NONE; SFS:(13230031)(346002)(396003)(376002)(136003)(39860400002)(230922051799003)(1800799012)(451199024)(186009)(64100799003)(82310400011)(36840700001)(46966006)(47076005)(356005)(7596003)(82740400003)(336012)(26005)(31696002)(41300700001)(956004)(40480700001)(2616005)(53546011)(31686004)(36860700001)(966005)(478600001)(6916009)(786003)(316002)(70586007)(70206006)(41320700001)(66899024)(2906002)(4001150100001)(8936002)(8676002)(75432002)(5660300002)(86362001)(43740500002); DIR:OUT; SFP:1101;
X-OriginatorOrg: alum.mit.edu
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Nov 2023 16:47:13.4753 (UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id: 377a1c4a-b2b8-4ae2-141f-08dbed0d02c3
X-MS-Exchange-CrossTenant-Id: 3326b102-c043-408b-a990-b89e477d582f
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3326b102-c043-408b-a990-b89e477d582f; Ip=[18.7.68.33]; Helo=[outgoing-alum.mit.edu]
X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E4.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8375
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-interest/nQWYmXuy7oEDDJb-ZzAtypJ9rgQ>
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: Fri, 24 Nov 2023 16:47:22 -0000

On 11/24/23 9:06 AM, Carsten Bormann wrote:
> On 2023-11-24, at 14:56, Julian Reschke <julian.reschke@gmx.de> wrote:
>>
>> include a text file automatically.
> 
> All authoring environments have support for that.
> (If not, it is trivial to add a Makefile.)
> 
> The more interesting aspect is painlessly retrieving the components (attachments, sourcecode, diagrams) out of the drafts and RFCs, and a URL naming convention would help with that.
> 
> I offer the naming convention provided by kramdown-rfc-extract-sourcecode.
> (Which has been extended for the next version by making use of slugified names instead of counting unnamed components.)
> 
> This could lead to:
> https://www.rfc-editor.org/rfc/rfc9334/svg/layered-attester.svg
> https://www.rfc-editor.org/rfc/rfc9334/ascii-art/layered-attester.ascii-art
> https://datatracker.ietf.org/doc/draft-ietf-cbor-edn-literal/abnf/cbor-edn.abnf

Yes! This is the sort of thing I'm wishing for.

There remains the issue of discovering what parts are available for a 
given document. It has been suggested that hovering over the part in the 
html rendering could show the name. Another possibility (not mutually 
exclusive) is to have the datatracker and the info page for the document:

https://www.rfc-editor.org/info/rfcNNNN

list the available components alongside the list of file formats. So, in 
addition to: html, txt, pdf, xml there could be: figures, abnf, ...
where clicking on "abnf" would show a list of named abnf sources; 
clicking on figures would give a list of figures. Clicking on a figure 
would give available representations, including svg, etc.

	Thanks,
	Paul