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

Brian E Carpenter <brian.e.carpenter@gmail.com> Fri, 14 May 2021 04:43 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 E08023A222A; Thu, 13 May 2021 21:43:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.201
X-Spam-Level:
X-Spam-Status: No, score=-2.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" 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 LHR6Hj-aUlUL; Thu, 13 May 2021 21:43:13 -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 DCD833A2224; Thu, 13 May 2021 21:43:13 -0700 (PDT)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id DA6FAF407D9; Thu, 13 May 2021 21:43:07 -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 643E9F407D9 for <rfc-interest@rfc-editor.org>; Thu, 13 May 2021 21:43:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at rfc-editor.org
Authentication-Results: rfcpa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 veBmrdn3PP7Z for <rfc-interest@rfc-editor.org>; Thu, 13 May 2021 21:43:01 -0700 (PDT)
Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by rfc-editor.org (Postfix) with ESMTPS id DA1C5F407D5 for <rfc-interest@rfc-editor.org>; Thu, 13 May 2021 21:43:01 -0700 (PDT)
Received: by mail-pl1-x632.google.com with SMTP id b21so15674457plz.0 for <rfc-interest@rfc-editor.org>; Thu, 13 May 2021 21:43:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vN3/uBVXGqWDljeOFEzD97BxXYwiL+vfIuIESzoiBxo=; b=r4uagabXQw9dY04Kxlx4GyRU0Ane+vfqHywxRK//W2KhfdNfI1xIBJVAkBjBB2ZP7O aUDMrJocs/D1e1bfaMroGTx/DDAPj1ogtJ+pmDpSmpXPkPFji4JMFcc5/dVxAq4tHS0Q knmYPpG3QL6yZcroNdaKYWy/Urtwb0ASUiajvwrEq+kUlSKolX+ez8vzmieAlQu2UYmf IJAcKPkqkF7/PYMPn2YS6pFENxoAYBEvZXOHcen5KHnCS6YHaYGzpCGyouW1IAXR21Sv ESzlfRvRt9tO+rAgNX4DXQFo0mmBlky0l5ORCHZcwWvH+d4gCiepiYBy2NI7JA77ymI5 bz8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vN3/uBVXGqWDljeOFEzD97BxXYwiL+vfIuIESzoiBxo=; b=WY6umXt/Hxa66ySx8ySWNrfyvQLvRURAMb/CtnYrEPN1DLL/W7zdMW48rxJ4fi/n3g ccyGMqWX4q1DIuxegaLj0rLvN40O/Dy9I5lkZLCiyE96m7lWlhFwl5lI3iO5I8i0ZyQZ huHFBCq47gU02vylOD6S9j8om6YD9eBiiOcY3qP3gwVeuEl8a7BvMqehDKNagNN2HYuK upeNNCuendhKoL5aiNPCB3VG7woy/I3k837Q4Jqx2NBxiQP5K/UuO7XyTk5b5ah6Az0E BoS3DqDZJUTxcBrfbFrLTBohRLhkXp7R5Lp751tlWVgWfLIRSVdO9yDJ2l9Wt7zDtDOz zPjw==
X-Gm-Message-State: AOAM5305jRZ1JjiVNw7HHUd+USBqw0dnvTSnRis3F60rBzRRDxeTAa7c tqN7378w/z+0IqLCQv+Q1v8624Ijq5C+gw==
X-Google-Smtp-Source: ABdhPJw+2cF2SyRrLalDV4Fe0ExdhSiNYnNG5eKdvH+aCJjBT2MR0ohLhrz3xfLcH0aDzdMJjob+zg==
X-Received: by 2002:a17:902:c24c:b029:ee:f427:9808 with SMTP id 12-20020a170902c24cb02900eef4279808mr44173267plg.58.1620967385357; Thu, 13 May 2021 21:43:05 -0700 (PDT)
Received: from ?IPv6:2406:e003:100d:901:80b2:5c79:2266:e431? ([2406:e003:100d:901:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id mt24sm2861910pjb.18.2021.05.13.21.43.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 13 May 2021 21:43:04 -0700 (PDT)
To: Nevil Brownlee <nevil.brownlee@gmail.com>, "HANSEN, TONY L" <tony@att.com>
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> <CACOFP=hC0poW6ZKCAsh=r5A5orB3OGxDsQLadEb=zXnun4n9VA@mail.gmail.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <95541255-19f0-69a6-1db6-83695e3bff35@gmail.com>
Date: Fri, 14 May 2021 16:43:00 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <CACOFP=hC0poW6ZKCAsh=r5A5orB3OGxDsQLadEb=zXnun4n9VA@mail.gmail.com>
Content-Language: en-US
Subject: Re: [rfc-i] [Tools-discuss] What do do about SVG
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 Team Discussion <tools-discuss@ietf.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

Hi Nevil,

I'll write off list with the things I discovered. Some of it was quite
a long time ago, so I'll have to look back at my emails to Jim.

One thing for now though. I'm illiterate in RelaxNG, but it seems
to me that <style> is definitely allowed in two or three places
in RFC7996, and it isn't even defined in svgcheck/word_properties.py
so it's no wonder that svgcheck rejects it.

Regards
   Brian

On 14-May-21 16:23, Nevil Brownlee wrote:
> 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
> 
> 
> 
_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest