Re: [Bimi] [rfc-i] SVG P/S Feedback

Leonard Rosenthol <lrosenth@adobe.com> Sun, 30 August 2020 22:09 UTC

Return-Path: <lrosenth@adobe.com>
X-Original-To: bimi@ietfa.amsl.com
Delivered-To: bimi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 73A303A03EE for <bimi@ietfa.amsl.com>; Sun, 30 Aug 2020 15:09:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.102
X-Spam-Level:
X-Spam-Status: No, score=-2.102 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, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=adobe.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 IPyHGtUfrPiY for <bimi@ietfa.amsl.com>; Sun, 30 Aug 2020 15:09:40 -0700 (PDT)
Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2042.outbound.protection.outlook.com [40.107.237.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D94A33A03ED for <bimi@ietf.org>; Sun, 30 Aug 2020 15:09:39 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZOz9Cg0RKCWnEP2t9F9lyFKdK7h8pRAa7ui9p60wQbyqY7ET2v40YtUBsn5YSrapJHGLWrQqovurcBJzw5nQ0Vyh7u22QBsGjATfpWw5jUv4t7d8z79OqRzkxKIHWP3bmYWFvzAkkxeJCp/KLAXAIbqn+Kc7ra2dk/9ujJhvIUTRn43DYaGkir7QpuWpeSHFao6BUHb8TKncLrVMuo7fNXJob7tIwYsnSsKvpIs/EkRFyhRD7hu0JushPupkRPxXB2kZbix1eYwjOEnr/gcTrK26aLbYztWorMjciNrShF06XIq+OJwOHc7/oZWhBbzTcZ/axucpBGPGh7a6foq8ww==
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=NfRhWSaDfrN/GdXCuy/Wi7N8A86Y2VgZvcb30YVa+wE=; b=FJe9X8l1mRYTfkD8FVhW+qU2ul6n1x+jw8UIKV6be95lNWLq2h/bOOtwHi5/1Hf/SlWfMx1DFxgiSwBLvB03s6UbEjg4bxfQyF8be3Dvla2+OsGL31MRVXRsWXp5mY2YLJtD2PA5Ze9WDNwpDYMazVEH3nnmRlcC1Cx9EWNb+redbUGKbP0fvAlD49IMuoVjFK2ZXlozv+yhKIxdVvItUAcP2weS5ThsIa0ihlrofv5Uj+LlJHw2P+Mt8LCnIvN1XYkqRVuievQD40jN+ANxJYa6SAzHhJczfAEUAeCba4PKhN7C/Ug0NQaNdn9pnBk39sIMR5b9W5MAJPEtNoXeyQ==
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=NfRhWSaDfrN/GdXCuy/Wi7N8A86Y2VgZvcb30YVa+wE=; b=fcu8q2fCcqSDGo3SAYT8Jfj9Cr8bztYorAdOLGusE7HYHbndzQAsb9am8UD6U6TtFCqcJn58f0nxd2fjanfsgB1i7Ndd4fd0iWuq13jmfMQiMe9a8HnjE52GZ6Uw2eJkC10PU122oWaFjmMYN15cUFPqPj0TCk38qhZbflpZOxU=
Received: from MN2PR02MB6992.namprd02.prod.outlook.com (2603:10b6:208:1f5::10) by BL0PR02MB3747.namprd02.prod.outlook.com (2603:10b6:207:48::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Sun, 30 Aug 2020 22:09:37 +0000
Received: from MN2PR02MB6992.namprd02.prod.outlook.com ([fe80::cd1c:e912:82ff:8ea6]) by MN2PR02MB6992.namprd02.prod.outlook.com ([fe80::cd1c:e912:82ff:8ea6%3]) with mapi id 15.20.3326.021; Sun, 30 Aug 2020 22:09:37 +0000
From: Leonard Rosenthol <lrosenth@adobe.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, Larry Masinter <LMM@acm.org>, "'Brotman, Alex'" <Alex_Brotman@comcast.com>, "rfc-interest@rfc-editor.org" <rfc-interest@rfc-editor.org>
CC: "'BIMI (IETF)'" <bimi@ietf.org>
Thread-Topic: [rfc-i] SVG P/S Feedback
Thread-Index: AdZ9Okv+69BoULslTL+Cfd/XcqlzFQAT+0OAAAEIWYAADN1OAABBPMaAABLD/AD//83KAA==
Date: Sun, 30 Aug 2020 22:09:37 +0000
Message-ID: <64DF8A7C-A219-45D9-9FE6-25D4CC8143EF@adobe.com>
References: <MN2PR11MB4351CC443B406196C3953D1BF7520@MN2PR11MB4351.namprd11.prod.outlook.com> <70eadfe5-16f6-47d9-4cb8-f4f9bffdd355@gmail.com> <013c01d67d8e$5b952f60$12bf8e20$@acm.org> <f2df89d0-73c5-49b5-c18c-ec0ac16dfa1c@gmail.com> <290BCC09-02FB-4289-9D1A-2FD00B476E78@adobe.com> <53a7ca18-792f-ef67-24f9-e84e5e154989@gmail.com>
In-Reply-To: <53a7ca18-792f-ef67-24f9-e84e5e154989@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.40.20081201
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=adobe.com;
x-originating-ip: [24.0.194.111]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 864c7a44-1b95-4e70-2c82-08d84d31626d
x-ms-traffictypediagnostic: BL0PR02MB3747:
x-microsoft-antispam-prvs: <BL0PR02MB3747B0BCA291B10EAE427E42CD500@BL0PR02MB3747.namprd02.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 4nFUeJSYXj3Kho64I28ME5YVmtNZZUWJERfN86OIdKB2/8uIREzXdyC2kc3uZuSiHNaTDnZboXrnDKjp8KVTrl7VAz5owfN5Vw3cNy4FiAl84Y8yhhZKdRtMztg9PiuwVAraLEX7Pibb4HdMG8uU2uXvhD/BDT7cIa7ccx/A7UATRPhL+Ov2INq7p1sfw+vHml4ZE7nWGSIXLFu7f3E93DrJSmw6VK0amV7SdiPgnOt7/K0TEwEDfWWQF6uLe//j21Me76bY+Ux8odJ9iAFjjWBnAEf2awPyZ22WqsthRx/ad5KgjZIhQvMl36c/Vt2TfpwH1VEH577Hri7mrlgWYfEuNF8pl9zu6SJadOHIv4UYGu29YKlzJbSy9It8OvkCmNtlnHUrrTEhDT5d1mHK1w==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR02MB6992.namprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(376002)(396003)(346002)(136003)(366004)(2616005)(4326008)(316002)(966005)(110136005)(53546011)(6506007)(6512007)(76116006)(66476007)(86362001)(64756008)(66446008)(66556008)(66946007)(71200400001)(186003)(8676002)(45080400002)(5660300002)(6486002)(2906002)(33656002)(786003)(36756003)(478600001)(26005)(8936002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: Fm2uQ3PKSRJ3qTrx86TSauJYbQNUF2ky+HXkvmRbcB0dH6mHFWaoBeG5xg/Q1Ux6kcfs+8qQIFbJOvcdYOAdw5GvzXcH+3Vf9Z5Lmihc3SaZ4Xq+HOEPHvjk01iGKpvwDwnaLkoFAC1NVg3oEuxi9V+h91d8+pRiNY40qhkN27bukgvRFC/nFfgg/pagcKaQXZROGBloIk5UWAMCzuz2yz9F1JkL+bzLK5Bp0AyUqHrOgEuV63/ui40pU41m0XLtgNpEj004CQ1fvAdZohVlJvwvWMyozTUjNKI4kMW5LQ/JcKvgpATjiF1HLZqOUh7fPKEF/nr2+qdegFMbJN6g/DjJkton59XrujZmawZ8PtiYFqnxGU+Glb4X2xieE8iJazOxdmsIfAMVy18e3FTkINzJmCvqAgul8T1aID3j5KFS/tijDWfRmCUfA2Lojd4va6lMwxXNI9Wf+T+JGCA7CZYVzOb7T3iodOiiiD19SC2tnN8fJxtAFDd/k2KJY0ysEEcAL3umx/Occ5uSwZycvx60SMUSbxPJDSRTP+/w+O0dDdWEsNkBFufiTZDDBGyRMtYU/ykzSiHjNlcl7sC/tkjkHrMgExkkoUM2qnFWY87EjmcPARPaiISSGFb7ws2nUR4iNhkUlvEsnzjH8SOOaA==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <092EB54FDD6909498FC034E45708C5F2@namprd02.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: adobe.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR02MB6992.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 864c7a44-1b95-4e70-2c82-08d84d31626d
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2020 22:09:37.2326 (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: oy9tMDd2blyLW9d/CNvRkPcgqBjvQZqarOCmpXT0/rCG0GtZLi5R1ZbIA7mf7ero2eMdXBMuDv0VYDHJ3M2AWw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB3747
Archived-At: <https://mailarchive.ietf.org/arch/msg/bimi/3qHITCa58DeXRaHV4bMFmAX04QA>
Subject: Re: [Bimi] [rfc-i] SVG P/S Feedback
X-BeenThere: bimi@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Brand Indicators for Message Identification <bimi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/bimi>, <mailto:bimi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/bimi/>
List-Post: <mailto:bimi@ietf.org>
List-Help: <mailto:bimi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/bimi>, <mailto:bimi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 30 Aug 2020 22:09:43 -0000

Brian - not sure what you are looking at, but in SVG 1.1 (https://www.w3.org/TR/SVG11/single-page.html#types-DataTypeNumber), I see the following definition for a `<number>`

	<number>
	Real numbers are specified in one of two ways. When used in a style sheet, a <number> is defined as follows:

	number ::= integer
           		| [+-]? [0-9]* "." [0-9]+
	This syntax is the same as the definition in CSS ([CSS2], section 4.3.1).

	When used in an SVG attribute, a <number> is defined differently, to allow numbers with large magnitudes to be specified more concisely:

	number ::= integer ([Ee] integer)?
           		| [+-]? [0-9]* "." [0-9]+ ([Ee] integer)?
	Within the SVG DOM, a <number> is represented as a float, SVGNumber or a SVGAnimatedNumber.

As noted, this is consistent with how "numbers" are used in the rest of the open web platform (eg. CSS, HTML, etc.)

Concerning use in PDF or PDF/A, I don't think that Larry was suggesting that it was being used *instead of* xml2rfcv3...but it is one of the normative formats produced from that grammar.   As such, I believe Larry was pointing out the importance of being able to roundtrip from the SVG in the xml2rfcv3->PDF/A->SVG for anyone that might need it.  As mentioned, there are methods to embed the original SVG directly into the PDF at authoring time and then that SVG could be extracted downstream. The tool used by the IETF supports that option, but I don't believe it is enabled.  Something to consider for the future.


> Who is the arbiter of "correct fidelity"?
>
I would argue that data which is semantically identical is correct.  The fact that you can serialize the same data in different ways isn't bad - as they are semantically identical.  However I don’t see a need to debate that at this time...


Leonard 

On 8/30/20, 5:09 PM, "Brian E Carpenter" <brian.e.carpenter@gmail.com> wrote:

    On 31-Aug-20 04:12, Leonard Rosenthol wrote:
    > Brian - but what you describe below is a tooling problem not a technology or format issue.

    IMHO the underlying problem is that SVG allows multiple ways of representing the same image, and a subsidiary problem is that it allows positions to be represented as real numbers. The SVG spec says:
    "Unless stated otherwise, numeric values in SVG attributes and in properties that are defined to have an effect on SVG elements must support at least all finite single-precision values supported by the host architecture."
    In other words, the precision of positions is host-dependent. I don't know enough about PDF to know how that affects the conversion algorithm, but I suspect it means that...

    > There are ways in which all of the SVG semantics - or even the entire SVG itself(!) 

    ... only embedding the SVG itself would be guaranteed to round-trip in all cases. Since that is exactly what we do in xml2rfcV3, I don't see what we'd gain by doing it in PDF/A instead.

    > - could be included in the PDF/A file and round-tripped with correct fidelity (or even 100% identical bits).

    Who is the arbiter of "correct fidelity"? The judge and jury in a patent infringement or copyright case? The only safe standard is "identical bits" or at least "identical string of UTF-8 characters". We've relied on "identical string of ASCII characters" for many years.

    > Let's agree on what the goal is, come up with a standard that specifies how to achieve that, AND THEN we can get tools to comply.

    Sure. We'd need to start with some canonicalization rules for SVG. We need to look again at RFC7996 in any case. But I don't think that relying on host representation of real numbers is ever going to be OK. (Is there a reason that SVG didn't use a host-independent formulation for its statement about precision?)

        Brian

    > 
    > Leonard
    > 
    > On 8/29/20, 1:04 AM, "rfc-interest on behalf of Brian E Carpenter" <rfc-interest-bounces@rfc-editor.org on behalf of brian.e.carpenter@gmail.com> wrote:
    > 
    >     Larry,
    > 
    >     On 29-Aug-20 10:55, Larry Masinter wrote:
    >     > One of the functional requirements for SVG illustrations is that when
    >     > converted to PDF/A that the result is "as good as it gets" so the authors
    >     > don't rely on embedded animations or videos to explain the protocol they are
    >     > describing.
    >     > 
    >     > What if you did a round trip   SVG -> PDF/A -> SVG. I think it's possible to
    >     > insure that doing so is idempotent (if it isn't now).
    > 
    >     Only if you had a round trip tool that magically preserves the SVG dialect
    >     in use. I just round-tripped a test file using https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fconvertio.co%2F&amp;data=02%7C01%7Clrosenth%40adobe.com%7Ccb6c5f20901348ae829808d84d28f979%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637344185664248727&amp;sdata=eN6bT%2FbUwXBQx6iRRWElVJaiZ4Tvw3DT0sV7hvn3Rwc%3D&amp;reserved=0.
    >     The PDF and the round-tripped SVG *look* the same as the original, but the
    >     actual content of the SVG file is totally different, and fails svgcheck, so
    >     is no longer conformant with RFC7996. The converter just happens to choose
    >     a different way of representing the same image, since SVG is so versatile.
    > 
    >     The converter also messed up the scalability of the image, which is really
    >     annoying if you want the image to be viewable on a tiny screen.
    > 
    >     Now I'll round-trip it a second time... once again, the input and output
    >     SVG files are different, although only in a few places. So even the
    >     conversion tools at convertio.co can't achieve idempotency with the SVG
    >     that they themselves generate.
    > 
    >     (For the record, convertio.co doesn't claim to be PDF/A conformant,
    >     but I think that's beside the point here.)
    > 
    >        Brian
    > 
    > 
    >     _______________________________________________
    >     rfc-interest mailing list
    >     rfc-interest@rfc-editor.org
    >     https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.rfc-editor.org%2Fmailman%2Flistinfo%2Frfc-interest&amp;data=02%7C01%7Clrosenth%40adobe.com%7Ccb6c5f20901348ae829808d84d28f979%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637344185664258722&amp;sdata=mM1UUMwFMAvTOrS9ongBH1OoQHxHJ6OIv0cQQHNsdvQ%3D&amp;reserved=0
    >