Re: [netmod] New Version Notification for draft-kwatsen-netmod-artwork-folding-07.txt

Robert Wilton <rwilton@cisco.com> Fri, 21 September 2018 12:58 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 1C1DC130E79 for <netmod@ietfa.amsl.com>; Fri, 21 Sep 2018 05:58:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.509
X-Spam-Level:
X-Spam-Status: No, score=-14.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01, 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 K4m9_mQ1chcJ for <netmod@ietfa.amsl.com>; Fri, 21 Sep 2018 05:58:28 -0700 (PDT)
Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE554130E78 for <netmod@ietf.org>; Fri, 21 Sep 2018 05:58:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=15050; q=dns/txt; s=iport; t=1537534707; x=1538744307; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to; bh=l6yjzdrPvfX/YFYI3NEIuY9ZyhQFqInbGXuGABIXxrQ=; b=NoLuLSakyJADVCxO1WA4QNuZ6vfKrTF5TFxJuJR/Ackf0qHxwncO0p5c +SRknsBXTBNsFrxh/MXbAUH3R+qK2OWWehSdqAyc5NmKEuqbGe1X9WvBX 9EzNE+GptLNaWlCiU1W3DP4ZgkDuH3ay+KyC57qwcP9qnLI8RnovSfBJ0 E=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AlAACa6aRb/xbLJq0YATkJDgsBAQEBAQEBAQEBAQEHAQEBAQEBgVKBEIFcTSASKINziHSNLC2RE4U8gXoLGAEKhANGAoNnNRcBAwEBAgEBAm0cDIU4AQEBAQMBASFLCQIMBAkCFQECJwMCAicfEQYBDAYCAQEXgwYBggEPhVCBHZtNgS4fhFiFDQWLB4FBP4ESJ4FtfoMbAQECgTVggkuCVwKIRSeGR4QpiR4JkCMGF4h2hjKHe4Z8hgqBQwE2gVUzGggbFTuCbIJNiEmFBDs+MAGOWgEB
X-IronPort-AV: E=Sophos;i="5.54,285,1534809600"; d="scan'208,217";a="6648940"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Sep 2018 12:58:25 +0000
Received: from [10.61.202.95] ([10.61.202.95]) by aer-core-2.cisco.com (8.15.2/8.15.2) with ESMTP id w8LCwPo1014820; Fri, 21 Sep 2018 12:58:25 GMT
To: tom petch <ietfc@btconnect.com>, Bob Harold <rharolde@umich.edu>, "adrian@olddog.co.uk" <adrian@olddog.co.uk>
Cc: "netmod@ietf.org" <netmod@ietf.org>, "rwilton=40cisco.com@dmarc.ietf.org" <rwilton=40cisco.com@dmarc.ietf.org>
References: <153617788181.19783.8030234113753073864.idtracker@ietfa.amsl.com> <5404BB62-C21E-4A70-AABC-6FEF1FC5C44F@juniper.net> <072a01d44771$0da216b0$28e64410$@olddog.co.uk> <8e62fa6d-b4a9-a6e3-b13f-145d2e50d208@cisco.com> <5ED5E487-E172-482B-ADB2-CD52A1EBCA14@bogus.com> <becad6b4-16f6-1d42-cdee-5fcf487b7d6e@cisco.com> <C0044BB4-1C2A-47AD-BE27-5A1697112B44@tzi.org> <041e01d44f35$77937340$4001a8c0@gateway.2wire.net> <029001d44f36$8d3becd0$a7b3c670$@olddog.co.uk> <CA+nkc8AUZzUbC-oNxnYBabrRxY8TiVOZLjZ9D2YgkAAbWAk+Fw@mail.gmail.com> <055d01d451a0$e8c615a0$4001a8c0@gateway.2wire.net>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <d39861e5-2f1c-b56f-ff6c-a203b9bcb478@cisco.com>
Date: Fri, 21 Sep 2018 13:58:24 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <055d01d451a0$e8c615a0$4001a8c0@gateway.2wire.net>
Content-Type: multipart/alternative; boundary="------------B0583CD34B96DC68A54DEBB4"
Content-Language: en-US
X-Outbound-SMTP-Client: 10.61.202.95, [10.61.202.95]
X-Outbound-Node: aer-core-2.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/odMRTmygRNte8dMgpE0xPOnEwE0>
Subject: Re: [netmod] New Version Notification for draft-kwatsen-netmod-artwork-folding-07.txt
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: Fri, 21 Sep 2018 12:58:31 -0000

So, I'm slightly regretting bringing this up in the first place because 
I'm not convinced it is worth the discussion time.  Bob Harold's 
solution is fine with me, and one that I was also considering 
suggesting, so is the 'tabs are banned' solution currently in the draft.

I do strongly agree that using tabs to align genuine artwork (i.e. 
diagrams and the like) is not a wise idea.  However, the abstract from 
the draft is:

    This document introduces a simple and yet time-proven strategy for
    handling long lines in artwork in drafts using a backslash ('\')
    character where line-folding has occurred.  The strategy works on any
    text based artwork,*but is primarily intended for sample text and formatted examples and code*, rather than for graphical artwork.  The
    approach produces consistent results regardless of the content and
    uses a per-artwork header.  The strategy is both self-documenting and
    enables automated reconstitution of the original artwork.

So, this draft is intended is intended to cover text, formatted 
examples, and code; and I'm not completely convinced that these will 
never contains tabs, putting aside any discussion of what is best practice.

However, I'm happy to leave the final decision to the discretion of the 
authors, or other WG members.

Rob


On 21/09/2018 12:48, tom petch wrote:
> ----- Original Message -----
> From: "Bob Harold" <rharolde@umich.edu>
> Sent: Wednesday, September 19, 2018 8:12 PM
> On Tue, Sep 18, 2018 at 6:01 AM Adrian Farrel wrote:
>
>> Yeah :-Z
>>
>> So my inclination is to say "tabs in artwork are evil" and move on.
>> Some folk like to use them when constructing text, but my suggestion
> is
>> that they convert to spaces/LF before posting drafts.
>>
>> If anyone wants to write another document tabs in json then, erm,
> knock
>> yourselves out. But I would prefer to just exclude them from folding
> at
>> this time.
>>
>> Cheers,
>> Adrian
>>
>>> -----Original Message-----
>>> From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of tom petch
>>> Sent: 18 September 2018 10:54
>>>
>>> ----- Original Message -----
>>> From: "Carsten Bormann" <cabo@tzi.org>
>>> Sent: Friday, September 14, 2018 12:14 PM
>>>
>>>> On Sep 14, 2018, at 13:05, Robert Wilton
>>> <rwilton=40cisco.com@dmarc.ietf.org> wrote:
>>>>> If all input files that we might ever want to fold and include
> in an
>>> RFC are guaranteed to never contain tabs then I agree with the
> position
>>> that they can just be rejected.
>>>> Yep.
>>>>
>>>>> But if there is some future file format that we want to fold
> that
>>> might contain tabs, then I wonder whether it would not be more
> robust to
>>> look at whether they could be handled in some way.
>>>> VT characters (colloquially tabs) should not be significant in any
>>> file format designed in the last couple of decades (i.e., they
> should be
>>> replaceable by spaces).  If they (or any other characters not
>>> representable in RFCs) are, or preserving byte wise identity is
>>> important, follow the lead of RFC 6716 and base64-encode.
>>>
>>> This confuses me.  This I-D references RFC7991 which clearly defines
> tab
>>> as  9, which RFC20 labels H(orizontal) T(ab).  V(ertical) T(ab) is
> 11.
>>> I would not expect VT to appear in any recent document but when it
> does,
>>> then replacing it by spaces would be wrong, IMHO.  HT I do see, far
> too
>>> much of, because there is no metadata saying what the Horizontal Tab
>>> settings should be and while a  value of five is common, there are
> RFC
>>> where replacing tab characters with five spaces yields rubbish.
>>>
>>> Tom Petch
>>>
>>>> Grüße, Carsten
> The purpose of folding is to get all lines under a certain max width.
> Tabs
> were historically set every 8 characters, although terminals and editors
> have allowed users to change them.  Changes are typically to reduce them
> to
> 4 or 2.  I have not heard of anyone increasing them beyond 8.  So for
> purposes of max line length, 8 is the worst case.   Then for folding,
> count
> tabs as filling to the next multiple of 8, (or worst case, assume a full
> 8)
> and fold appropriately.  This should unfold properly.  (Do not attempt
> to
> replace tabs with spaces.)  It won't always be what the author intended,
> but it is the best that we can do.  Better and simpler than trying to
> enforce "no tabs allowed".
>
> <tp>
>
> Bob
>
> My experience of tabs is different, which is why I think that Adrian has
> it right when he says
> ....say "tabs in artwork are evil" and move on.
>
> All the text processors I can recall had a default of tab meaning 5
> spaces, never 2 or 4 or 8.  And the prime use of tabs has been to
> achieve vertical alignment in artwork, tables and such like, where the
> tab settings might be
> 10 23 49 68
> allowing a suitable amount of space for the different fields of the
> table.  (I see this usage going beyond text processing).
>
> So, banish tabs; require the submitter to turn them into whatever they
> mean by them first.
>
> Tom Petch
>
>
>
>
>
>
>
> --
> Bob Harold
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod