Re: [rfc-i] Update: The transition to xml2rfc v3 (today!) (fwd) Heather Flanagan: Update: The transition to xml2rfc v3 (today!)

Dave Rice <dave@dericed.com> Thu, 10 October 2019 15:01 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 888AA1200EC for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Thu, 10 Oct 2019 08:01:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.849
X-Spam-Level:
X-Spam-Status: No, score=-4.849 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, MIME_HTML_MOSTLY=0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 0d8x3F5N43gM for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Thu, 10 Oct 2019 08:01:43 -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 88A3012001A for <rfc-interest-archive-eekabaiReiB1@ietf.org>; Thu, 10 Oct 2019 08:01:43 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 197A5B80C65; Thu, 10 Oct 2019 08:01:30 -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 ADC03B8007A for <rfc-interest@rfc-editor.org>; Wed, 9 Oct 2019 10:47:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at rfc-editor.org
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 nHI9NfWDPpGy for <rfc-interest@rfc-editor.org>; Wed, 9 Oct 2019 10:47:25 -0700 (PDT)
Received: from server172-3.web-hosting.com (server172-3.web-hosting.com [68.65.122.111]) by rfc-editor.org (Postfix) with ESMTPS id BF6DFB8002A for <rfc-interest@rfc-editor.org>; Wed, 9 Oct 2019 10:47:25 -0700 (PDT)
Received: from [146.96.19.240] (port=21167 helo=[10.10.201.23]) by server172.web-hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from <dave@dericed.com>) id 1iIG3b-0046Oy-Hd; Wed, 09 Oct 2019 13:47:33 -0400
From: Dave Rice <dave@dericed.com>
Message-Id: <F546FA10-148E-4769-9FAD-EC22D155C4CB@dericed.com>
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\))
Date: Wed, 09 Oct 2019 13:47:18 -0400
In-Reply-To: <06122b6d-d5f9-30b9-2db4-a2427d299a1f@levkowetz.com>
To: Henrik Levkowetz <henrik@levkowetz.com>
References: <20285.1568652805@localhost> <705AA16B-68B1-4B5E-AE47-0714F6781C1A@dericed.com> <26105.1568818137@localhost> <E70CD0FF-0294-47E5-873F-5E184A248577@dericed.com> <1268.1568828850@localhost> <B4047303-E2B9-4B9D-B368-2ACC85A06D15@dericed.com> <15814.1569013442@localhost> <3a8f5865-9f5c-8c65-63be-bca31c5f1c86@levkowetz.com> <3650B5EF-A442-4291-928A-2FCB2144134C@dericed.com> <06122b6d-d5f9-30b9-2db4-a2427d299a1f@levkowetz.com>
X-Mailer: Apple Mail (2.3445.104.8)
X-OutGoing-Spam-Status: No, score=-2.6
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server172.web-hosting.com
X-AntiAbuse: Original Domain - rfc-editor.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - dericed.com
X-Get-Message-Sender-Via: server172.web-hosting.com: authenticated_id: dave@dericed.com
X-Authenticated-Sender: server172.web-hosting.com: dave@dericed.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
X-Mailman-Approved-At: Thu, 10 Oct 2019 08:01:28 -0700
Subject: Re: [rfc-i] Update: The transition to xml2rfc v3 (today!) (fwd) Heather Flanagan: Update: The transition to xml2rfc v3 (today!)
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>
Cc: rfc-interest <rfc-interest@rfc-editor.org>, tools-discuss@ietf.org
Content-Type: multipart/mixed; boundary="===============8511714431663280149=="
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

Hi Henrik,

> On Oct 9, 2019, at 1:38 PM, Henrik Levkowetz <henrik@levkowetz.com> wrote:
> 
> Hi David,
> 
> On 2019-10-09 17:32, Dave Rice wrote:
>> Thanks Henrik,
>> 
>>> On Sep 20, 2019, at 5:26 PM, Henrik Levkowetz <henrik@levkowetz.com> wrote:
>>> 
>>> Hi Michael, David,
>>> 
>>> On 2019-09-20 23:04, Michael Richardson wrote:
>>>> 
>>>> Dave Rice <dave@dericed.com> wrote:
>>>>> Another annoyance here is the the xml processor in the submission tool
>>>>> and the xml processor at
>>>>> https://xml2rfc.tools.ietf.org/experimental.html
>>>>> <https://xml2rfc.tools.ietf.org/experimental.html> perform differently,
>>>>> so there’s effectively no test environment to use before submitting.
>>>>> Dave
>>>> 
>>>> Dave, can you please try xml2rfc.ietf.org, which is a different installation,
>>>> supported by a different entity?
>>> 
>>> Michael:  Umm, no, that redirects to tools.ietf.org, too, and the processor
>>> behind that, and behind https://xml2rfc.tools.ietf.org/experimental.html,
>>> _and_ behind the submission tool are all the latest release of xml2rfc.
>>> 
>>> David: I'd be happy to look into any discrepancies you see, but I can only
>>> do so if you provide observations and input XML files for me to work
>>> with.  It won't happen if I don't know about it :-)
>> 
> 
>> When I use the tool at https://xml2rfc.tools.ietf.org or
>> https://xml2rfc.tools.ietf.org/experimental.html, the plain text
>> output appears ok, but when I use
>> https://datatracker.ietf.org/submit/
>> <https://datatracker.ietf.org/submit/ <https://datatracker.ietf.org/submit/>>, the contents of the
>> <sourcecode> elements (which are new in xml2rfc version 3) have their
>> line breaks stripped out and thus cause an error when the line length
>> limits are exceeded.
> 
> That sounds like a bug.
> 
>> For the moment, I’m proposing a find and replace to convert the newer
>> <sourcecode> elements back to <artwork> elements as in
>> https://github.com/FFmpeg/FFV1/pull/171/commits/a018f091534678f45cc157bfd154518ad6267c7e <https://github.com/FFmpeg/FFV1/pull/171/commits/a018f091534678f45cc157bfd154518ad6267c7e>
>> <https://github.com/FFmpeg/FFV1/pull/171/commits/a018f091534678f45cc157bfd154518ad6267c7e <https://github.com/FFmpeg/FFV1/pull/171/commits/a018f091534678f45cc157bfd154518ad6267c7e>>,
>> thus an xml2rfc version 2 processor or version 3 processor should
>> proceed accurate results though not as semantically clear in the
>> xml.
>> 
>>> FWIW, if you have a tools.ietf.org <http://tools.ietf.org/> login, you can use the xml2rfc
>>> issue
>>> tracker at https://trac.tools.ietf.org/tools/xml2rfc/trac/newticket <https://trac.tools.ietf.org/tools/xml2rfc/trac/newticket>, for
>>> xml2rfc issues, and https://trac.tools.ietf.org/tools/ietfdb/newticket <https://trac.tools.ietf.org/tools/ietfdb/newticket>
>>> for datatracker issues.
>> 
>> I don’t have a login, but I’ll see if I can make a tiny test file for this issue and file a concise ticket.
> 
> Please don't put time into this; I'm perfectly happy to work from the xml
> file you found problematic on submission.  Just let me know the name of the
> draft in question, so I can pull it.

The draft at https://datatracker.ietf.org/doc/draft-ietf-cellar-ffv1/ <https://datatracker.ietf.org/doc/draft-ietf-cellar-ffv1/>. The current version, 09, has several sections where the content of <sourcecode> elements exceed the line length in txt renderings, such as in https://www.ietf.org/id/draft-ietf-cellar-ffv1-09.txt <https://www.ietf.org/id/draft-ietf-cellar-ffv1-09.txt>.

For example, this in the xml:

> <section anchor="level-coding">
>               <name>Level Coding</name>
>               <t>Level coding is identical to the normal difference coding with the exception that the 0 value is removed as it cannot occur:</t>
>               <sourcecode type="c">    diff = get_vlc_symbol(context_state);
>     if (diff &gt;= 0) {
>         diff++;
>     }
> </sourcecode>
>               <t>Note, this is different from JPEG-LS, which doesn’t use prediction in run mode and uses a different encoding and context model for the last difference On a small set of test <tt>Samples</tt> the use of prediction slightly improved the compression rate.</t>
>             </section>


will become this in the output txt:
> 3.8.2.2.2.  Level Coding
> 
>    Level coding is identical to the normal difference coding with the
>    exception that the 0 value is removed as it cannot occur:
> 
>    diff = get_vlc_symbol(context_state); if (diff >= 0) { diff++; }
> 
>    Note, this is different from JPEG-LS, which doesn't use prediction in
>    run mode and uses a different encoding and context model for the last
> 
> 
> 
> Niedermayer, et al.       Expires March 9, 2020                [Page 21]
> 
> Internet-Draft                    FFV1                    September 2019
> 
> 
>    difference On a small set of test "Samples" the use of prediction
>    slightly improved the compression rate.

I’m adding underlines to these to show where the line returns are lost. In this case it doesn’t result in exceeding the line length but in most it does. I can workaround this issue by change the <sourcecode type=“c"> element to <artwork type=“ascii-art”>.

Dave Rice

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