Re: [rfc-i] looking for a volunteer to write a simple script

Julian Reschke <julian.reschke@gmx.de> Fri, 12 July 2019 17:23 UTC

Return-Path: <rfc-interest-bounces@rfc-editor.org>
X-Original-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Delivered-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 767421203A3 for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Fri, 12 Jul 2019 10:23:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.503
X-Spam-Level:
X-Spam-Status: No, score=-4.503 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.247, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=gmx.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EKHOQXHWE_ni for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Fri, 12 Jul 2019 10:23:25 -0700 (PDT)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AF48C120370 for <rfc-interest-archive-eekabaiReiB1@ietf.org>; Fri, 12 Jul 2019 10:23:25 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id C90DCB812A1; Fri, 12 Jul 2019 10:23:19 -0700 (PDT)
X-Original-To: rfc-interest@rfc-editor.org
Delivered-To: rfc-interest@rfc-editor.org
Received: from localhost (localhost [127.0.0.1]) by rfc-editor.org (Postfix) with ESMTP id 39139B812A1; Fri, 12 Jul 2019 10:23:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at rfc-editor.org
Authentication-Results: rfcpa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=gmx.net
Received: from rfc-editor.org ([127.0.0.1]) by localhost (rfcpa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t21aoUO36biC; Fri, 12 Jul 2019 10:23:16 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by rfc-editor.org (Postfix) with ESMTPS id 2D739B8129C; Fri, 12 Jul 2019 10:23:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1562952198; bh=DpHvC/jup4fe73+ZC091p0GXDO8CNBY9k7hXGtnI6zs=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=GfHoDcHBkbdVVL3PI5m4NhzDnzF1/xpAzxHEzJAIn4FaIXTBwkCf9rOJcthi0m4h2 sEq5MRJkhWbJSMyYAf5MxtsEvXH34o8s0vL2Vmd3/Hurt4LY+2djRFFzLz7LyeCB3C 4wu0W+lZ5alNm5X+5uGd7sVyh0H5vlaa7sPeL5Bs=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.124] ([84.171.151.199]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M8qOm-1hc8RW219A-00CAmB; Fri, 12 Jul 2019 19:23:18 +0200
To: Heather Flanagan <rse@rfc-editor.org>, RFC Interest <rfc-interest@rfc-editor.org>
References: <62c8413d-c735-4ec3-8b22-eb0fa5356636@Spark> <38d0704f-348c-4ec0-9d94-340747960201@Spark>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <e86b8894-4d7a-4c9d-3476-0221a94c9eb0@gmx.de>
Date: Fri, 12 Jul 2019 19:23:08 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
MIME-Version: 1.0
In-Reply-To: <38d0704f-348c-4ec0-9d94-340747960201@Spark>
Content-Language: en-US
X-Provags-ID: V03:K1:d3HuHFgsIkNju230TAkLKudMtNxYzl5lTf6nNS69rhRIq4+yc8M G2AKkr3F8b9R4SWhNfIMsh4/+eJoua67PIJMKtZlg6Ff1vl5RL3ipP/1o6ny+j8DkyAeTkU HjPi0BPscKSIv9LFkVsJl10ZrkAUhw/69gD8nzPrn8WbHIhUlfC++6KORsDoUQP6oHnvzbP f/Rhj8uyqwJthpkM6JDXQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:uoltAkkGNeQ=:DlTxRPyKOPrLm2xJiNRUfM s5E5xnvUXJPV1qLwxVlk04y44ZW5WMU7KUr775kWOuhiBm8dH+WEShIVWGHJDH1PsqHyElVsh O9DTUSMfsw59DK6gMKb3EpRbBo8lSpL1jQQ22RRaaCk1PzCWnALABjs57YMUyJ5hR+quW4yq7 c6g1Ei/jZ1fvFqFhgdbGET/oxmt849oVN3B+0aDER1FXYtbGtGB6Hso4u/KWx+yY06C3Qha70 U5AonlV+UrljdTKJCzCjbiWVFzS8d/8fGlJiuKlf7SJislU5LtXCtxPvJuVtq56bR0wKoz79D LAVZ20Zg+QdZI3SQxc15PJAFUV1ZmsXNNf/aSblaQQ8m6yb5DXOyjL+IKXfQMy4s/geuic2c7 wu+NbMIZN3wOxGeZ9sngZlNQjUhUFaHPFh5Jr3Z+htRETLDuI2NfOg3bJkdLRkcC+FY4lie/h EsSBrVBo5sWqudGY0lFJXxk3w6x1w7eX1PBS+A+7+vlSWipxs/ze5i14LWgDerNknwe/oEa75 NjfRkgEbSWRzlsLgcdFfOgnXwnr4SKrKnmxIUkr4CV2/7vpOq+v2RUPnqhlGp1EfrivW6rN8q OaTv7CD0Uz9NiBVswwDU6s6wKOtVEH5Aj/Xa2rQOWDFle8aCN1tur1xQunS68eyOUG8IUVWBH Mly3i61cUDK5VmEsw1hvNjQ5ISZz4kTZqsfkC7izPZ6jxiX3ysAsiS1L65acJbL9Jb4YXHzOY QDWej4xe8W+Q975Mn91zh+O3RUpl6XRJZ7HF8oU+bk3t9vlApsOBrUP6QxEatapyku58zPN76 EpAWkuE+P6NlS/gaIw4qObs9LD57BediKF35U8jsCxw+mII8dmnLMxXivYU/ZwsokernjoyBi FqF70K3OTANWacqo/nFadDP68QMHE/fplp+Ht7F7z8Ljjoguh1ZEe12ZqtRLFSYqxBorOxKtl bL2Lkal7QOwflxye0tfxDph6O5NIpVWA/xRlx5/UdNX3CxJn2Uk7b48D2hS05JESHF4m5AhG6 TygOK8qVlhrCM8JpoMugDBJIqM4OpwFSENbpWFgzsyYFXoc8ujyxFFqboFkZIxdGsOomi36Of q3IrkLCTACFiVf8zTd1oMVvryVNTsFB4Bir
Subject: Re: [rfc-i] looking for a volunteer to write a simple script
X-BeenThere: rfc-interest@rfc-editor.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the RFC series and RFC Editor functions." <rfc-interest.rfc-editor.org>
List-Unsubscribe: <https://www.rfc-editor.org/mailman/options/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=unsubscribe>
List-Archive: <http://www.rfc-editor.org/pipermail/rfc-interest/>
List-Post: <mailto:rfc-interest@rfc-editor.org>
List-Help: <mailto:rfc-interest-request@rfc-editor.org?subject=help>
List-Subscribe: <https://www.rfc-editor.org/mailman/listinfo/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

On 12.07.2019 18:55, Heather Flanagan wrote:
> Hola a todos!
>
> The RFC Editor has the need for a comparatively simple script that would
> automatically add <bcp14></bcp14> tags to requirement language in v3 RFCs.
>
> Specifically, this would take a v3 XML input file, and create a v3 XML
> output file with <bcp14></bcp14> added around each instance of a 2119
> keyword in the file. (MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT,
> SHOULD, SHOULD NOT, RECOMMENDED, NOT RECOMMENDED, MAY, and OPTIONAL)
>
> Anyone up for helping us out with that?
>
> Thanks! Heather
> ...

The tricky part is to find the right instances. For instance, what if it
appears in a quote, or in artwork? Or if "SHALL NOT" is across a line
break...

So the output will require sanity checking.

I assume that the tool is supposed to preserve whitespace, line breaks
etc? This essentially rules out running the input through an XML parser...

Best regards, Julian
_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest