Mercurial > emacs
comparison lisp/hfy-cmap.el @ 106126:10d66efa4c61
New files.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 19 Nov 2009 20:21:01 +0000 |
parents | |
children | ed77a6edfaa1 |
comparison
equal
deleted
inserted
replaced
106125:805f90cb413e | 106126:10d66efa4c61 |
---|---|
1 ;;; hfy-cmap.el --- Fallback colour name -> rgb mapping for `htmlfontify' | |
2 | |
3 ;; Copyright (C) 2002, 2003, 2009 Free Software Foundation, Inc. | |
4 | |
5 ;; Emacs Lisp Archive Entry | |
6 ;; Package: htmlfontify | |
7 ;; Filename: hfy-cmap.el | |
8 ;; Version: 0.20 | |
9 ;; Keywords: colour, rgb | |
10 ;; Author: Vivek Dasmohapatra <vivek@etla.org> | |
11 ;; Maintainer: Vivek Dasmohapatra <vivek@etla.org> | |
12 ;; Created: 2002-01-20 | |
13 ;; Description: fallback code for colour name -> rgb mapping | |
14 ;; URL: http://rtfm.etla.org/emacs/htmlfontify/ | |
15 ;; Last-Updated: Sat 2003-02-15 03:49:32 +0000 | |
16 | |
17 ;; This file is part of GNU Emacs. | |
18 | |
19 ;; GNU Emacs is free software: you can redistribute it and/or modify | |
20 ;; it under the terms of the GNU General Public License as published by | |
21 ;; the Free Software Foundation, either version 3 of the License, or | |
22 ;; (at your option) any later version. | |
23 | |
24 ;; GNU Emacs is distributed in the hope that it will be useful, | |
25 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
26 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
27 ;; GNU General Public License for more details. | |
28 | |
29 ;; You should have received a copy of the GNU General Public License | |
30 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. | |
31 | |
32 ;;; Commentary: | |
33 | |
34 ;;; Code: | |
35 | |
36 (defconst hfy-fallback-colour-map | |
37 '(("snow" 65535 64250 64250) | |
38 ("ghost white" 63736 63736 65535) | |
39 ("GhostWhite" 63736 63736 65535) | |
40 ("white smoke" 62965 62965 62965) | |
41 ("WhiteSmoke" 62965 62965 62965) | |
42 ("gainsboro" 56540 56540 56540) | |
43 ("floral white" 65535 64250 61680) | |
44 ("FloralWhite" 65535 64250 61680) | |
45 ("old lace" 65021 62965 59110) | |
46 ("OldLace" 65021 62965 59110) | |
47 ("linen" 64250 61680 59110) | |
48 ("antique white" 64250 60395 55255) | |
49 ("AntiqueWhite" 64250 60395 55255) | |
50 ("papaya whip" 65535 61423 54741) | |
51 ("PapayaWhip" 65535 61423 54741) | |
52 ("blanched almond" 65535 60395 52685) | |
53 ("BlanchedAlmond" 65535 60395 52685) | |
54 ("bisque" 65535 58596 50372) | |
55 ("peach puff" 65535 56026 47545) | |
56 ("PeachPuff" 65535 56026 47545) | |
57 ("navajo white" 65535 57054 44461) | |
58 ("NavajoWhite" 65535 57054 44461) | |
59 ("moccasin" 65535 58596 46517) | |
60 ("cornsilk" 65535 63736 56540) | |
61 ("ivory" 65535 65535 61680) | |
62 ("lemon chiffon" 65535 64250 52685) | |
63 ("LemonChiffon" 65535 64250 52685) | |
64 ("seashell" 65535 62965 61166) | |
65 ("honeydew" 61680 65535 61680) | |
66 ("mint cream" 62965 65535 64250) | |
67 ("MintCream" 62965 65535 64250) | |
68 ("azure" 61680 65535 65535) | |
69 ("alice blue" 61680 63736 65535) | |
70 ("AliceBlue" 61680 63736 65535) | |
71 ("lavender" 59110 59110 64250) | |
72 ("lavender blush" 65535 61680 62965) | |
73 ("LavenderBlush" 65535 61680 62965) | |
74 ("misty rose" 65535 58596 57825) | |
75 ("MistyRose" 65535 58596 57825) | |
76 ("white" 65535 65535 65535) | |
77 ("black" 0 0 0) | |
78 ("dark slate gray" 12079 20303 20303) | |
79 ("DarkSlateGray" 12079 20303 20303) | |
80 ("dark slate grey" 12079 20303 20303) | |
81 ("DarkSlateGrey" 12079 20303 20303) | |
82 ("dim gray" 26985 26985 26985) | |
83 ("DimGray" 26985 26985 26985) | |
84 ("dim grey" 26985 26985 26985) | |
85 ("DimGrey" 26985 26985 26985) | |
86 ("slate gray" 28784 32896 37008) | |
87 ("SlateGray" 28784 32896 37008) | |
88 ("slate grey" 28784 32896 37008) | |
89 ("SlateGrey" 28784 32896 37008) | |
90 ("light slate gray" 30583 34952 39321) | |
91 ("LightSlateGray" 30583 34952 39321) | |
92 ("light slate grey" 30583 34952 39321) | |
93 ("LightSlateGrey" 30583 34952 39321) | |
94 ("gray" 48830 48830 48830) | |
95 ("grey" 48830 48830 48830) | |
96 ("light grey" 54227 54227 54227) | |
97 ("LightGrey" 54227 54227 54227) | |
98 ("light gray" 54227 54227 54227) | |
99 ("LightGray" 54227 54227 54227) | |
100 ("midnight blue" 6425 6425 28784) | |
101 ("MidnightBlue" 6425 6425 28784) | |
102 ("navy" 0 0 32896) | |
103 ("navy blue" 0 0 32896) | |
104 ("NavyBlue" 0 0 32896) | |
105 ("cornflower blue" 25700 38293 60909) | |
106 ("CornflowerBlue" 25700 38293 60909) | |
107 ("dark slate blue" 18504 15677 35723) | |
108 ("DarkSlateBlue" 18504 15677 35723) | |
109 ("slate blue" 27242 23130 52685) | |
110 ("SlateBlue" 27242 23130 52685) | |
111 ("medium slate blue" 31611 26728 61166) | |
112 ("MediumSlateBlue" 31611 26728 61166) | |
113 ("light slate blue" 33924 28784 65535) | |
114 ("LightSlateBlue" 33924 28784 65535) | |
115 ("medium blue" 0 0 52685) | |
116 ("MediumBlue" 0 0 52685) | |
117 ("royal blue" 16705 26985 57825) | |
118 ("RoyalBlue" 16705 26985 57825) | |
119 ("blue" 0 0 65535) | |
120 ("dodger blue" 7710 37008 65535) | |
121 ("DodgerBlue" 7710 37008 65535) | |
122 ("deep sky blue" 0 49087 65535) | |
123 ("DeepSkyBlue" 0 49087 65535) | |
124 ("sky blue" 34695 52942 60395) | |
125 ("SkyBlue" 34695 52942 60395) | |
126 ("light sky blue" 34695 52942 64250) | |
127 ("LightSkyBlue" 34695 52942 64250) | |
128 ("steel blue" 17990 33410 46260) | |
129 ("SteelBlue" 17990 33410 46260) | |
130 ("light steel blue" 45232 50372 57054) | |
131 ("LightSteelBlue" 45232 50372 57054) | |
132 ("light blue" 44461 55512 59110) | |
133 ("LightBlue" 44461 55512 59110) | |
134 ("powder blue" 45232 57568 59110) | |
135 ("PowderBlue" 45232 57568 59110) | |
136 ("pale turquoise" 44975 61166 61166) | |
137 ("PaleTurquoise" 44975 61166 61166) | |
138 ("dark turquoise" 0 52942 53713) | |
139 ("DarkTurquoise" 0 52942 53713) | |
140 ("medium turquoise" 18504 53713 52428) | |
141 ("MediumTurquoise" 18504 53713 52428) | |
142 ("turquoise" 16448 57568 53456) | |
143 ("cyan" 0 65535 65535) | |
144 ("light cyan" 57568 65535 65535) | |
145 ("LightCyan" 57568 65535 65535) | |
146 ("cadet blue" 24415 40606 41120) | |
147 ("CadetBlue" 24415 40606 41120) | |
148 ("medium aquamarine" 26214 52685 43690) | |
149 ("MediumAquamarine" 26214 52685 43690) | |
150 ("aquamarine" 32639 65535 54484) | |
151 ("dark green" 0 25700 0) | |
152 ("DarkGreen" 0 25700 0) | |
153 ("dark olive green" 21845 27499 12079) | |
154 ("DarkOliveGreen" 21845 27499 12079) | |
155 ("dark sea green" 36751 48316 36751) | |
156 ("DarkSeaGreen" 36751 48316 36751) | |
157 ("sea green" 11822 35723 22359) | |
158 ("SeaGreen" 11822 35723 22359) | |
159 ("medium sea green" 15420 46003 29041) | |
160 ("MediumSeaGreen" 15420 46003 29041) | |
161 ("light sea green" 8224 45746 43690) | |
162 ("LightSeaGreen" 8224 45746 43690) | |
163 ("pale green" 39064 64507 39064) | |
164 ("PaleGreen" 39064 64507 39064) | |
165 ("spring green" 0 65535 32639) | |
166 ("SpringGreen" 0 65535 32639) | |
167 ("lawn green" 31868 64764 0) | |
168 ("LawnGreen" 31868 64764 0) | |
169 ("green" 0 65535 0) | |
170 ("chartreuse" 32639 65535 0) | |
171 ("medium spring green" 0 64250 39578) | |
172 ("MediumSpringGreen" 0 64250 39578) | |
173 ("green yellow" 44461 65535 12079) | |
174 ("GreenYellow" 44461 65535 12079) | |
175 ("lime green" 12850 52685 12850) | |
176 ("LimeGreen" 12850 52685 12850) | |
177 ("yellow green" 39578 52685 12850) | |
178 ("YellowGreen" 39578 52685 12850) | |
179 ("forest green" 8738 35723 8738) | |
180 ("ForestGreen" 8738 35723 8738) | |
181 ("olive drab" 27499 36494 8995) | |
182 ("OliveDrab" 27499 36494 8995) | |
183 ("dark khaki" 48573 47031 27499) | |
184 ("DarkKhaki" 48573 47031 27499) | |
185 ("khaki" 61680 59110 35980) | |
186 ("pale goldenrod" 61166 59624 43690) | |
187 ("PaleGoldenrod" 61166 59624 43690) | |
188 ("light goldenrod yellow" 64250 64250 53970) | |
189 ("LightGoldenrodYellow" 64250 64250 53970) | |
190 ("light yellow" 65535 65535 57568) | |
191 ("LightYellow" 65535 65535 57568) | |
192 ("yellow" 65535 65535 0) | |
193 ("gold" 65535 55255 0) | |
194 ("light goldenrod" 61166 56797 33410) | |
195 ("LightGoldenrod" 61166 56797 33410) | |
196 ("goldenrod" 56026 42405 8224) | |
197 ("dark goldenrod" 47288 34438 2827) | |
198 ("DarkGoldenrod" 47288 34438 2827) | |
199 ("rosy brown" 48316 36751 36751) | |
200 ("RosyBrown" 48316 36751 36751) | |
201 ("indian red" 52685 23644 23644) | |
202 ("IndianRed" 52685 23644 23644) | |
203 ("saddle brown" 35723 17733 4883) | |
204 ("SaddleBrown" 35723 17733 4883) | |
205 ("sienna" 41120 21074 11565) | |
206 ("peru" 52685 34181 16191) | |
207 ("burlywood" 57054 47288 34695) | |
208 ("beige" 62965 62965 56540) | |
209 ("wheat" 62965 57054 46003) | |
210 ("sandy brown" 62708 42148 24672) | |
211 ("SandyBrown" 62708 42148 24672) | |
212 ("tan" 53970 46260 35980) | |
213 ("chocolate" 53970 26985 7710) | |
214 ("firebrick" 45746 8738 8738) | |
215 ("brown" 42405 10794 10794) | |
216 ("dark salmon" 59881 38550 31354) | |
217 ("DarkSalmon" 59881 38550 31354) | |
218 ("salmon" 64250 32896 29298) | |
219 ("light salmon" 65535 41120 31354) | |
220 ("LightSalmon" 65535 41120 31354) | |
221 ("orange" 65535 42405 0) | |
222 ("dark orange" 65535 35980 0) | |
223 ("DarkOrange" 65535 35980 0) | |
224 ("coral" 65535 32639 20560) | |
225 ("light coral" 61680 32896 32896) | |
226 ("LightCoral" 61680 32896 32896) | |
227 ("tomato" 65535 25443 18247) | |
228 ("orange red" 65535 17733 0) | |
229 ("OrangeRed" 65535 17733 0) | |
230 ("red" 65535 0 0) | |
231 ("hot pink" 65535 26985 46260) | |
232 ("HotPink" 65535 26985 46260) | |
233 ("deep pink" 65535 5140 37779) | |
234 ("DeepPink" 65535 5140 37779) | |
235 ("pink" 65535 49344 52171) | |
236 ("light pink" 65535 46774 49601) | |
237 ("LightPink" 65535 46774 49601) | |
238 ("pale violet red" 56283 28784 37779) | |
239 ("PaleVioletRed" 56283 28784 37779) | |
240 ("maroon" 45232 12336 24672) | |
241 ("medium violet red" 51143 5397 34181) | |
242 ("MediumVioletRed" 51143 5397 34181) | |
243 ("violet red" 53456 8224 37008) | |
244 ("VioletRed" 53456 8224 37008) | |
245 ("magenta" 65535 0 65535) | |
246 ("violet" 61166 33410 61166) | |
247 ("plum" 56797 41120 56797) | |
248 ("orchid" 56026 28784 54998) | |
249 ("medium orchid" 47802 21845 54227) | |
250 ("MediumOrchid" 47802 21845 54227) | |
251 ("dark orchid" 39321 12850 52428) | |
252 ("DarkOrchid" 39321 12850 52428) | |
253 ("dark violet" 38036 0 54227) | |
254 ("DarkViolet" 38036 0 54227) | |
255 ("blue violet" 35466 11051 58082) | |
256 ("BlueViolet" 35466 11051 58082) | |
257 ("purple" 41120 8224 61680) | |
258 ("medium purple" 37779 28784 56283) | |
259 ("MediumPurple" 37779 28784 56283) | |
260 ("thistle" 55512 49087 55512) | |
261 ("snow1" 65535 64250 64250) | |
262 ("snow2" 61166 59881 59881) | |
263 ("snow3" 52685 51657 51657) | |
264 ("snow4" 35723 35209 35209) | |
265 ("seashell1" 65535 62965 61166) | |
266 ("seashell2" 61166 58853 57054) | |
267 ("seashell3" 52685 50629 49087) | |
268 ("seashell4" 35723 34438 33410) | |
269 ("AntiqueWhite1" 65535 61423 56283) | |
270 ("AntiqueWhite2" 61166 57311 52428) | |
271 ("AntiqueWhite3" 52685 49344 45232) | |
272 ("AntiqueWhite4" 35723 33667 30840) | |
273 ("bisque1" 65535 58596 50372) | |
274 ("bisque2" 61166 54741 47031) | |
275 ("bisque3" 52685 47031 40606) | |
276 ("bisque4" 35723 32125 27499) | |
277 ("PeachPuff1" 65535 56026 47545) | |
278 ("PeachPuff2" 61166 52171 44461) | |
279 ("PeachPuff3" 52685 44975 38293) | |
280 ("PeachPuff4" 35723 30583 25957) | |
281 ("NavajoWhite1" 65535 57054 44461) | |
282 ("NavajoWhite2" 61166 53199 41377) | |
283 ("NavajoWhite3" 52685 46003 35723) | |
284 ("NavajoWhite4" 35723 31097 24158) | |
285 ("LemonChiffon1" 65535 64250 52685) | |
286 ("LemonChiffon2" 61166 59881 49087) | |
287 ("LemonChiffon3" 52685 51657 42405) | |
288 ("LemonChiffon4" 35723 35209 28784) | |
289 ("cornsilk1" 65535 63736 56540) | |
290 ("cornsilk2" 61166 59624 52685) | |
291 ("cornsilk3" 52685 51400 45489) | |
292 ("cornsilk4" 35723 34952 30840) | |
293 ("ivory1" 65535 65535 61680) | |
294 ("ivory2" 61166 61166 57568) | |
295 ("ivory3" 52685 52685 49601) | |
296 ("ivory4" 35723 35723 33667) | |
297 ("honeydew1" 61680 65535 61680) | |
298 ("honeydew2" 57568 61166 57568) | |
299 ("honeydew3" 49601 52685 49601) | |
300 ("honeydew4" 33667 35723 33667) | |
301 ("LavenderBlush1" 65535 61680 62965) | |
302 ("LavenderBlush2" 61166 57568 58853) | |
303 ("LavenderBlush3" 52685 49601 50629) | |
304 ("LavenderBlush4" 35723 33667 34438) | |
305 ("MistyRose1" 65535 58596 57825) | |
306 ("MistyRose2" 61166 54741 53970) | |
307 ("MistyRose3" 52685 47031 46517) | |
308 ("MistyRose4" 35723 32125 31611) | |
309 ("azure1" 61680 65535 65535) | |
310 ("azure2" 57568 61166 61166) | |
311 ("azure3" 49601 52685 52685) | |
312 ("azure4" 33667 35723 35723) | |
313 ("SlateBlue1" 33667 28527 65535) | |
314 ("SlateBlue2" 31354 26471 61166) | |
315 ("SlateBlue3" 26985 22873 52685) | |
316 ("SlateBlue4" 18247 15420 35723) | |
317 ("RoyalBlue1" 18504 30326 65535) | |
318 ("RoyalBlue2" 17219 28270 61166) | |
319 ("RoyalBlue3" 14906 24415 52685) | |
320 ("RoyalBlue4" 10023 16448 35723) | |
321 ("blue1" 0 0 65535) | |
322 ("blue2" 0 0 61166) | |
323 ("blue3" 0 0 52685) | |
324 ("blue4" 0 0 35723) | |
325 ("DodgerBlue1" 7710 37008 65535) | |
326 ("DodgerBlue2" 7196 34438 61166) | |
327 ("DodgerBlue3" 6168 29812 52685) | |
328 ("DodgerBlue4" 4112 20046 35723) | |
329 ("SteelBlue1" 25443 47288 65535) | |
330 ("SteelBlue2" 23644 44204 61166) | |
331 ("SteelBlue3" 20303 38036 52685) | |
332 ("SteelBlue4" 13878 25700 35723) | |
333 ("DeepSkyBlue1" 0 49087 65535) | |
334 ("DeepSkyBlue2" 0 45746 61166) | |
335 ("DeepSkyBlue3" 0 39578 52685) | |
336 ("DeepSkyBlue4" 0 26728 35723) | |
337 ("SkyBlue1" 34695 52942 65535) | |
338 ("SkyBlue2" 32382 49344 61166) | |
339 ("SkyBlue3" 27756 42662 52685) | |
340 ("SkyBlue4" 19018 28784 35723) | |
341 ("LightSkyBlue1" 45232 58082 65535) | |
342 ("LightSkyBlue2" 42148 54227 61166) | |
343 ("LightSkyBlue3" 36237 46774 52685) | |
344 ("LightSkyBlue4" 24672 31611 35723) | |
345 ("SlateGray1" 50886 58082 65535) | |
346 ("SlateGray2" 47545 54227 61166) | |
347 ("SlateGray3" 40863 46774 52685) | |
348 ("SlateGray4" 27756 31611 35723) | |
349 ("LightSteelBlue1" 51914 57825 65535) | |
350 ("LightSteelBlue2" 48316 53970 61166) | |
351 ("LightSteelBlue3" 41634 46517 52685) | |
352 ("LightSteelBlue4" 28270 31611 35723) | |
353 ("LightBlue1" 49087 61423 65535) | |
354 ("LightBlue2" 45746 57311 61166) | |
355 ("LightBlue3" 39578 49344 52685) | |
356 ("LightBlue4" 26728 33667 35723) | |
357 ("LightCyan1" 57568 65535 65535) | |
358 ("LightCyan2" 53713 61166 61166) | |
359 ("LightCyan3" 46260 52685 52685) | |
360 ("LightCyan4" 31354 35723 35723) | |
361 ("PaleTurquoise1" 48059 65535 65535) | |
362 ("PaleTurquoise2" 44718 61166 61166) | |
363 ("PaleTurquoise3" 38550 52685 52685) | |
364 ("PaleTurquoise4" 26214 35723 35723) | |
365 ("CadetBlue1" 39064 62965 65535) | |
366 ("CadetBlue2" 36494 58853 61166) | |
367 ("CadetBlue3" 31354 50629 52685) | |
368 ("CadetBlue4" 21331 34438 35723) | |
369 ("turquoise1" 0 62965 65535) | |
370 ("turquoise2" 0 58853 61166) | |
371 ("turquoise3" 0 50629 52685) | |
372 ("turquoise4" 0 34438 35723) | |
373 ("cyan1" 0 65535 65535) | |
374 ("cyan2" 0 61166 61166) | |
375 ("cyan3" 0 52685 52685) | |
376 ("cyan4" 0 35723 35723) | |
377 ("DarkSlateGray1" 38807 65535 65535) | |
378 ("DarkSlateGray2" 36237 61166 61166) | |
379 ("DarkSlateGray3" 31097 52685 52685) | |
380 ("DarkSlateGray4" 21074 35723 35723) | |
381 ("aquamarine1" 32639 65535 54484) | |
382 ("aquamarine2" 30326 61166 50886) | |
383 ("aquamarine3" 26214 52685 43690) | |
384 ("aquamarine4" 17733 35723 29812) | |
385 ("DarkSeaGreen1" 49601 65535 49601) | |
386 ("DarkSeaGreen2" 46260 61166 46260) | |
387 ("DarkSeaGreen3" 39835 52685 39835) | |
388 ("DarkSeaGreen4" 26985 35723 26985) | |
389 ("SeaGreen1" 21588 65535 40863) | |
390 ("SeaGreen2" 20046 61166 38036) | |
391 ("SeaGreen3" 17219 52685 32896) | |
392 ("SeaGreen4" 11822 35723 22359) | |
393 ("PaleGreen1" 39578 65535 39578) | |
394 ("PaleGreen2" 37008 61166 37008) | |
395 ("PaleGreen3" 31868 52685 31868) | |
396 ("PaleGreen4" 21588 35723 21588) | |
397 ("SpringGreen1" 0 65535 32639) | |
398 ("SpringGreen2" 0 61166 30326) | |
399 ("SpringGreen3" 0 52685 26214) | |
400 ("SpringGreen4" 0 35723 17733) | |
401 ("green1" 0 65535 0) | |
402 ("green2" 0 61166 0) | |
403 ("green3" 0 52685 0) | |
404 ("green4" 0 35723 0) | |
405 ("chartreuse1" 32639 65535 0) | |
406 ("chartreuse2" 30326 61166 0) | |
407 ("chartreuse3" 26214 52685 0) | |
408 ("chartreuse4" 17733 35723 0) | |
409 ("OliveDrab1" 49344 65535 15934) | |
410 ("OliveDrab2" 46003 61166 14906) | |
411 ("OliveDrab3" 39578 52685 12850) | |
412 ("OliveDrab4" 26985 35723 8738) | |
413 ("DarkOliveGreen1" 51914 65535 28784) | |
414 ("DarkOliveGreen2" 48316 61166 26728) | |
415 ("DarkOliveGreen3" 41634 52685 23130) | |
416 ("DarkOliveGreen4" 28270 35723 15677) | |
417 ("khaki1" 65535 63222 36751) | |
418 ("khaki2" 61166 59110 34181) | |
419 ("khaki3" 52685 50886 29555) | |
420 ("khaki4" 35723 34438 20046) | |
421 ("LightGoldenrod1" 65535 60652 35723) | |
422 ("LightGoldenrod2" 61166 56540 33410) | |
423 ("LightGoldenrod3" 52685 48830 28784) | |
424 ("LightGoldenrod4" 35723 33153 19532) | |
425 ("LightYellow1" 65535 65535 57568) | |
426 ("LightYellow2" 61166 61166 53713) | |
427 ("LightYellow3" 52685 52685 46260) | |
428 ("LightYellow4" 35723 35723 31354) | |
429 ("yellow1" 65535 65535 0) | |
430 ("yellow2" 61166 61166 0) | |
431 ("yellow3" 52685 52685 0) | |
432 ("yellow4" 35723 35723 0) | |
433 ("gold1" 65535 55255 0) | |
434 ("gold2" 61166 51657 0) | |
435 ("gold3" 52685 44461 0) | |
436 ("gold4" 35723 30069 0) | |
437 ("goldenrod1" 65535 49601 9509) | |
438 ("goldenrod2" 61166 46260 8738) | |
439 ("goldenrod3" 52685 39835 7453) | |
440 ("goldenrod4" 35723 26985 5140) | |
441 ("DarkGoldenrod1" 65535 47545 3855) | |
442 ("DarkGoldenrod2" 61166 44461 3598) | |
443 ("DarkGoldenrod3" 52685 38293 3084) | |
444 ("DarkGoldenrod4" 35723 25957 2056) | |
445 ("RosyBrown1" 65535 49601 49601) | |
446 ("RosyBrown2" 61166 46260 46260) | |
447 ("RosyBrown3" 52685 39835 39835) | |
448 ("RosyBrown4" 35723 26985 26985) | |
449 ("IndianRed1" 65535 27242 27242) | |
450 ("IndianRed2" 61166 25443 25443) | |
451 ("IndianRed3" 52685 21845 21845) | |
452 ("IndianRed4" 35723 14906 14906) | |
453 ("sienna1" 65535 33410 18247) | |
454 ("sienna2" 61166 31097 16962) | |
455 ("sienna3" 52685 26728 14649) | |
456 ("sienna4" 35723 18247 9766) | |
457 ("burlywood1" 65535 54227 39835) | |
458 ("burlywood2" 61166 50629 37265) | |
459 ("burlywood3" 52685 43690 32125) | |
460 ("burlywood4" 35723 29555 21845) | |
461 ("wheat1" 65535 59367 47802) | |
462 ("wheat2" 61166 55512 44718) | |
463 ("wheat3" 52685 47802 38550) | |
464 ("wheat4" 35723 32382 26214) | |
465 ("tan1" 65535 42405 20303) | |
466 ("tan2" 61166 39578 18761) | |
467 ("tan3" 52685 34181 16191) | |
468 ("tan4" 35723 23130 11051) | |
469 ("chocolate1" 65535 32639 9252) | |
470 ("chocolate2" 61166 30326 8481) | |
471 ("chocolate3" 52685 26214 7453) | |
472 ("chocolate4" 35723 17733 4883) | |
473 ("firebrick1" 65535 12336 12336) | |
474 ("firebrick2" 61166 11308 11308) | |
475 ("firebrick3" 52685 9766 9766) | |
476 ("firebrick4" 35723 6682 6682) | |
477 ("brown1" 65535 16448 16448) | |
478 ("brown2" 61166 15163 15163) | |
479 ("brown3" 52685 13107 13107) | |
480 ("brown4" 35723 8995 8995) | |
481 ("salmon1" 65535 35980 26985) | |
482 ("salmon2" 61166 33410 25186) | |
483 ("salmon3" 52685 28784 21588) | |
484 ("salmon4" 35723 19532 14649) | |
485 ("LightSalmon1" 65535 41120 31354) | |
486 ("LightSalmon2" 61166 38293 29298) | |
487 ("LightSalmon3" 52685 33153 25186) | |
488 ("LightSalmon4" 35723 22359 16962) | |
489 ("orange1" 65535 42405 0) | |
490 ("orange2" 61166 39578 0) | |
491 ("orange3" 52685 34181 0) | |
492 ("orange4" 35723 23130 0) | |
493 ("DarkOrange1" 65535 32639 0) | |
494 ("DarkOrange2" 61166 30326 0) | |
495 ("DarkOrange3" 52685 26214 0) | |
496 ("DarkOrange4" 35723 17733 0) | |
497 ("coral1" 65535 29298 22102) | |
498 ("coral2" 61166 27242 20560) | |
499 ("coral3" 52685 23387 17733) | |
500 ("coral4" 35723 15934 12079) | |
501 ("tomato1" 65535 25443 18247) | |
502 ("tomato2" 61166 23644 16962) | |
503 ("tomato3" 52685 20303 14649) | |
504 ("tomato4" 35723 13878 9766) | |
505 ("OrangeRed1" 65535 17733 0) | |
506 ("OrangeRed2" 61166 16448 0) | |
507 ("OrangeRed3" 52685 14135 0) | |
508 ("OrangeRed4" 35723 9509 0) | |
509 ("red1" 65535 0 0) | |
510 ("red2" 61166 0 0) | |
511 ("red3" 52685 0 0) | |
512 ("red4" 35723 0 0) | |
513 ("DeepPink1" 65535 5140 37779) | |
514 ("DeepPink2" 61166 4626 35209) | |
515 ("DeepPink3" 52685 4112 30326) | |
516 ("DeepPink4" 35723 2570 20560) | |
517 ("HotPink1" 65535 28270 46260) | |
518 ("HotPink2" 61166 27242 42919) | |
519 ("HotPink3" 52685 24672 37008) | |
520 ("HotPink4" 35723 14906 25186) | |
521 ("pink1" 65535 46517 50629) | |
522 ("pink2" 61166 43433 47288) | |
523 ("pink3" 52685 37265 40606) | |
524 ("pink4" 35723 25443 27756) | |
525 ("LightPink1" 65535 44718 47545) | |
526 ("LightPink2" 61166 41634 44461) | |
527 ("LightPink3" 52685 35980 38293) | |
528 ("LightPink4" 35723 24415 25957) | |
529 ("PaleVioletRed1" 65535 33410 43947) | |
530 ("PaleVioletRed2" 61166 31097 40863) | |
531 ("PaleVioletRed3" 52685 26728 35209) | |
532 ("PaleVioletRed4" 35723 18247 23901) | |
533 ("maroon1" 65535 13364 46003) | |
534 ("maroon2" 61166 12336 42919) | |
535 ("maroon3" 52685 10537 37008) | |
536 ("maroon4" 35723 7196 25186) | |
537 ("VioletRed1" 65535 15934 38550) | |
538 ("VioletRed2" 61166 14906 35980) | |
539 ("VioletRed3" 52685 12850 30840) | |
540 ("VioletRed4" 35723 8738 21074) | |
541 ("magenta1" 65535 0 65535) | |
542 ("magenta2" 61166 0 61166) | |
543 ("magenta3" 52685 0 52685) | |
544 ("magenta4" 35723 0 35723) | |
545 ("orchid1" 65535 33667 64250) | |
546 ("orchid2" 61166 31354 59881) | |
547 ("orchid3" 52685 26985 51657) | |
548 ("orchid4" 35723 18247 35209) | |
549 ("plum1" 65535 48059 65535) | |
550 ("plum2" 61166 44718 61166) | |
551 ("plum3" 52685 38550 52685) | |
552 ("plum4" 35723 26214 35723) | |
553 ("MediumOrchid1" 57568 26214 65535) | |
554 ("MediumOrchid2" 53713 24415 61166) | |
555 ("MediumOrchid3" 46260 21074 52685) | |
556 ("MediumOrchid4" 31354 14135 35723) | |
557 ("DarkOrchid1" 49087 15934 65535) | |
558 ("DarkOrchid2" 45746 14906 61166) | |
559 ("DarkOrchid3" 39578 12850 52685) | |
560 ("DarkOrchid4" 26728 8738 35723) | |
561 ("purple1" 39835 12336 65535) | |
562 ("purple2" 37265 11308 61166) | |
563 ("purple3" 32125 9766 52685) | |
564 ("purple4" 21845 6682 35723) | |
565 ("MediumPurple1" 43947 33410 65535) | |
566 ("MediumPurple2" 40863 31097 61166) | |
567 ("MediumPurple3" 35209 26728 52685) | |
568 ("MediumPurple4" 23901 18247 35723) | |
569 ("thistle1" 65535 57825 65535) | |
570 ("thistle2" 61166 53970 61166) | |
571 ("thistle3" 52685 46517 52685) | |
572 ("thistle4" 35723 31611 35723) | |
573 ("gray0" 0 0 0) | |
574 ("grey0" 0 0 0) | |
575 ("gray1" 771 771 771) | |
576 ("grey1" 771 771 771) | |
577 ("gray2" 1285 1285 1285) | |
578 ("grey2" 1285 1285 1285) | |
579 ("gray3" 2056 2056 2056) | |
580 ("grey3" 2056 2056 2056) | |
581 ("gray4" 2570 2570 2570) | |
582 ("grey4" 2570 2570 2570) | |
583 ("gray5" 3341 3341 3341) | |
584 ("grey5" 3341 3341 3341) | |
585 ("gray6" 3855 3855 3855) | |
586 ("grey6" 3855 3855 3855) | |
587 ("gray7" 4626 4626 4626) | |
588 ("grey7" 4626 4626 4626) | |
589 ("gray8" 5140 5140 5140) | |
590 ("grey8" 5140 5140 5140) | |
591 ("gray9" 5911 5911 5911) | |
592 ("grey9" 5911 5911 5911) | |
593 ("gray10" 6682 6682 6682) | |
594 ("grey10" 6682 6682 6682) | |
595 ("gray11" 7196 7196 7196) | |
596 ("grey11" 7196 7196 7196) | |
597 ("gray12" 7967 7967 7967) | |
598 ("grey12" 7967 7967 7967) | |
599 ("gray13" 8481 8481 8481) | |
600 ("grey13" 8481 8481 8481) | |
601 ("gray14" 9252 9252 9252) | |
602 ("grey14" 9252 9252 9252) | |
603 ("gray15" 9766 9766 9766) | |
604 ("grey15" 9766 9766 9766) | |
605 ("gray16" 10537 10537 10537) | |
606 ("grey16" 10537 10537 10537) | |
607 ("gray17" 11051 11051 11051) | |
608 ("grey17" 11051 11051 11051) | |
609 ("gray18" 11822 11822 11822) | |
610 ("grey18" 11822 11822 11822) | |
611 ("gray19" 12336 12336 12336) | |
612 ("grey19" 12336 12336 12336) | |
613 ("gray20" 13107 13107 13107) | |
614 ("grey20" 13107 13107 13107) | |
615 ("gray21" 13878 13878 13878) | |
616 ("grey21" 13878 13878 13878) | |
617 ("gray22" 14392 14392 14392) | |
618 ("grey22" 14392 14392 14392) | |
619 ("gray23" 15163 15163 15163) | |
620 ("grey23" 15163 15163 15163) | |
621 ("gray24" 15677 15677 15677) | |
622 ("grey24" 15677 15677 15677) | |
623 ("gray25" 16448 16448 16448) | |
624 ("grey25" 16448 16448 16448) | |
625 ("gray26" 16962 16962 16962) | |
626 ("grey26" 16962 16962 16962) | |
627 ("gray27" 17733 17733 17733) | |
628 ("grey27" 17733 17733 17733) | |
629 ("gray28" 18247 18247 18247) | |
630 ("grey28" 18247 18247 18247) | |
631 ("gray29" 19018 19018 19018) | |
632 ("grey29" 19018 19018 19018) | |
633 ("gray30" 19789 19789 19789) | |
634 ("grey30" 19789 19789 19789) | |
635 ("gray31" 20303 20303 20303) | |
636 ("grey31" 20303 20303 20303) | |
637 ("gray32" 21074 21074 21074) | |
638 ("grey32" 21074 21074 21074) | |
639 ("gray33" 21588 21588 21588) | |
640 ("grey33" 21588 21588 21588) | |
641 ("gray34" 22359 22359 22359) | |
642 ("grey34" 22359 22359 22359) | |
643 ("gray35" 22873 22873 22873) | |
644 ("grey35" 22873 22873 22873) | |
645 ("gray36" 23644 23644 23644) | |
646 ("grey36" 23644 23644 23644) | |
647 ("gray37" 24158 24158 24158) | |
648 ("grey37" 24158 24158 24158) | |
649 ("gray38" 24929 24929 24929) | |
650 ("grey38" 24929 24929 24929) | |
651 ("gray39" 25443 25443 25443) | |
652 ("grey39" 25443 25443 25443) | |
653 ("gray40" 26214 26214 26214) | |
654 ("grey40" 26214 26214 26214) | |
655 ("gray41" 26985 26985 26985) | |
656 ("grey41" 26985 26985 26985) | |
657 ("gray42" 27499 27499 27499) | |
658 ("grey42" 27499 27499 27499) | |
659 ("gray43" 28270 28270 28270) | |
660 ("grey43" 28270 28270 28270) | |
661 ("gray44" 28784 28784 28784) | |
662 ("grey44" 28784 28784 28784) | |
663 ("gray45" 29555 29555 29555) | |
664 ("grey45" 29555 29555 29555) | |
665 ("gray46" 30069 30069 30069) | |
666 ("grey46" 30069 30069 30069) | |
667 ("gray47" 30840 30840 30840) | |
668 ("grey47" 30840 30840 30840) | |
669 ("gray48" 31354 31354 31354) | |
670 ("grey48" 31354 31354 31354) | |
671 ("gray49" 32125 32125 32125) | |
672 ("grey49" 32125 32125 32125) | |
673 ("gray50" 32639 32639 32639) | |
674 ("grey50" 32639 32639 32639) | |
675 ("gray51" 33410 33410 33410) | |
676 ("grey51" 33410 33410 33410) | |
677 ("gray52" 34181 34181 34181) | |
678 ("grey52" 34181 34181 34181) | |
679 ("gray53" 34695 34695 34695) | |
680 ("grey53" 34695 34695 34695) | |
681 ("gray54" 35466 35466 35466) | |
682 ("grey54" 35466 35466 35466) | |
683 ("gray55" 35980 35980 35980) | |
684 ("grey55" 35980 35980 35980) | |
685 ("gray56" 36751 36751 36751) | |
686 ("grey56" 36751 36751 36751) | |
687 ("gray57" 37265 37265 37265) | |
688 ("grey57" 37265 37265 37265) | |
689 ("gray58" 38036 38036 38036) | |
690 ("grey58" 38036 38036 38036) | |
691 ("gray59" 38550 38550 38550) | |
692 ("grey59" 38550 38550 38550) | |
693 ("gray60" 39321 39321 39321) | |
694 ("grey60" 39321 39321 39321) | |
695 ("gray61" 40092 40092 40092) | |
696 ("grey61" 40092 40092 40092) | |
697 ("gray62" 40606 40606 40606) | |
698 ("grey62" 40606 40606 40606) | |
699 ("gray63" 41377 41377 41377) | |
700 ("grey63" 41377 41377 41377) | |
701 ("gray64" 41891 41891 41891) | |
702 ("grey64" 41891 41891 41891) | |
703 ("gray65" 42662 42662 42662) | |
704 ("grey65" 42662 42662 42662) | |
705 ("gray66" 43176 43176 43176) | |
706 ("grey66" 43176 43176 43176) | |
707 ("gray67" 43947 43947 43947) | |
708 ("grey67" 43947 43947 43947) | |
709 ("gray68" 44461 44461 44461) | |
710 ("grey68" 44461 44461 44461) | |
711 ("gray69" 45232 45232 45232) | |
712 ("grey69" 45232 45232 45232) | |
713 ("gray70" 46003 46003 46003) | |
714 ("grey70" 46003 46003 46003) | |
715 ("gray71" 46517 46517 46517) | |
716 ("grey71" 46517 46517 46517) | |
717 ("gray72" 47288 47288 47288) | |
718 ("grey72" 47288 47288 47288) | |
719 ("gray73" 47802 47802 47802) | |
720 ("grey73" 47802 47802 47802) | |
721 ("gray74" 48573 48573 48573) | |
722 ("grey74" 48573 48573 48573) | |
723 ("gray75" 49087 49087 49087) | |
724 ("grey75" 49087 49087 49087) | |
725 ("gray76" 49858 49858 49858) | |
726 ("grey76" 49858 49858 49858) | |
727 ("gray77" 50372 50372 50372) | |
728 ("grey77" 50372 50372 50372) | |
729 ("gray78" 51143 51143 51143) | |
730 ("grey78" 51143 51143 51143) | |
731 ("gray79" 51657 51657 51657) | |
732 ("grey79" 51657 51657 51657) | |
733 ("gray80" 52428 52428 52428) | |
734 ("grey80" 52428 52428 52428) | |
735 ("gray81" 53199 53199 53199) | |
736 ("grey81" 53199 53199 53199) | |
737 ("gray82" 53713 53713 53713) | |
738 ("grey82" 53713 53713 53713) | |
739 ("gray83" 54484 54484 54484) | |
740 ("grey83" 54484 54484 54484) | |
741 ("gray84" 54998 54998 54998) | |
742 ("grey84" 54998 54998 54998) | |
743 ("gray85" 55769 55769 55769) | |
744 ("grey85" 55769 55769 55769) | |
745 ("gray86" 56283 56283 56283) | |
746 ("grey86" 56283 56283 56283) | |
747 ("gray87" 57054 57054 57054) | |
748 ("grey87" 57054 57054 57054) | |
749 ("gray88" 57568 57568 57568) | |
750 ("grey88" 57568 57568 57568) | |
751 ("gray89" 58339 58339 58339) | |
752 ("grey89" 58339 58339 58339) | |
753 ("gray90" 58853 58853 58853) | |
754 ("grey90" 58853 58853 58853) | |
755 ("gray91" 59624 59624 59624) | |
756 ("grey91" 59624 59624 59624) | |
757 ("gray92" 60395 60395 60395) | |
758 ("grey92" 60395 60395 60395) | |
759 ("gray93" 60909 60909 60909) | |
760 ("grey93" 60909 60909 60909) | |
761 ("gray94" 61680 61680 61680) | |
762 ("grey94" 61680 61680 61680) | |
763 ("gray95" 62194 62194 62194) | |
764 ("grey95" 62194 62194 62194) | |
765 ("gray96" 62965 62965 62965) | |
766 ("grey96" 62965 62965 62965) | |
767 ("gray97" 63479 63479 63479) | |
768 ("grey97" 63479 63479 63479) | |
769 ("gray98" 64250 64250 64250) | |
770 ("grey98" 64250 64250 64250) | |
771 ("gray99" 64764 64764 64764) | |
772 ("grey99" 64764 64764 64764) | |
773 ("gray100" 65535 65535 65535) | |
774 ("grey100" 65535 65535 65535) | |
775 ("dark grey" 43433 43433 43433) | |
776 ("DarkGrey" 43433 43433 43433) | |
777 ("dark gray" 43433 43433 43433) | |
778 ("DarkGray" 43433 43433 43433) | |
779 ("dark blue" 0 0 35723) | |
780 ("DarkBlue" 0 0 35723) | |
781 ("dark cyan" 0 35723 35723) | |
782 ("DarkCyan" 0 35723 35723) | |
783 ("dark magenta" 35723 0 35723) | |
784 ("DarkMagenta" 35723 0 35723) | |
785 ("dark red" 35723 0 0) | |
786 ("DarkRed" 35723 0 0) | |
787 ("light green" 37008 61166 37008) | |
788 ("LightGreen" 37008 61166 37008)) ) | |
789 | |
790 (defvar hfy-rgb-txt-colour-map nil) | |
791 | |
792 (defvar hfy-rgb-load-path | |
793 (list "/etc/X11" | |
794 (format "/usr/share/emacs/%d.%d/etc" | |
795 emacs-major-version | |
796 emacs-minor-version) | |
797 "/usr/X11R6/lib/X11")) | |
798 | |
799 (defun hfy-rgb-file () | |
800 "Return a fully qualified path to the X11 style rgb.txt file." | |
801 (catch 'rgb-file | |
802 (mapcar | |
803 (lambda (DIR) | |
804 (let ((rgb-file (concat DIR "/rgb.txt"))) | |
805 (if (file-readable-p rgb-file) | |
806 (throw 'rgb-file rgb-file) nil)) ) hfy-rgb-load-path) nil)) | |
807 | |
808 (defconst hfy-rgb-regex | |
809 "^\\s-*\\([0-9]+\\)\\s-+\\([0-9]+\\)\\s-+\\([0-9]+\\)\\s-+\\(.+\\)\\s-*$") | |
810 | |
811 (defun htmlfontify-load-rgb-file (&optional file) | |
812 "Load an X11 style rgb.txt FILE. | |
813 Search `hfy-rgb-load-path' if FILE is not specified. | |
814 Loads the variable `hfy-rgb-txt-colour-map', which is used by | |
815 `hfy-fallback-colour-values'." | |
816 (interactive | |
817 (list | |
818 (read-file-name "rgb.txt \(equivalent\) file: " "" nil t (hfy-rgb-file)))) | |
819 (let ((rgb-buffer nil) | |
820 (end-of-rgb 0) | |
821 (rgb-txt nil) | |
822 (ff 255.0)) | |
823 (if (and (setq rgb-txt (or file (hfy-rgb-file))) | |
824 (file-readable-p rgb-txt)) | |
825 (save-excursion | |
826 (setq rgb-buffer (find-file-noselect rgb-txt 'nowarn)) | |
827 (set-buffer rgb-buffer) | |
828 (goto-char (point-min)) | |
829 (htmlfontify-unload-rgb-file) | |
830 (while (/= end-of-rgb 1) | |
831 (if (looking-at hfy-rgb-regex) | |
832 (setq hfy-rgb-txt-colour-map | |
833 (cons (list (match-string 4) | |
834 (string-to-int (match-string 1)) | |
835 (string-to-int (match-string 2)) | |
836 (string-to-int (match-string 3))) | |
837 hfy-rgb-txt-colour-map)) ) | |
838 (setq end-of-rgb (forward-line))) | |
839 (kill-buffer rgb-buffer)) | |
840 ) | |
841 ) | |
842 ) | |
843 | |
844 (defun htmlfontify-unload-rgb-file () | |
845 (interactive) | |
846 (setq hfy-rgb-txt-colour-map nil)) | |
847 | |
848 (defun hfy-fallback-colour-values (colour-string) | |
849 (cdr (assoc-ignore-case colour-string (or hfy-rgb-txt-colour-map | |
850 hfy-fallback-colour-map))) ) | |
851 | |
852 (provide 'hfy-cmap) | |
853 ;;; hfy-cmap.el ends here | |
854 |