From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.devel Subject: Re: Default colours in X11 frames? Date: Tue, 22 Jul 2008 00:04:47 -0400 Message-ID: References: <4883BC0F.5060302@harpegolden.net> <86wsjfjrf8.fsf@lola.quinscape.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1216706973 18726 80.91.229.12 (22 Jul 2008 06:09:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Jul 2008 06:09:33 +0000 (UTC) To: James Cloos Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 22 08:10:22 2008 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.50) id 1KLB4l-0005nr-WE for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 08:10:20 +0200 Original-Received: from localhost ([127.0.0.1]:38264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLB3s-0005Fg-De for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 02:09:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLB3m-0005Ew-AU for emacs-devel@gnu.org; Tue, 22 Jul 2008 02:09:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLB3l-0005EJ-63 for emacs-devel@gnu.org; Tue, 22 Jul 2008 02:09:17 -0400 Original-Received: from [199.232.76.173] (port=53627 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLB3k-0005EE-VJ for emacs-devel@gnu.org; Tue, 22 Jul 2008 02:09:17 -0400 Original-Received: from eagle.jhcloos.com ([207.210.242.212]:3811) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KLB3k-0004mL-Ax for emacs-devel@gnu.org; Tue, 22 Jul 2008 02:09:16 -0400 Original-Received: by eagle.jhcloos.com (Postfix, from userid 10) id AE9F740198; Tue, 22 Jul 2008 06:09:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1216706953; bh=OGrYxY8qONrkHFdRwe6Gx63XcyZYi6NYSO5yhlGes e4=; h=Resent-To:Resent-From:Resent-Message-ID:Resent-Date:From:To: Subject:In-Reply-To:References:Date:Message-ID:MIME-Version: Content-Type; b=kcYdjRC412AIQsJ6GhXnW1T65WrVWjHlqeN+0WTLu6m/VzSBl3 Md2ETvyA13IHskYfgyVo7YwNc1LwMraRISewjdX9GAWwxWsuvHE3fvNnLQZkCcnwOWb VLdDVYoWtI6AgoADipUToS/ZqVo7QAxC+CLbYUjcYUSpWrcIRx3Vng= Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id 5974121069A; Tue, 22 Jul 2008 06:09:00 +0000 (UTC) Resent-To: emacs-devel@gnu.org Resent-Copyright: Copyright 2008 James Cloos Resent-OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc Resent-OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Resent-From: James Cloos Resent-Message-ID: Resent-Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Resent-Date: Tue, 22 Jul 2008 02:08:37 -0400 Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id 0945021069E; Tue, 22 Jul 2008 04:05:10 +0000 (UTC) In-Reply-To: (James Cloos's message of "Mon, 21 Jul 2008 16:13:54 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg== Copyright: Copyright 2008 James Cloos OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 29 X-DSPAM-Processed: Tue Jul 22 04:05:15 2008 X-DSPAM-Improbability: 1 in 12508 chance of being spam X-DSPAM-Factors: 27, References*lugabout.jhcloos.org>, 0.00207, References*lugabout.jhcloos.org>, 0.00207, txt, 0.00296, txt, 0.00296, In-Reply-To*lugabout.jhcloos.org>, 0.00304, Received*500), 0.00374, default, 0.00510, To*James, 0.00596, To*James+Cloos, 0.00715, Received*userid+500), 0.00979, In-Reply-To*Jul+2008, 0.01000, In-Reply-To*"Mon, 0.01000, Subject*X11+frames?, 0.01000, Subject*colours, 0.01000, In-Reply-To*21, 0.01000, User-Agent*Emacs/23.0.60+(gnu/linux), 0.01000, In-Reply-To*Cloos's+message, 0.01000, User-Agent*(gnu/linux), 0.01000, From*James Cloos , 0.01000, In-Reply-To*2008, 0.01000, Subject*in+X11, 0.01000, Subject*Default+colours, 0.01000, In-Reply-To*(James, 0.01000, In-Reply-To*message, 0.01000, In-Reply-To*(James+Cloos's, 0.01000, User-Agent*Emacs/23.0.60, 0.01000, In-Reply-To*Cloos's, 0.01000 X-Hashcash: 1:23:080722:cloos@jhcloos.com::p843S4QPsnIfROXr:000000000000000000000000000000000000000000009rWn X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Tue, 22 Jul 2008 02:09:17 -0400 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:101166 Archived-At: --=-=-= It turns out rgb:12/3/45 is the same as rgb:12/33/45 rather than rgb:12/03/45, so that perl script needs to use %02x in its printf: --=-=-= Content-Type: text/x-perl; name=rgb2xcms.pl Content-Disposition: inline #!/usr/bin/perl print "XCMS_COLORDB_START 0.1\n"; # print the colours from the default Xcms.txt print "cms red\t\tCIEXYZ:0.3811/0.2073/0.0213\n"; print "cms green\t\tCIEXYZ:0.3203/0.6805/0.1430\n"; print "cms blue\t\tCIEXYZ:0.2483/0.1122/1.2417\n"; # then convert all of the rgb.txt colours while (<>) { next if /^#/; next if /^$/; chomp; my @line=split; print join(" ",@line[3..$#line]); printf("\t\t\trgb:%02x/%02x/%02x\n", $line[0], $line[1], $line[2]); } print "XCMS_COLORDB_END\n"; exit; --=-=-= -JimC -- James Cloos OpenPGP: 1024D/ED7DAEA6 --=-=-=--