Re: [Tools-discuss] [Cellar] expressing both svg graphics and ascii-art fallback within an rfc2xml version 3 file?

Julian Reschke <julian.reschke@gmx.de> Sun, 01 September 2019 16:38 UTC

Return-Path: <julian.reschke@gmx.de>
X-Original-To: tools-discuss@ietfa.amsl.com
Delivered-To: tools-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 87EF5120077; Sun, 1 Sep 2019 09:38:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) 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 fX53hTHMlD1P; Sun, 1 Sep 2019 09:38:53 -0700 (PDT)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C148C120025; Sun, 1 Sep 2019 09:38:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1567355879; bh=pKV63Zna5NWebNYd4mQgVG6Q2oQSzR5h3S5Ai+1Ckbs=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=SbZ9xL+VcHUy9KAuSEmd4gmgBYZTUXj4dOa9HtoKZi/hKkE5sgniZgVPzrnQUxC8w lXcy5IrZh1/8OF2YzaOyVvTCLBuV1NrKoVEK7nu6/q61nfv+P6XUmuoIuGWdr9hbKc z89gCgiLImaSiTJ7qZS7uDKL3vtVfZ5SkRElVI1M=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [192.168.178.124] ([217.251.132.77]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MuUj2-1iLIvN1R9m-00rYCN; Sun, 01 Sep 2019 18:37:59 +0200
To: Michael Richardson <mcr+ietf@sandelman.ca>, Dave Rice <dave@dericed.com>, tools-discuss@ietf.org
Cc: Codec Encoding for LossLess Archiving and Realtime transmission <cellar@ietf.org>
References: <3AAAEED4-87A9-4F5B-9910-55BABBDBBB15@dericed.com> <16851.1567355345@dooku.sandelman.ca>
From: Julian Reschke <julian.reschke@gmx.de>
Message-ID: <edd3b1b5-7f6a-bd8b-54d0-f247fc5eb573@gmx.de>
Date: Sun, 01 Sep 2019 18:37:57 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
MIME-Version: 1.0
In-Reply-To: <16851.1567355345@dooku.sandelman.ca>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
X-Provags-ID: V03:K1:BlwlTOJcKlW4wXrXt+vAUqsDUm+RuCndjBW6O/yQkwsL0j1bgM8 sfuV1CUTu6lihZzQJZ8sWa1Wk7D7lLTdU1zHCOejTnLCd2tDK1+KjRB66DlypvaEWdLoZ1d XAcwm6sjSBXU7kOVue0fUDSeCR7O9JOUcf+VMzIfnd7Y2+S31smsC6si/5ZO11wttSstSKq 0o5RxrfdF8OR6mrvGOUwQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:2HeDP/Q5Ccs=:xBsRtDi6kB8WsBz1SNRw8L fOwSYQSIfkorDSy49nrQtZ8szFDI0VDBH5AoVVNiKpvAf4BRCbXmpxZn8KFnK4V0RXk+5MLTa nalQ9tVMxAHGIubV+idhVF14CraFuIQs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q37jbrb7xVzNpM8h5/+sFXJxYxjfHqmWOrEYobhH9w==
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/qJh7k_8LvFojUuSXHbKlPlj9BQ4>
Subject: Re: [Tools-discuss] [Cellar] expressing both svg graphics and ascii-art fallback within an rfc2xml version 3 file?
X-BeenThere: tools-discuss@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IETF Tools Discussion <tools-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tools-discuss/>
List-Post: <mailto:tools-discuss@ietf.org>
List-Help: <mailto:tools-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tools-discuss>, <mailto:tools-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 01 Sep 2019 16:38:56 -0000

On 01.09.2019 18:29, Michael Richardson wrote:
>
> {reposting to tools-discuss}
>
> Hello cellar,
>
> The draft of FFV1 now uses xml2rfc version 3 as defined at
> https://tools.ietf.org/html/rfc7991
> <https://tools.ietf.org/html/rfc7991>. Presently in the markdown source of
> the FFV1 draft, the math is maintained in both LaTeX expressions (which are
> converted to SVG for inclusion in the RFC XML) as well as an Ascii Art
> representation (heavily reliant on functions defined within the draft). For
> example:
>
> vs
>
> r_{i} = floor( ( R_{i} * S_{i,C_{i}} ) / 2^8 )
>
> Whether in SVG or ascii art, this data is contained by the <artwork> node in
> rfc2xml version 3. In https://tools.ietf.org/html/rfc7991#section-2.5
> <https://tools.ietf.org/html/rfc7991#section-2.5> it states,
>
>     Alternatively, the "src" attribute allows referencing an external
>     graphics file, such as a vector drawing in SVG or a bitmap graphic
>     file, using a URI.  In this case, the textual content acts as a
>     fallback for output representations that do not support graphics;
>     thus, it ought to contain either (1) a "line art" variant of the
>     graphics or (2) prose that describes the included image in sufficient
>     detail.
>
> A bit later it says that SVG data may be encoded and stored within the
> <artwork>’s @src attribute such as
>
>     o  As a data: URI, such as: <artwork type="svg" src="data:image/
>        svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3…">
>
> So from this I was hoping we could work on one draft rfc2xml version 3 file
> that could use the SVG image data or use the ascii art as a fallback; however
> when I try to craft the <artwork> node with both such as:
>
>     <artwork type="svg" src="data:image/svg+xml,ENCODED_SVG_MATH_IMAGE_HERE”>FALLBACK_ASCII_ART_HERE</artwork>
>
> then the output “v3-plaintext” output of the conversion tool at
> https://xml2rfc.tools.ietf.org/experimental.html
> <https://xml2rfc.tools.ietf.org/experimental.html>, does not use the textual
> content of the <artwork> node as a fallback but instead places a warning such
> as
>
>     (Artwork only available as svg: No external link available, see
>     draft-ietf-cellar-ffv1-08.html for artwork.)
>
> Is it feasible (recommended?) to have one rfc2xml XML document that could be
> a source for both plaintext formats (using an ascii art fallback) and
> non-plaintext formats such as HTML and PDF which would use the embedded SVG
> data?
>
> Kind Regards,
> Dave Rice

<https://tools.ietf.org/html/draft-levkowetz-xml2rfc-v3-implementation-notes-09#section-3.1.1>
might be what you're looking for.

Disclaimer: I proposed a much simpler solution, but that's where we are
right now.

Best regards, Julian