Re: [rfc-i] SVG/A specification.

Leonard Rosenthol <lrosenth@adobe.com> Fri, 24 January 2020 18:59 UTC

Return-Path: <lrosenth@adobe.com>
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 71335F40721 for <rfc-interest@rfc-editor.org>; Fri, 24 Jan 2020 10:59:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at rfc-editor.org
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, SPF_NONE=0.001, SURBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: rfcpa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=adobe.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 BJAop8QntolB for <rfc-interest@rfc-editor.org>; Fri, 24 Jan 2020 10:59:57 -0800 (PST)
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2088.outbound.protection.outlook.com [40.107.223.88]) by rfc-editor.org (Postfix) with ESMTPS id 18795F40720 for <rfc-interest@rfc-editor.org>; Fri, 24 Jan 2020 10:59:56 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KmdhoAaq6Zi8wmJj4gIwgBUs9SPDk0+2g3ISEdhHL2NII0d0TnPKQhUBj9XfNo5l6xxEY7jGCiwZx7i6vE/dzXnGt2ds5w3Uc+Kvay4Mxqr++7cyyZJ4tlBETNKW4A2nAfQfJ537qjZqGAWyS0uXvkYyRsVqp7V72vlXOZnM3aG5qJVA3qdGTEn7fD8o+2cnelsHBW4FA7HVgZABePQQRPtzwgyi/IKvsWUtS0X+LTPRY5/Z/H/VD/o7dbCcO5rNCnv5tmfcs1uF+xC5cWfOt2HVYqwRwcSLh0h9mZDEbIULy6LQRoqMSKLLgtyVfUaiZRCoT0qhGQdz5PlPN1gXuA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4oMMI+1cnb6/LzChuhuzaDm5m0ZGWjzec5W7HMJW4Aw=; b=bnyw+PIIuwzNuWWHzUkiwrLfLgWsIOagdZclk9Epi6bfWNPI1eOx4/7Gggkg7RL1E1aoaO0kN66EsfvFDxIUuDQcfo/dS2+bveKOGcoGrOztORcfCMh5GCJTXwwdueCtHYoIfeLcJ4zIKKtAOufx1+qWBGVq7HWkGTgP0+7T+2qQdrKWc+T+oQSN9aBkWaDzEQTrhvotbHsdTuvzDtb/a0tuu+lBYZrpRjzH1/dH4WFawLrPdS05HqYSQY3sDFumTUpCE/FVtbDpL6Mn//4ZNOMnk9rLt20tSdzxMk7ojOBE2MDY4ZMMdXiVsSpSyts/Xaw6xXAC6wLbldf7ne/VBg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=adobe.com; dmarc=pass action=none header.from=adobe.com; dkim=pass header.d=adobe.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adobe.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4oMMI+1cnb6/LzChuhuzaDm5m0ZGWjzec5W7HMJW4Aw=; b=YRBUwFH7+XBOMMLc1iSNMGnn4+Wyb/7sWSu+kE0jNVALSXCSnYvNPLf+HSiccqSYPq1AHJlujKRR1bUESWs1u+yuZardkr98ANSbQWAxcQEynQc3q2qeP/GC/5Q8/j44rV6KX+zeuQAX3pR56DcMSOgcKzuAcZt0VodzZu6StOQ=
Received: from MN2PR02MB6992.namprd02.prod.outlook.com (20.179.223.74) by MN2PR02MB5966.namprd02.prod.outlook.com (20.179.98.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.19; Fri, 24 Jan 2020 19:00:02 +0000
Received: from MN2PR02MB6992.namprd02.prod.outlook.com ([fe80::bc90:8089:6718:861b]) by MN2PR02MB6992.namprd02.prod.outlook.com ([fe80::bc90:8089:6718:861b%5]) with mapi id 15.20.2644.027; Fri, 24 Jan 2020 19:00:02 +0000
From: Leonard Rosenthol <lrosenth@adobe.com>
To: Phillip Hallam-Baker <phill@hallambaker.com>
CC: RFC Interest <rfc-interest@rfc-editor.org>
Thread-Topic: [rfc-i] SVG/A specification.
Thread-Index: AQHV0mvngUIneYG83Eey+PyBJCikHaf5m0aAgAB8X4D//8CmgA==
Date: Fri, 24 Jan 2020 19:00:02 +0000
Message-ID: <3743BC40-78B6-4452-BEC3-696EC0DA717B@adobe.com>
References: <CAMm+LwhRoycA5Dn-SmhTWGizRcxe5i_9nGPbcs=6MYkfGS4SWQ@mail.gmail.com> <9261C066-86A3-4D80-A5A1-890E06A67744@adobe.com> <CAMm+LwhWAyfyQuaBKQC8UWS_4GhgFfNPA_etKhhKQw=eUcVhzA@mail.gmail.com>
In-Reply-To: <CAMm+LwhWAyfyQuaBKQC8UWS_4GhgFfNPA_etKhhKQw=eUcVhzA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.21.0.200113
authentication-results: spf=none (sender IP is ) smtp.mailfrom=lrosenth@adobe.com;
x-originating-ip: [192.147.118.254]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: b9136b3f-cc4d-4551-448b-08d7a0ff9ddf
x-ms-traffictypediagnostic: MN2PR02MB5966:
x-microsoft-antispam-prvs: <MN2PR02MB5966D9974FCCC5B35E0E6AF2CD0E0@MN2PR02MB5966.namprd02.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 02929ECF07
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(366004)(376002)(136003)(39860400002)(199004)(189003)(4326008)(33656002)(5660300002)(6916009)(786003)(316002)(478600001)(966005)(21615005)(26005)(53546011)(36756003)(6506007)(81166006)(81156014)(8676002)(8936002)(2616005)(186003)(76116006)(66946007)(66476007)(66556008)(64756008)(66446008)(91956017)(86362001)(2906002)(71200400001)(6486002)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR02MB5966; H:MN2PR02MB6992.namprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: B49d7yc4x3lnmWaGFvzbxsZXGU3iz4OS5dsNFC3BX3Sq2z2sBFVNhM74X1wBQSkYoqVdo8asHhXe3nC1BhlcE8FPFkF1z70dJMx6egLrWmczJ8N51YIba92i/RBGRMhD9GCuW2/qYIMbsYn/MtEfkciaHKZ6JcF+sc9GEvETs3eTQFsKq1bEwfEMs4hAjajXpfiYsktLYvg7Rbs05ZWwHZIpgh+H8a32qMjYG3dwRfTYOgAbY8qmFPXwsdsR/ofpidy8WsqAoIGekQpZfMsvWs/SI8jo8WOwePfe2edSyh7UcnkUxSD6J8YD/QHJwt7mbAa3M1VWQUZIR0znZ+ATRLcCZ+pR1Um9hDdL8CI0vCcK5aj1I4pnclxyqR2rSbjc5gBDMeiCSRADLag3tejXc+TyVReSMaqJTkrG7rlSyE1NCIhW7oqRDYbYsSORKyQ61bqf3KhdMXbTnAfPDNKnzFJPNY/x3iZndRuYINOd+m4=
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_3743BC4078B64452BEC3696EC0DA717Badobecom_"
MIME-Version: 1.0
X-OriginatorOrg: adobe.com
X-MS-Exchange-CrossTenant-Network-Message-Id: b9136b3f-cc4d-4551-448b-08d7a0ff9ddf
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2020 19:00:02.0470 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: /8JRHDLWgAK/R1zBdu2reToufswFWP455S1yw0lqqVETlYaq3mPUalC77xDSgjFqXI+P1Me10IYs4uceEUo/aQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR02MB5966
Subject: Re: [rfc-i] SVG/A specification.
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>
X-List-Received-Date: Fri, 24 Jan 2020 18:59:58 -0000

>> Style
> It presents a problem for validation and for the aggregation of XML2RFC + SVG* to on XML document. Basically, it means that the validator has to understand the style sheet language.
>Since the output language is XML2RFC which prohibits style, it seems simplest to simply flatten all this out.
>
OK, I’ll buy that for Stylesheet.  But not for style.  Style is simple – it’s just ‘key/value’ pairs.

> But the original reason for this was not actually the archival part but the accessibility part.
>It is much easier to restrict attributes to a limited palette of colors if there is a single means of expressing them.
>
That may be true for colors *but* style also is where you define things like line-width, line-joins. dash patterns, font weight, etc.

And what about the ID restriction?

> So the only way to make this happen would be to expand the SVG Font definitions inside the diagrams. Which isn't going to happen. Pity.
>
No, the correct way to do this is simply to “embed” the font, as I recommended.  See https://www.htmlgoodies.com/beyond/webmaster/serving-up-base64-encoded-custom-fonts.html

Leonard

From: Phillip Hallam-Baker <phill@hallambaker.com>
Date: Friday, January 24, 2020 at 12:46 PM
To: Leonard Rosenthol <lrosenth@adobe.com>
Cc: "rfc-interest@rfc-editor.org" <rfc-interest@rfc-editor.org>
Subject: Re: [rfc-i] SVG/A specification.

On Fri, Jan 24, 2020 at 10:21 AM Leonard Rosenthol <lrosenth@adobe.com<mailto:lrosenth@adobe.com>> wrote:
Since you (assumedly) named this to align with PDF/A (the archival subset of PDF), then since I am the project leader for PDF/A, I think it’s only appropriate for me to weigh in.

Given your definition of archival (which seems fine), I believe that you have not fully thought through all of the requirements necessary to achieve that.


  *   Encapsulation.

     *   Great starting point and your definition aligns well with PDF/A.  However, your implementation does not.  For example, you allow for fonts by reference – which is not permitted in PDF/A (and was, IIRC the first requirement that was ever put into that standard).  All font information *must* be embedded, since is impossible to determine what fonts will be available at any time in the future.   This is especially true for any font/content that uses “special areas” of Unicode such as math.

  *   Accessibility

     *   You aren’t actually doing anything here to address this.  Where are you requirements around associating alt text (at a minimum)?  If you are going to call this out, if nothing else, you need to at least point to WCAG requirements here.  Either that, or I recommend you drop this requirement.

You are also missing a key requirement:


  *   (No) Scripting

     *   Removing any scripts that could change the content in the future was the #2 requirement applied to PDF/A and I would say also needs to be applied to RFC’s.  Not only to prevent content changing but also to prevent an RFC from accessing a remote site when being viewed (which also falls into the “encapsulation” category).
Oh good point! Given that I am probably the person who has detested Javascript longer than any other human being (I was at W3C when Netscape faxed us the spec and was the first to try it there), nobody seems to have thought it needed mentioning.

Also, you have some requirements that don’t have anything to do with archival requirements and AFAICT serve no useful purpose.

·         The stylesheet element MUST NOT be present.

·         The id and style attributes MUST NOT be present
Why??   As long as everything is internal and does not include scripting – what is wrong with CSS/stylesheets?   Same with the style & id elements?   They are all perfectly valid and archival.

It presents a problem for validation and for the aggregation of XML2RFC + SVG* to on XML document. Basically, it means that the validator has to understand the style sheet language.

Since the output language is XML2RFC which prohibits style, it seems simplest to simply flatten all this out.

But the original reason for this was not actually the archival part but the accessibility part. It is much easier to restrict attributes to a limited palette of colors if there is a single means of expressing them.


  *   If a diagram uses symbols from a different font, the specific glyphs used can be imported as SVG fonts.

SVG Fonts (https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_fonts<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2Fdocs%2FWeb%2FSVG%2FTutorial%2FSVG_fonts&data=02%7C01%7Clrosenth%40adobe.com%7Cc21f84ace0e2436c33e408d7a0f56862%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637154848188313724&sdata=utMREGB081JD1BlpRrPXrQjYKy8wiSDxrSUeHc22qCY%3D&reserved=0>) are not supported by any modern browsers and should not be used.  However it is possible to embed fonts into an HTML/SVG files, conceptually as one does with PDF.

So the only way to make this happen would be to expand the SVG Font definitions inside the diagrams. Which isn't going to happen. Pity.