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

Phillip Hallam-Baker <phill@hallambaker.com> Thu, 16 January 2020 02:24 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 A8577120882 for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Wed, 15 Jan 2020 18:24:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.95
X-Spam-Level:
X-Spam-Status: No, score=-4.95 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 7v1662IHk99l for <ietfarch-rfc-interest-archive@ietfa.amsl.com>; Wed, 15 Jan 2020 18:24:11 -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 666E112008F for <rfc-interest-archive-eekabaiReiB1@ietf.org>; Wed, 15 Jan 2020 18:24:11 -0800 (PST)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id C6DEFF40729; Wed, 15 Jan 2020 18:24:07 -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 E7A9BF40729 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 18:24:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at rfc-editor.org
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 1dKLY5ap6vhr for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 18:24:02 -0800 (PST)
Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) by rfc-editor.org (Postfix) with ESMTPS id 23690F40727 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 18:24:02 -0800 (PST)
Received: by mail-ot1-f44.google.com with SMTP id z9so15883739oth.5 for <rfc-interest@rfc-editor.org>; Wed, 15 Jan 2020 18:24:05 -0800 (PST)
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=tK+5ueCOw7HoqD6gnnygxUppv4uydIdp0vhd9gYg81Y=; b=uGV3zydG2FgvYDi30Dm9AN4DsubHzekTB3BC39K0frAoSZo8GtUCAR7N94v0haggJE JHBf4O1vySQAUfNrs8l/ZFRi6vznU94lQMKR0xLL1NFQNsq2mebQPZTASrPqsbw8AXAO 7NXyb4bt8Vvv0Bi7MLYz+xuzU+t76BlAM7peFW3SvfTa+HQIlz9T8DjZKtUk7PG5GP68 oC2cj24UqhT7S8b9/VR3RI3ErgP5WTYMp82abnE+ePoX+YVfc/Naau0AZOssOuvdR/Eh Ij1uZida0rTqjETgF1NNmR9VqHXD7BdPYBGJKMi+WLxfLBYxaVp4opc4L2w+Am8oXuiH ecUA==
X-Gm-Message-State: APjAAAWDoubRId+ES68TZd6i8ppgLg2Lf3VKBF6OOrKbKvk4h1PAFQhO 5wXvGmHHobaCMZzu3WACbkincYgyBsnPPWHzRsY=
X-Google-Smtp-Source: APXvYqxO8yOjAIyrIGVt97tFx3gPEqRPt+Rcj/da1S2cKU6ovMti80btJKcxvnYDFA12jw05el/g8Ffv6WrEr4tju8g=
X-Received: by 2002:a9d:7c8a:: with SMTP id q10mr281244otn.124.1579141444641; Wed, 15 Jan 2020 18:24:04 -0800 (PST)
MIME-Version: 1.0
References: <CAMm+LwiXhhJO7qYi41+DC4W7uMUVipXqyq75Fq2vagA1ppJNdA@mail.gmail.com> <10cca93f-a8b8-4c42-0653-3b12fa67ad12@gmail.com>
In-Reply-To: <10cca93f-a8b8-4c42-0653-3b12fa67ad12@gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Wed, 15 Jan 2020 21:23:53 -0500
Message-ID: <CAMm+LwgA-1UffBfrH-Y3J6pfh7ni9kNrndp=gHNyUyi5j=oLxg@mail.gmail.com>
To: Doug Royer <douglasroyer@gmail.com>
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>
Cc: RFC Interest <rfc-interest@rfc-editor.org>
Content-Type: multipart/mixed; boundary="===============1727529389774306956=="
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>

Thanks, I think I have a system that might be sufficient for most of it.
Main thing missing right now is end of line markers and I have to work out
what the transforms are on those.

Basically, I wrote a CSS parser this morning and a partial SVG engine that
tracks the X, Y and Font-Size attributes this afternoon. Net result is I
can massage the files into something almost OK. Just have to call it out
from my RFC converter and it is done.

Of course at this stage, it might have been easier to work out how to write
a converter for Word diagram format.


On Wed, Jan 15, 2020 at 7:56 PM Doug Royer <douglasroyer@gmail.com> wrote:

> 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
>
_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest