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