Re: [xml2rfc] sourcecode copy to clipboard

Robert Moskowitz <rgm@htt-consult.com> Thu, 13 July 2023 12:23 UTC

Return-Path: <rgm@htt-consult.com>
X-Original-To: xml2rfc@ietfa.amsl.com
Delivered-To: xml2rfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1D34CC151B0B for <xml2rfc@ietfa.amsl.com>; Thu, 13 Jul 2023 05:23:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] 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 6BP69Y5dPXFG for <xml2rfc@ietfa.amsl.com>; Thu, 13 Jul 2023 05:23:09 -0700 (PDT)
Received: from z9m9z.htt-consult.com (z9m9z.htt-consult.com [23.123.122.147]) (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 86932C14CF1F for <xml2rfc@ietf.org>; Thu, 13 Jul 2023 05:23:09 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by z9m9z.htt-consult.com (Postfix) with ESMTP id 0AB1562794; Sat, 2 Jan 2010 15:34:06 -0500 (EST)
X-Virus-Scanned: amavisd-new at htt-consult.com
Received: from z9m9z.htt-consult.com ([127.0.0.1]) by localhost (z9m9z.htt-consult.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id OgFnwl3NWrie; Sat, 2 Jan 2010 15:34:03 -0500 (EST)
Received: from [192.168.160.29] (unknown [192.168.160.29]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by z9m9z.htt-consult.com (Postfix) with ESMTPSA id 8E2AF62780; Sat, 2 Jan 2010 15:34:03 -0500 (EST)
Message-ID: <05435a91-77b5-fc06-fb3f-e01dd0de305f@htt-consult.com>
Date: Thu, 13 Jul 2023 08:23:03 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>
Cc: "xml2rfc@ietf.org" <xml2rfc@ietf.org>
References: <e91825a2-7191-2301-bd8f-532814763696@htt-consult.com> <005C6FD4-06B1-4978-A7F5-4DD2C6020B32@tzi.org>
From: Robert Moskowitz <rgm@htt-consult.com>
In-Reply-To: <005C6FD4-06B1-4978-A7F5-4DD2C6020B32@tzi.org>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc/Jw27-HFJPZ5QFp5KaC3nyTQq9uc>
Subject: Re: [xml2rfc] sourcecode copy to clipboard
X-BeenThere: xml2rfc@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: XML2RFC discussion list <xml2rfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc/>
List-Post: <mailto:xml2rfc@ietf.org>
List-Help: <mailto:xml2rfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc>, <mailto:xml2rfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Jul 2023 12:23:10 -0000

Where is this?  I tried:

pip3 install --user kramdown-rfc

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
>