Re: [calsify] non-CSS-named colors for events

Ken Murchison <murch@fastmail.com> Thu, 09 June 2022 16:35 UTC

Return-Path: <murch@fastmail.com>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 155E9C14F736 for <calsify@ietfa.amsl.com>; Thu, 9 Jun 2022 09:35:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.98
X-Spam-Level:
X-Spam-Status: No, score=-3.98 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-1.876, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fastmail.com header.b=FXb/4yZo; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=Q5Qqq/XT
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id olbsExaVqBfv for <calsify@ietfa.amsl.com>; Thu, 9 Jun 2022 09:35:15 -0700 (PDT)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7CF28C14CF0E for <calsify@ietf.org>; Thu, 9 Jun 2022 09:35:15 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E74935C013F for <calsify@ietf.org>; Thu, 9 Jun 2022 12:35:14 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 09 Jun 2022 12:35:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1654792514; x=1654878914; bh=BBJz2xqHU4 LEv5XooR9/49ieOh2YgaoyP113s0AielA=; b=FXb/4yZoXXIG4AhzI5yT+ECdz1 i85MzHu7y/XsCTxYmm3hDIBQoAk7rCkgIykfpEMq0r6df6rm1U2DOaABCXVPUtQ6 nwcfW9Xhzdloj3OR3PXtE0Nx/sC5fWrpRcMmGmUPHYLwSdUyiwcQS76WHsTIfiT8 KIQlchGHz8QBcp/dCNIhXtw/I2Jo778bpVp6IgDJzP/Q30xKqEBZGWC2gvyplfUI m/xIsDyojzE3Iz3DS81R8DkKCe8xg5B2tbtZf9bN1LHcz9MeaqCxeEeshkeG/dtT e5nXw8HrVakILFvRyh5GVIg3TfN3uc7jkurVlQ4N7OCJmEsdZqOtpgAeln3Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1654792514; x=1654878914; bh=BBJz2xqHU4LEv5XooR9/49ieOh2Y gaoyP113s0AielA=; b=Q5Qqq/XTery6qGeoT3f/7Z6SgSaEqr5N+T+fd+rhflFl sCF1qvBfnfATFTBd/rKDVGOiHWo3I/z4xjQdqbs9QVTlyOphLGsyWs5JsRQ3lsOv 843HHE5I1Vb6f9Z81SubxOj7EdyGU1xrqlXdjemJxvpIxu2IOB9CGrYtZQ3Hqck7 vknWOV3abGeRuZxRTsFcKaZ0IUjZsrqtVE454TQC6rcshRZg27EtMdII5p0kXPMt jZnf5WPwdyuX/iF5vFwyYHTPqmi0PkSsTEaW/6YrMN9aHCccLXgiRHQ9r7b1uveY 4NR7rWwQ+4wxrJhG8hafGSLksiV3WFKRfPKOz7JVIg==
X-ME-Sender: <xms:QiGiYvhkgvndRtbV7bwvB9weOZ1uJrZLFTEEIS6JZ4p6vIZWu5hsIQ> <xme:QiGiYsDp0c8EtiHuo4GG4Dh53ztDWBD3Jjz2bkY_q1NO1d80jwgWeQ_JdT-MYkRgT 35Q94TQ5SRiQA>
X-ME-Received: <xmr:QiGiYvFewwg0foCt_3jxZbzlPTitYnGRHhxrYuJZA8R0_AwQo1shubG6oSd6Tm15hnrsDxuHqMXXz1IxKNPirSRhKNxqmEHufmYZLQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddtledgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegtkfffgggfuffvfhfhjgesrgdtre ertdefjeenucfhrhhomhepmfgvnhcuofhurhgthhhishhonhcuoehmuhhrtghhsehfrghs thhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepffeifeeghfeghedvfeejieeite dtieeiteekueejvdegvdffudeufedvfedvffdunecuffhomhgrihhnpehivghtfhdrohhr ghdprhhftgdqvgguihhtohhrrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepmhhurhgthhesfhgrshhtmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:QiGiYsReiwsTgFizEYiTFSAvFVObH82lH6QhyCz1iiDQ5xXEK4STXw> <xmx:QiGiYsw1b7JcVJgjbJDe4czqhEvDEZODheResHKaMvvBNHA7yXyrAQ> <xmx:QiGiYi7MpeTA0vdbikUX8jVnn4yHT4ksgk2ipuhdh_mEdphBL4d5bw> <xmx:QiGiYpuUwaIPsaQngjk7ff4B-dI-0yYP579hL0YRop0JpD6hfvgzRA>
Feedback-ID: ibf914243:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for <calsify@ietf.org>; Thu, 9 Jun 2022 12:35:14 -0400 (EDT)
Content-Type: multipart/alternative; boundary="------------T87hwTSVTR3ex4wxS8cizost"
Message-ID: <908bb69a-3636-d034-1c96-7e53cd107caa@fastmail.com>
Date: Thu, 09 Jun 2022 12:35:13 -0400
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0
Content-Language: en-US
To: calsify@ietf.org
References: <437e7037-c6d5-47a7-bde6-8fecdf9e636b@www.fastmail.com>
From: Ken Murchison <murch@fastmail.com>
In-Reply-To: <437e7037-c6d5-47a7-bde6-8fecdf9e636b@www.fastmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/calsify/d_RchxWj0YDGUgyVAT-GN-A5Z9o>
Subject: Re: [calsify] non-CSS-named colors for events
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Calendaring and Scheduling Standards Simplification <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Jun 2022 16:35:20 -0000

On 6/9/22 12:27 PM, Ricardo Signes wrote:
> Hello!
>
> tl;dr:  I think the rarely-used COLOR should have a facility for RGB 
> colors, not just named colors.
>
> RFC 7986 <https://datatracker.ietf.org/doc/html/rfc7986> provides the 
> COLOR property 
> <https://datatracker.ietf.org/doc/html/rfc7986#section-5.9> for 
> specifying color on a per-event basis.  It defines the value as a 
> string that must be a named CSS3 color.
>
> Calendar users, unsurprisingly, very often push for more control, and 
> want a full selection of RGB colors.  This is permitted in jsCalendar, 
> where the color 
> <https://datatracker.ietf.org/doc/html/draft-ietf-calext-jscalendar/#section-4.2.11> event 
> property can be a named color /or/ an RGB hex value.  At present, 
> there is no means to map a non-CSS-named color from jsCalendar back to 
> iCalendar.
>
> Erratum 5449 <https://www.rfc-editor.org/errata/eid5449> was filed, 
> suggesting that RFC 7986's COLOR property should have allowed for 
> "rgb(r,g,b)" formatted hex colors.  This erratum was not accepted.
>
> We (Fastmail) plan to support RGB color for events using JMAP for 
> Calendars and jsCalendar, and so need to map these values back to 
> iCalendar.  I am not familiar with any existing clients that use the 
> COLOR property, but would be happy to be pointed at some, and at how 
> they may handle this problem.  In the meantime, here are options we 
> have been thinking about:
>
>  1. act like the erratum was accepted and use "rgb(r,g,b)"; maybe
>     somebody else has done the same, but parsing that, especially
>     given the structural commas, is not appealing
>  2. just put #RRGGBB into COLOR as needed; any human would understand
>     what is happening and could adjust accordingly; file a proposed
>     update;  nice and simple, directly maps to jsCalendar
>  3. like the above, but add an attribute to the property:
>     |COLOR;VALUE=HEX:FF0000|
>  4. store weird colors in some experimental property; this is
>     unappealing, as it seems like a bit of a dead end
>  5. store weird colors in CATEGORIES, which Fantastical does, but is
>     otherwise as unappealing as using an experimental property
>

I'd vote for #2 or #3 with a preference for #3, as it is more explicit 
as to the type of the value and doesn't require any "magic" text 
prefix.  Of course, VALUE=HEX would have to be defined (I'd be willing 
to write a draft).


-- 
Kenneth Murchison
Senior Software Developer
Fastmail US LLC