Re: [netmod] artwork folding: dual support modes?

Robert Wilton <rwilton@cisco.com> Mon, 04 March 2019 16:24 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1C96F12D829 for <netmod@ietfa.amsl.com>; Mon, 4 Mar 2019 08:24:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
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 6RoFRRF70Qea for <netmod@ietfa.amsl.com>; Mon, 4 Mar 2019 08:24:52 -0800 (PST)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6EEA4128B14 for <netmod@ietf.org>; Mon, 4 Mar 2019 08:24:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2311; q=dns/txt; s=iport; t=1551716691; x=1552926291; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=7QJ+L8XvOsOPlDrhxUeLGDH6RjKWU+DiZrBebNFHwbs=; b=jc6JglAplqdp0+W6lIBfVSIBs8XcMTHlgINmXOiK/beVbdzWmMZPTNOc 9k3BfLk2n650W8isgkY/5/auofzpdfvusMPYEWL28GsgKS6ozIXpgpXxy YhyNQkxK1SHybabd56x3dXSuMRRd29j6jEsDkYZWoNsmvXQOhdKskcX2c 8=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0A+AAAPUH1c/xbLJq1lGQEBAQEBAQEBAQEBAQcBAQEBAQGBZYJ4gQMnhAiIeYxTJZocDR+ETQKERzgSAQEDAQEDAQMCbRwMhUsBBSMPAQVBEAsOCgICJgICVwYBDAYCAQGDHgGBdakOgS+FRIRdBYELJIl1gUqBQD+BOAyCX4gLglcCpAQJh0OLKwYZiniIKopkhVuFPYcygV4hgVYzGggbFYMnH4pthT8/AzCRFQEB
X-IronPort-AV: E=Sophos;i="5.58,440,1544486400"; d="scan'208";a="10538318"
Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Mar 2019 16:24:48 +0000
Received: from [10.63.23.61] (dhcp-ensft1-uk-vla370-10-63-23-61.cisco.com [10.63.23.61]) by aer-core-3.cisco.com (8.15.2/8.15.2) with ESMTP id x24GOmco024122; Mon, 4 Mar 2019 16:24:48 GMT
To: Martin Bjorklund <mbj@tail-f.com>, kent+ietf@watsen.net
Cc: netmod@ietf.org
References: <85b4bfc8-1d55-8df2-98b2-85e685996309@cisco.com> <20190304.132926.1893685857666021666.mbj@tail-f.com> <0100016949647f53-8a4d372a-c576-4489-a1e5-b885c6510a1f-000000@email.amazonses.com> <20190304.170423.167423260282534149.mbj@tail-f.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <d87451cf-2665-17fb-400f-8c77423c568f@cisco.com>
Date: Mon, 04 Mar 2019 16:24:48 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.2
MIME-Version: 1.0
In-Reply-To: <20190304.170423.167423260282534149.mbj@tail-f.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Outbound-SMTP-Client: 10.63.23.61, dhcp-ensft1-uk-vla370-10-63-23-61.cisco.com
X-Outbound-Node: aer-core-3.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/VfFb9EyLwrVZ8ZdVBgcPCOsOB3o>
Subject: Re: [netmod] artwork folding: dual support modes?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Mar 2019 16:24:54 -0000

The nice thing with the two slash approach is that it always works.  It 
doesn't matter whether it is text or XML, you just strip what is between 
the two slashes.

The C '\' approach doesn't really work with indentation, and I'm not 
convinced that extracting code from text RFCs is dead just yet.

Martin's strip leading white space approach doesn't safely work with 
documents that may contain meaningful white space.  Will everyone also 
include the trailing space at the end of the line before the '\' when 
required?


I still think that the double slash approach is sufficient on its own.

If we must have two, then I would suggest the double slash approach, and 
also Martin's, but perhaps use '+' instead or '\'.

Thanks,
Rob



On 04/03/2019 16:04, Martin Bjorklund wrote:
> Kent Watsen <kent+ietf@watsen.net> wrote:
>>
>>> But note that figures in RFCs are normally indented with 3 spaces
>>> (they _can_ be outdented, if the lines are long enough).
>>
>> The days of scraping from plain-text RFCs are over [1].  Extracting,
>> if needed at all, should be from the XML, where there are no such
>> issues. Extracting from the plain-text output makes about as much
>> sense as extracting from the HTML or PDF outputs.
> I am confused.  Are you saying that the unfolding algorithm only is
> supposed to work on data extracted from the XML version of the I-D or
> RFC?  If so, I think this needs to be clarified in the draft.
>
>
>> Lossless extractions are critical for formal verifications (e.g.,
>> doctor reviews, shepherd reviews, AUTH48 reviews).  Both the
>> double-backslash approach we currently have, and the single-backslash
>> approach we had originally (where the continuation-line begins on
>> column 1, as it has been in programming languages for decades) provide
>> lossless extractions.
> ... as does the single-backslash with leading space removal.
>
>
> /martin
>
>
>
>> The double-backslash approach is ideal for when pretty-indents are
>> desired.  The single-backslash approach is ideal for when the
>> pretty-indents are not needed.  Both are completely valid and useful.
>> My contention is that we unnecessarily threw out one when reaching for
>> the other.
>>
>> [1] https://pypi.org/project/xiax
>>
>> Kent
> .
>