Re: [xml2rfc] sourcecode copy to clipboard

Robert Moskowitz <rgm@htt-consult.com> Mon, 03 July 2023 17:19 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 8CDACC151079 for <xml2rfc@ietfa.amsl.com>; Mon, 3 Jul 2023 10:19:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, 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 otYXZVdS4eYg for <xml2rfc@ietfa.amsl.com>; Mon, 3 Jul 2023 10:19:05 -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 DD8AFC14CF0C for <xml2rfc@ietf.org>; Mon, 3 Jul 2023 10:19:05 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by z9m9z.htt-consult.com (Postfix) with ESMTP id F236F625DA; Mon, 3 Jul 2023 13:18:42 -0400 (EDT)
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 Demy75m-8l1r; Mon, 3 Jul 2023 13:18:40 -0400 (EDT)
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 BB0766250B; Mon, 3 Jul 2023 13:18:38 -0400 (EDT)
Message-ID: <7af6cb9e-c49a-b638-f6b0-ab633afc35a7@htt-consult.com>
Date: Mon, 03 Jul 2023 13:18:55 -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/kCnzb-p6tHnLiBYKAhViUeetL-I>
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: Mon, 03 Jul 2023 17:19:06 -0000

I will have to try this on how I am labeling my sourcecode blocks.

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
>