Re: [Tools-discuss] [rfc-i] What do do about SVG

Nevil Brownlee <nevil.brownlee@gmail.com> Fri, 14 May 2021 04:24 UTC

Return-Path: <nevil.brownlee@gmail.com>
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 D5B1A3A2199 for <tools-discuss@ietfa.amsl.com>; Thu, 13 May 2021 21:24:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_BLOCKED=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 (2048-bit key) header.d=gmail.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 lc2zSEoo2zbW for <tools-discuss@ietfa.amsl.com>; Thu, 13 May 2021 21:24:27 -0700 (PDT)
Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) (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 A0C973A2197 for <tools-discuss@ietf.org>; Thu, 13 May 2021 21:24:27 -0700 (PDT)
Received: by mail-ua1-x933.google.com with SMTP id 20so1146014uaf.12 for <tools-discuss@ietf.org>; Thu, 13 May 2021 21:24:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qlmvyJL58OQHHOghAfiBhv5rrJwHbBlTBSz2EdQzEbI=; b=uQPzf9GOvWehahwrJ5L3o8rAVuZiDQlrGCUJVE0R9rR6g7oAWBK2dklt8gyHdG2Sop vENBteLVlcTkFNpWh3maDWh13dv9mQTBuR0hvM/TshhCCKWwnRvUzp57Tn4M2Y1wX8Vf 7VqGGUUKoGk60n5Amk94E2P0jdv/qQlhwwYki9a8X/oWYVa1L0bz3v9XKzEEVzxlhFI7 Rj8dxfj6eq/kli0FletAri68vD7NW3KscsCnCV3mtq3kNq6eYh2mhN1n+DLmhc1CV79q O+p1IGn4RCUuELkCCVRw96rdqiMZBKVDYvM0fd43GC8aTHsuU5Fh7b78dbH7qeg6bau/ 1y8g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qlmvyJL58OQHHOghAfiBhv5rrJwHbBlTBSz2EdQzEbI=; b=mHYSHDFo+iP2f161HJZp1KhxzOLuybz3d9jFsSRD+y1WYWfJOtfORQrS/OdIYwYtor rZT3zvM2AbZZmSRqiEzfEByW9BZOH9sbkS2Oj00eHL7BM9Ryycdfd4G8B+GY6u2udRkp junJEiTSQ2uFHtCfbAPa2F6mlpWq9btXyvIeuA1BRkHaLI02STsb+m86we7A8xrKyR0S h9J74FK0m5dqQYKKW+uDSF+DQ3eO8NNNmuwKUOBAAwM8A0MvvTyVOTtOWQYsSkbJTFNY +i8b6lh4bkWR0AU6Hdx+DociIJauzs4s84eXp7Ihup+QxDD4BMVsou8EjdBZL9MXEIab oLoQ==
X-Gm-Message-State: AOAM5327SgSpcsY84Ye2n5C1maWIFn1h8OCvTqGFvpXFynSPEChhvdYS KnJf9iCF9RRNOadu354LPCRMCcpoS9F513j0HuY=
X-Google-Smtp-Source: ABdhPJweDTG6Lk3cYd+MbxrUEw1NBH5r7eto60P1G4KUpt0QI91KSNBkq45jrsOjd7owIs70xVR6YJGntMu1KsjPZFI=
X-Received: by 2002:a9f:3852:: with SMTP id q18mr40989479uad.58.1620966265302; Thu, 13 May 2021 21:24:25 -0700 (PDT)
MIME-Version: 1.0
References: <f564019-d8b1-76c2-2768-c135d834dc32@iecc.com> <763b8195-6139-fb20-aa4e-2b4d89b5681c@gmail.com> <75d1b100-e761-e9bb-2ae0-02266c86b499@it.aoyama.ac.jp> <6BDFA0EA-D6F1-4443-B771-9B1A0AD56713@tzi.org> <c6dc75da-0b88-bc68-39fe-17887411b97f@gmail.com> <550c00a4-171d-bf12-b1f5-51dcc639359c@gmail.com> <8a637f4b4c7e41c99169fdfc3bdb0290@SYBPR01MB6859.ausprd01.prod.outlook.com>
In-Reply-To: <8a637f4b4c7e41c99169fdfc3bdb0290@SYBPR01MB6859.ausprd01.prod.outlook.com>
From: Nevil Brownlee <nevil.brownlee@gmail.com>
Date: Fri, 14 May 2021 16:23:58 +1200
Message-ID: <CACOFP=hC0poW6ZKCAsh=r5A5orB3OGxDsQLadEb=zXnun4n9VA@mail.gmail.com>
To: "HANSEN, TONY L" <tony@att.com>
Cc: Brian E Carpenter <brian.e.carpenter@gmail.com>, Carsten Bormann <cabo@tzi.org>, Tools Team Discussion <tools-discuss@ietf.org>, RFC Interest <rfc-interest@rfc-editor.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tools-discuss/yR78l9xZ4doOWDHUgkpJO56HyuI>
Subject: Re: [Tools-discuss] [rfc-i] What do do about SVG
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: Fri, 14 May 2021 04:24:33 -0000

Hi Brian and Tony:

I'm the guy who wrote the original version of svgcheck.py.
Jim Schaad did the production engineering on it, and I worked with him
to make sure it was compliant with the RNC schema that appears in RFC
7996.

I recently downloaded svgcheck (from the RFC Editor site, I think),
that's version 0.6.0;  I could work through that to fix the problems
Brian reported.  However, it will need someone on the Tools team to
get the fixed version back into their repository.

Please let me know if you'd like me to make the changes to svgcheck
(it will take a week or two though).

Cheers, Nevil


On Fri, May 14, 2021 at 12:29 AM HANSEN, TONY L <tony@att.com> wrote:
>
> On 5/13/2021, 12:24 AM, "rfc-interest on behalf of Brian E Carpenter" <rfc-interest-bounces@rfc-editor.org on behalf of brian.e.carpenter@gmail.com> wrote:
>
> After some investigation, I've understood that this particular problem
> is because svgcheck doesn't allow <style> as a child of <svg>. Nor, after
> some experiments, as a child of <path>, even though the RelaxNG in
> RFC7996 appears to allow it. (Also, when <style> defines a color, and
> I patch svgcheck/word_properties.py to allow <style>, svgcheck doesn't
> seem to detect the color elements inside <style>.)
>
> In the course of this I found another instance of a particular
> bug in svgcheck (failure to increment errorCount).
>
> So we have the facts that
> (a) svgcheck is buggy;
> (b) it doesn't implement the RelaxNG in RFC7996;
> (c) sadly, we lost the maintainer of the code;
> (d) our subset of TinySVG is very hard to generate with most drawing tools;
> (e) experience shows that special SVG mangling programs are needed to prepare files for inclusion in RFCs;
> (f) we've been told that TinySVG is no longer alive at W3C;
> (g) browsers appear to be fully competent at interpreting full SVG.
>
> How can we make progress on resolving this?
>
> As an FYI, I see three maintainers listed for svgcheck at https://pypi.org/project/svgcheck/. Can we poke them to address some of these issues, in particular a&b? Or provide them pull requests for the code?
>
> d,e,f are somewhat intractable unless we throw it out entirely and move to full SVG. g is one argument for that.
>
> However, there were several reasons behind going with a subset, laid out in section 2 of RFC 7996 and section 3.2 of RFC 6949. Any movement to support a larger version of SVG needs to address these requirements first.
>
> Tony
>
> _______________________________________________
> rfc-interest mailing list
> rfc-interest@rfc-editor.org
> https://www.rfc-editor.org/mailman/listinfo/rfc-interest



-- 
-----------------------------------
Nevil Brownlee, Taupo, NZ