Re: [rfc-i] No, constraining to a custom SVG profile is not trivial

Doug Royer <douglasroyer@gmail.com> Thu, 16 January 2020 04:33 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 0458B120803 for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Wed, 15 Jan 2020 20:33:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.499
X-Spam-Level:
X-Spam-Status: No, score=-4.499 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.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (2048-bit key) reason="fail (body 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 oSpfdirh7q3P for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Wed, 15 Jan 2020 20:33:27 -0800 (PST)
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 5EF8512002F for <rfc-interest-archive-eekabaiReiB1@ietf.org>; Wed, 15 Jan 2020 20:33:27 -0800 (PST)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id BE609F40727; Wed, 15 Jan 2020 20:33:23 -0800 (PST)
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 D70B4F40727 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 20:33:22 -0800 (PST)
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 mvLfaFYJB3Lq for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 20:33:18 -0800 (PST)
Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by rfc-editor.org (Postfix) with ESMTPS id D8684F40714 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 20:33:18 -0800 (PST)
Received: by mail-il1-x136.google.com with SMTP id v15so17004410iln.0 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 20:33:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:organization:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=E7EVFIS1p6VfDy/o5m0CRm0cCiTNdNogo9SwaOCZK8s=; b=RnGv90h85+sIZyFrt/KmZqxKJhxZ6+6Nvm1ueMBJAk7CPeY3En1WQawWe1c6hFyajz QRih6HQNj3EgTR75n0qjLo3z/IdPO8PnXYuNVMD7CHdXNTdz6sJpaL6/ert59Y6R9/qW qp/kXE5x9R/9Bo17X8xiZIlgPv+/7fmVa2VWjc7qtgVLJ9ZCxQ+YsYa+LhDaTHnuMwzJ gSz5ZSVKXd1eC6QhfZXyip1X0iZX+3cl+J4IpvEPwpKnnpf6wJsXtH1NACp+xCxS3XFz gBs9Lo/yc1j0mcbeIuX7eXRxCeAGuIqaLmOj5K/9FjX/wy+btS9s93wT5qKwhLRxNDLX OdNw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=E7EVFIS1p6VfDy/o5m0CRm0cCiTNdNogo9SwaOCZK8s=; b=UBRYImufRBJHvIJZVMOvdbLh9mHTppI+OphecsMeWqfIleGAe63Pjj5dz+5Ua7Z5CU DIQ1oQXex5Tjb3KBcvFrf7EuFnXJC5zsjcJQQBb3P40dPYT9vbr5SS/aIlt/ANb24jQJ DrujfjATNxMUowpCR27zEXHm1OxRbz1xgDctN63riIAAWmMJL4cGHqTuouKFIWSeMz8m LZYE5VszBFA+Wa75MnMCAdpkhiUVkYyhlmJg4Yb93t04sRBuCctv+dl4BJzAn86rC6/S yM+m40qLB+bDubtbX4l9E3S7FniqspQLQPU3VukAv7sd0Ss7Yg11jd0ClF3Qh2uus9MB fkBA==
X-Gm-Message-State: APjAAAWUrGp+R2sqX9fWTtBGzrrUlE5rpN+QoPVCAMrCz25Z4qfXHJGi nlBTYfJHU3omgDKIQ1EzLwwvY/h/vMpBgeQ=
X-Google-Smtp-Source: APXvYqyiITq7Ycp8YfMba3KzP8ijFy1jYjWBwUU4YIoRJJ6OBQ4BBc29nlMi1aBiKh78nC6/XfnEmA==
X-Received: by 2002:a92:d609:: with SMTP id w9mr1958779ilm.46.1579149200773; Wed, 15 Jan 2020 20:33:20 -0800 (PST)
Received: from [192.168.1.7] ([174.27.20.133]) by smtp.googlemail.com with ESMTPSA id k22sm4707783ioj.24.2020.01.15.20.33.19 for <rfc-interest@rfc-editor.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jan 2020 20:33:19 -0800 (PST)
From: Doug Royer <douglasroyer@gmail.com>
X-Google-Original-From: Doug Royer <DouglasRoyer@gmail.com>
To: RFC Interest <rfc-interest@rfc-editor.org>
References: <CAMm+LwiXhhJO7qYi41+DC4W7uMUVipXqyq75Fq2vagA1ppJNdA@mail.gmail.com> <10cca93f-a8b8-4c42-0653-3b12fa67ad12@gmail.com> <CAMm+LwgA-1UffBfrH-Y3J6pfh7ni9kNrndp=gHNyUyi5j=oLxg@mail.gmail.com> <53607da4-6608-783b-b875-65551e3add19@gmail.com>
Organization: http://SoftwareAndServices.NET
Message-ID: <c25db7f1-509d-062d-c5bf-ffa48bd892fb@gmail.com>
Date: Wed, 15 Jan 2020 21:33:19 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2
MIME-Version: 1.0
In-Reply-To: <53607da4-6608-783b-b875-65551e3add19@gmail.com>
Content-Language: en-US
Subject: Re: [rfc-i] No, constraining to a custom SVG profile is not trivial
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>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

On 1/15/20 8:21 PM, Brian E Carpenter wrote:
>> Attached is a simple XSLT script that I created that simply rips out invalid elements.
> 
> The problem with colour/greyscale is that this isn't enough. If you have very dark blue text on a very pale pink background, what happens? svgcheck makes this black on black; my heuristic makes it black on white. What would your script do?

I use this tool with SVG files that I planned to use in this way.

I have not needed to solve contrast problems yet. When I do, my plan is to make anything more than 50% black, else white.  It can not handle complex SVG with shades of darkness or complex attribute values (like style). If I get energetic, I could do some contrast computation. Never tried anything that complex with XSLT, might have to do some scripting for that.

The next rev, I am going to tackle the style attribute. I do not know if it is solvable with XSLT. More of an intellectual exercise than a needed goal. If it gets complex, scripting will do.

> But I do agree with Phill, this is a non-trivial issue. Currently I think doing new drawings with a simple tool like DIA is the only practical way.

Yea, DIA and the DOT tools just make stick drawings. You can make nice flow and protocol state drawings with the dot tools (and with PIC for those of you that are troff experts).


-- 
Doug Royer - (http://DougRoyer.US)
Douglas.Royer@gmail.com
714-989-6135
_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest