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

Robert Moskowitz <rgm@htt-consult.com> Fri, 14 July 2023 12:22 UTC

Return-Path: <rgm@htt-consult.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 2A8C6C151AF5; Fri, 14 Jul 2023 05:22:42 -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 ZyOINqPOUAG2; Fri, 14 Jul 2023 05:22:41 -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 7444DC151072; Fri, 14 Jul 2023 05:22:41 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by z9m9z.htt-consult.com (Postfix) with ESMTP id D37B062794; Sun, 3 Jan 2010 15:33:36 -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 W-0SB0rwY-VZ; Sun, 3 Jan 2010 15:33:30 -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 F0FCF62775; Sun, 3 Jan 2010 15:33:29 -0500 (EST)
Message-ID: <053f6e7e-8485-e84c-fcb9-831899fe6b0d@htt-consult.com>
Date: Fri, 14 Jul 2023 08:22:28 -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: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>, Carsten Bormann <cabo@tzi.org>
Cc: "xml2rfc@ietf.org" <xml2rfc@ietf.org>, rfc-markdown@ietf.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> <03AE3D65-6807-44A6-B6C3-16F1C860B8A1@tzi.org> <1d3cf9a3-3823-e982-27e0-c04b02e27c0b@it.aoyama.ac.jp>
From: Robert Moskowitz <rgm@htt-consult.com>
In-Reply-To: <1d3cf9a3-3823-e982-27e0-c04b02e27c0b@it.aoyama.ac.jp>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/rfc-markdown/oZZMDA0QNxgkGG6lvlp6KTto5Uk>
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: Fri, 14 Jul 2023 12:22:42 -0000

I "found out" that gem is part of Ruby, watching the install.  Seems 
like I have Ruby, but it is behind what Gem expected and I got a 
warning.  But the ver I have is what Fedora38 provides and seems to work 
well enough with Carsten's scripts.

So a new adventure!

My use of this script revealed a couple bugs which are now fixed and I 
am extracting my sourcecode blocks.

So if you need certs for your testing or even a small production 
environment, check out my updated draft.  :)

On 7/14/23 01:41, Martin J. Dürst wrote:
> For more background, kramdown-rfc is written in Ruby, not Python. So 
> you may have to install Ruby too if it's not yet installed on your 
> machine. If the `gem` command below works, then that means that Ruby 
> is also installed.
>
> Regards,   Martin.
>
> On 2023-07-13 21:29, Carsten Bormann wrote:
>> 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