Re: [Rfc-markdown] SVG diagrams for slides

John Levine <johnl@taugh.com> Sun, 24 July 2022 02:18 UTC

Return-Path: <johnl@iecc.com>
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 EF863C157B35 for <rfc-markdown@ietfa.amsl.com>; Sat, 23 Jul 2022 19:18:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.162
X-Spam-Level:
X-Spam-Status: No, score=-4.162 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, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=iecc.com header.b=MEtbRbX6; dkim=pass (2048-bit key) header.d=taugh.com header.b=JWAJ8gSi
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 kMHGOi9vllhA for <rfc-markdown@ietfa.amsl.com>; Sat, 23 Jul 2022 19:18:04 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (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 19DADC157B54 for <rfc-markdown@ietf.org>; Sat, 23 Jul 2022 19:18:03 -0700 (PDT)
Received: (qmail 76390 invoked from network); 24 Jul 2022 02:18:01 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=12a60.62dcabd9.k2207; bh=P2www9v8aAaLabPR00+TiGXbB9L+M9u/iXqUYBw5gwA=; b=MEtbRbX61p3bez5E2WUfQu9jq4BRO1FWbls3bGoMh4vh98PSegsAOwI4EEEddVmBvJOdmhAbEyo71ZFKeEVAEJxj4gjQSXfq6bHcpyquxWRio9O0eCc06O8YgV4On6h7v7EEU5EVvJM3qaZG9oXIxiiyLKEoxmQwqbJG2rvh51JwUQvm4yOvXr6qW18es/x/rTehr33OjLDbvFGNTjKv67MNJdpUgYE8t0hQPV+dk224LulOi081RIxLb5wxnSM+SkLMApnvfyTeHdFhooJnpU+/XZx8Abi8I9fz3XiwyLAnYiz5rCNL4Ew+dM13/wPyOQZUZBAlqxM4UQdzZ+Zu2w==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:cleverness; s=12a60.62dcabd9.k2207; bh=P2www9v8aAaLabPR00+TiGXbB9L+M9u/iXqUYBw5gwA=; b=JWAJ8gSiLXI16svJfzKyG6ZekaFdypMHWcJNjvpN3Zb9Fn+qbemtyitV+MaiDbiY99Jde9Tj4FkK+HQg/x6By/hHvQnan2abDuKpeSpLbgsk/41Od+waCoBqAJQTckOkaxXg1sRSRT3UJ4z5qPOGDsuySY9gIMTz5tJZ9RTFE4YPHfY4P3d21T4IoN/9w5qbt9LxdlMRYsZUAFunjJUqK/112m7e3JDU92XmiWKN8ldG9mOgERd8CdbmRUpgk15y3yOWEW+7WYiX3cR7dr1bCjlZy5cLwzL91/s9lgSoH1cxJ2w8Rx1N2pnW9dTsABAQq8pUvN4Yv5QSYnHGsUMEuw==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.3 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 24 Jul 2022 02:18:01 -0000
Received: by ary.qy (Postfix, from userid 501) id 3F4F5467342D; Sat, 23 Jul 2022 22:17:59 -0400 (EDT)
Date: Sat, 23 Jul 2022 22:17:59 -0400
Message-Id: <20220724021801.3F4F5467342D@ary.qy>
From: John Levine <johnl@taugh.com>
To: rfc-markdown@ietf.org
Cc: cabo@tzi.org
In-Reply-To: <2E0491A4-C4C2-456D-B566-17BC440ADE00@tzi.org>
Organization: Taughannock Networks
X-Headerized: yes
Cleverness: minimal
Mime-Version: 1.0
Content-type: text/plain; charset="utf-8"
Content-transfer-encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-markdown/dKd4MleKpYI53r7-jg4gEP7Ugcs>
Subject: Re: [Rfc-markdown] SVG diagrams for slides
X-BeenThere: rfc-markdown@ietf.org
X-Mailman-Version: 2.1.39
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: Sun, 24 Jul 2022 02:18:09 -0000

It appears that Carsten Bormann  <cabo@tzi.org> said:
>> Is there an obvious way to get .SVG file out of kdrfc for each diagram that
>> was up-converted from markdown?  Because SVG into a ODP/PDF/PPT makes more
>> sense than raster.
>
>What do you want to do?
>
>> I can attempt to extract it out of the XML, but I feel that there should be a
>> better way.
>
>I’m pretty sure that running a small XPath snippet is the easiest way to do this.

For those of us who don't have ruby installed, this sed one-liner will do it:

 $ sed -ne '/<artwork.*svg/,/<\/svg/p' draft-foo-bar.xml

R's,
John