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

Doug Royer <douglasroyer@gmail.com> Thu, 16 January 2020 00:56 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 BF2C712085E for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Wed, 15 Jan 2020 16:56:12 -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 UiA8H1Ff3mD0 for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Wed, 15 Jan 2020 16:56:10 -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 2CA461207FB for <rfc-interest-archive-eekabaiReiB1@ietf.org>; Wed, 15 Jan 2020 16:56:10 -0800 (PST)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id 9930FF40729; Wed, 15 Jan 2020 16:56:06 -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 71B84F40729 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 16:56:05 -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 YD4ZrbbKhUy8 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 16:56:02 -0800 (PST)
Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by rfc-editor.org (Postfix) with ESMTPS id BF761F40727 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 16:56:02 -0800 (PST)
Received: by mail-il1-x12a.google.com with SMTP id b15so16631411iln.3 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 16:56:05 -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; bh=jET2jd8yPfY8gnBXsYrbPhfWQGvGBbjYqU4X4o3iDeA=; b=DqBRerL7mwFiCnV0xjvxIGeOf9hh1GWKLvxGz+oR2WQxDd8RdgNikQc11ZF6nP65Vd ZEgTyXpTbgfqTMGOplYMIyU+XGYwijLFcRBBbyYrcGkftiavOfxEYIsvWQ3EaBNncweJ KZkpbWrgBsVjFBglDhH7Duk29oZpPodKULp2aPFVpxnNI3oz6kQkNjCFv2Vrn8F/SPpS jxW9hWdD1LtKI8tZ3ZBIm3u93/Z/A15LXN2Vu8jD7RTm//AmoJ8xtbprD4Fb0ItXEmbm wMNQTA7Xo0ZYf+N8pYl9A3tSr68QlB3yO/XCNI6O+pBDZ+73t9kuhDeQXUL32kG3VatE crpQ==
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; bh=jET2jd8yPfY8gnBXsYrbPhfWQGvGBbjYqU4X4o3iDeA=; b=Zoe0NDZ7sjqIvVz7Qd9DdYdyqZZulkUKd7G2wZU173AmzSTIkKfjo1RyzxDVq/x9MA jfq8sfK5E5TK5XVt9Sqo/wL+yTQoQQDbMN0beRhKrUDRMrkEUAcJ2Zqlte4AZa1JqpzT YL/5t0jP/m3AulDvTX/qWkt8Ao8c0lfZAVFoNfdPw593dW+MLW2DEq9D2oN0xlmIAHEs uV1egqpqnLRhkgdiqkB3ChBhIuI1Lx3ZgDDlFTdGVDnRbu9QTGAIEImWz18xfKuOxLAl xfajVgQPw5hVfUg96vNbM2/7Wq+7LmWLk4wL3Mi4eEllRFv7kxiBRMEuWvYDNJXRWSbX PhDQ==
X-Gm-Message-State: APjAAAVQZNcL1plCH7OazFluxcgXce0deKJlOP7bq0ro4tjeWbmwvnNJ iVStzRVznCZk6ut295/hiKn2zDgtapHC7o0=
X-Google-Smtp-Source: APXvYqyTSHP/+Oq/H2W/TCWjt73amdeXj0IMOElC4V9Q4d+IYA1x8eAk4DcOUkQLrTVaRj9oLkmnrg==
X-Received: by 2002:a92:9ad3:: with SMTP id c80mr1250351ill.141.1579136163553; Wed, 15 Jan 2020 16:56:03 -0800 (PST)
Received: from [192.168.1.7] ([174.27.20.133]) by smtp.googlemail.com with ESMTPSA id m24sm4655219ioc.37.2020.01.15.16.56.02 for <rfc-interest@rfc-editor.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jan 2020 16:56:02 -0800 (PST)
From: Doug Royer <douglasroyer@gmail.com>
X-Google-Original-From: Doug Royer <DouglasRoyer@gmail.com>
To: rfc-interest@rfc-editor.org
References: <CAMm+LwiXhhJO7qYi41+DC4W7uMUVipXqyq75Fq2vagA1ppJNdA@mail.gmail.com>
Organization: http://SoftwareAndServices.NET
Message-ID: <10cca93f-a8b8-4c42-0653-3b12fa67ad12@gmail.com>
Date: Wed, 15 Jan 2020 17:56:01 -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: <CAMm+LwiXhhJO7qYi41+DC4W7uMUVipXqyq75Fq2vagA1ppJNdA@mail.gmail.com>
Content-Type: multipart/mixed; boundary="------------0A691B7DCA3C513F53A7C7B8"
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>
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

On 1/15/20 1:14 PM, Phillip Hallam-Baker wrote:
> I am just attempting to massage my diagrams to get them into the SVG profile. Contrary to the claim made in RFC7996, creating a completely non-standard profile is not a trivial matter.


If this helps, I use DIA (a program) to make simple SVG files (export as ...). I have not had the need to translate complex SVG files yet. I have also used this script on some Postscript -> SVG converted files.

It also works with DOT set of tools (ImageMagic command line tools): dot, neato, twopi, circo, fdp, sfdp, patchwork, and osage)

Attached is a simple XSLT script that I created that simply rips out invalid elements. It would not be to difficult to make it alter attribute values. Attributes like 'style' would take some extra work. So far, I have not needed that.

When I create the SVG files, I just don't use color and complex styles. If needed this could be expanded.

-- 
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