Re: [Rfc-markdown] [xml2rfc] sourcecode copy to clipboard

Carsten Bormann <cabo@tzi.org> Thu, 13 July 2023 12:29 UTC

Return-Path: <cabo@tzi.org>
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 3BF72C151B18; Thu, 13 Jul 2023 05:29:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.888
X-Spam-Level:
X-Spam-Status: No, score=-1.888 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=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 p-fKCwXtSUng; Thu, 13 Jul 2023 05:29:38 -0700 (PDT)
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 9ECBBC137393; Thu, 13 Jul 2023 05:29:34 -0700 (PDT)
Received: from smtpclient.apple (p548dc15c.dip0.t-ipconnect.de [84.141.193.92]) (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 4R1v7H6dryzDCfB; Thu, 13 Jul 2023 14:29:31 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <05435a91-77b5-fc06-fb3f-e01dd0de305f@htt-consult.com>
Date: Thu, 13 Jul 2023 14:29:21 +0200
Cc: "xml2rfc@ietf.org" <xml2rfc@ietf.org>, rfc-markdown@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <03AE3D65-6807-44A6-B6C3-16F1C860B8A1@tzi.org>
References: <e91825a2-7191-2301-bd8f-532814763696@htt-consult.com> <005C6FD4-06B1-4978-A7F5-4DD2C6020B32@tzi.org> <05435a91-77b5-fc06-fb3f-e01dd0de305f@htt-consult.com>
To: Robert Moskowitz <rgm@htt-consult.com>
X-Mailer: Apple Mail (2.3731.600.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-markdown/p4bSGYLM1al12_ZFfnR70SSIvDs>
Subject: Re: [Rfc-markdown] [xml2rfc] sourcecode copy to clipboard
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: Thu, 13 Jul 2023 12:29:43 -0000

On 13. Jul 2023, at 14:23, Robert Moskowitz <rgm@htt-consult.com> wrote:
> 
> Where is this?  I tried:
> 
> pip3 install --user kramdown-rfc

gem install --user-install -n~/bin kramdown-rfc

(Assuming that ~/bin is in your path.)

Grüße, Carsten

> and
> 
> ERROR: Could not find a version that satisfies the requirement kramdown-rfc (from versions: none)
> ERROR: No matching distribution found for kramdown-rfc
> 
> I tried with dnf install (Fedora38) and not there.
> 
> Where is it hiding?
> 
> On 7/3/23 12:45, Carsten Bormann wrote:
>> On 2023-07-03, at 14:26, Robert Moskowitz <rgm@htt-consult.com> wrote:
>>> I see that the name attribute is not used by xml2rfc, but there for other processes that might like to use it.
>>> 
>>> What I am looking for right now is a way to copy the source code at least to the clipboard.
>> Can’t help with clipboard, but can extract sourcecode in a structured way: Try kramdown-rfc-extract-sourcecode.
>> 
>> Example:
>> 
>> $ kramdown-rfc-extract-sourcecode -tfiles draft-ietf-cbor-edn-literals.xml
>> 
>> Creates a directory `sourcecode` (you can give an alternative name), which contains sourcecode files sorted by type and, then, by name given (unnamed_001 etc. if no name given).
>> 
>> (Part of kramdown-rfc, obviously.)
>> 
>> Grüße, Carsten
>> 
>