From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal. Date: Wed, 24 Nov 2010 11:29:39 -0500 Message-ID: <87vd3mfzws.fsf@stupidchicken.com> References: <961v6bom3j.fsf@fencepost.gnu.org> <87eiabdc04.fsf@stupidchicken.com> <87ipznhhe3.fsf@keller.adm.naquadah.org> <87mxoz7mml.fsf@stupidchicken.com> <874ob71y6v.fsf@stupidchicken.com> <4A76DA00C61D4637AC671E53FB7A4FCB@us.oracle.com> <87d3pvf5s2.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290616209 9026 80.91.229.12 (24 Nov 2010 16:30:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 16:30:09 +0000 (UTC) Cc: 'Lars Magne Ingebrigtsen' , emacs-devel@gnu.org To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 24 17:30:04 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLIEO-00045S-4B for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 17:30:04 +0100 Original-Received: from localhost ([127.0.0.1]:40419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLIEN-00045T-HV for ged-emacs-devel@m.gmane.org; Wed, 24 Nov 2010 11:30:03 -0500 Original-Received: from [140.186.70.92] (port=39097 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLIEA-00042i-6i for emacs-devel@gnu.org; Wed, 24 Nov 2010 11:29:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLIE2-0006ZH-OW for emacs-devel@gnu.org; Wed, 24 Nov 2010 11:29:50 -0500 Original-Received: from pantheon-po25.its.yale.edu ([130.132.50.119]:45827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLIE2-0006Z6-Mq for emacs-devel@gnu.org; Wed, 24 Nov 2010 11:29:42 -0500 Original-Received: from furball (dhcp128036014153.central.yale.edu [128.36.14.153]) (authenticated bits=0) by pantheon-po25.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id oAOGTenp019150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Nov 2010 11:29:40 -0500 Original-Received: by furball (Postfix, from userid 1000) id BEB0B160946; Wed, 24 Nov 2010 11:29:39 -0500 (EST) In-Reply-To: <87d3pvf5s2.fsf@keller.adm.naquadah.org> (Julien Danjou's message of "Wed, 24 Nov 2010 10:08:13 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133120 Archived-At: Julien Danjou writes: >> You seem to be describing something oriented toward a particular >> application: "just distant enough to improve readability" or some >> such. It would not be off-topic for hexrgb to include such a >> color-distance metric. I just haven't needed that so I haven't added >> it. > > Color-lab has been built upon a specific need, which resulted in the > CIE Delta E 2000 formula to be implemented. Some helper functions > dealing with colors have been written, like CIE XYZ and CIE Lab > conversion in the process. I see; thanks for the explanation, and for writing the CIEDE functions, and I apologize if I was too gruff in my earlier emails. But the basic point stands. The color-lab.el file describes itself thusly: ;; This package provides color manipulation functions. No mention of CIEDE here, and rightly so; what's needed is a general-purpose color manipulation library, and CIEDE is only one piece of such a library. Such a library does not belong in the Gnus subdirectory tree. So, shall we pull the file out into Emacs? Then we can merge it with hexrgb.el, and maybe move `read-color' there as well.