1# Orca
2#
3# Copyright 2014 Igalia, S.L.
4#
5# Author: Joanmarie Diggs <jdiggs@igalia.com>
6#
7# This library is free software; you can redistribute it and/or
8# modify it under the terms of the GNU Lesser General Public
9# License as published by the Free Software Foundation; either
10# version 2.1 of the License, or (at your option) any later version.
11#
12# This library is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15# Lesser General Public License for more details.
16#
17# You should have received a copy of the GNU Lesser General Public
18# License along with this library; if not, write to the
19# Free Software Foundation, Inc., Franklin Street, Fifth Floor,
20# Boston MA  02110-1301 USA.
21
22__id__        = "$Id$"
23__version__   = "$Revision$"
24__date__      = "$Date$"
25__copyright__ = "Copyright (c) 2014 Igalia, S.L."
26__license__   = "LGPL"
27
28from .orca_i18n import C_
29
30cssNames = {}
31
32# Translators: This refers to a CSS color name. The name, hex value, and color
33# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
34# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
35cssNames["#f0f8ff"] = C_("color name", "alice blue")
36
37# Translators: This refers to a CSS color name. The name, hex value, and color
38# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
39# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
40cssNames["#faebd7"] = C_("color name", "antique white")
41
42# Translators: This refers to a CSS color name. The name, hex value, and color
43# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
44# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
45cssNames["#7fffd4"] = C_("color name", "aquamarine")
46
47# Translators: This refers to a CSS color name. The name, hex value, and color
48# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
49# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
50cssNames["#f0ffff"] = C_("color name", "azure")
51
52# Translators: This refers to a CSS color name. The name, hex value, and color
53# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
54# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
55cssNames["#f5f5dc"] = C_("color name", "beige")
56
57# Translators: This refers to a CSS color name. The name, hex value, and color
58# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
59# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
60cssNames["#ffe4c4"] = C_("color name", "bisque")
61
62# Translators: This refers to a CSS color name. The name, hex value, and color
63# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
64# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
65cssNames["#000000"] = C_("color name", "black")
66
67# Translators: This refers to a CSS color name. The name, hex value, and color
68# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
69# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
70cssNames["#ffebcd"] = C_("color name", "blanched almond")
71
72# Translators: This refers to a CSS color name. The name, hex value, and color
73# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
74# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
75cssNames["#0000ff"] = C_("color name", "blue")
76
77# Translators: This refers to a CSS color name. The name, hex value, and color
78# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
79# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
80cssNames["#8a2be2"] = C_("color name", "blue violet")
81
82# Translators: This refers to a CSS color name. The name, hex value, and color
83# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
84# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
85cssNames["#a52a2a"] = C_("color name", "brown")
86
87# Translators: This refers to a CSS color name. The name, hex value, and color
88# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
89# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
90cssNames["#deb887"] = C_("color name", "burlywood")
91
92# Translators: This refers to a CSS color name. The name, hex value, and color
93# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
94# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
95cssNames["#5f9ea0"] = C_("color name", "cadet blue")
96
97# Translators: This refers to a CSS color name. The name, hex value, and color
98# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
99# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
100cssNames["#7fff00"] = C_("color name", "chartreuse")
101
102# Translators: This refers to a CSS color name. The name, hex value, and color
103# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
104# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
105cssNames["#d2691e"] = C_("color name", "chocolate")
106
107# Translators: This refers to a CSS color name. The name, hex value, and color
108# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
109# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
110cssNames["#ff7f50"] = C_("color name", "coral")
111
112# Translators: This refers to a CSS color name. The name, hex value, and color
113# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
114# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
115cssNames["#6495ed"] = C_("color name", "cornflower blue")
116
117# Translators: This refers to a CSS color name. The name, hex value, and color
118# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
119# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
120cssNames["#fff8dc"] = C_("color name", "cornsilk")
121
122# Translators: This refers to a CSS color name. The name, hex value, and color
123# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
124# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
125cssNames["#dc143c"] = C_("color name", "crimson")
126
127# Translators: This refers to a CSS color name. The name, hex value, and color
128# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
129# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
130cssNames["#00ffff"] = C_("color name", "cyan")
131
132# Translators: This refers to a CSS color name. The name, hex value, and color
133# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
134# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
135cssNames["#00008b"] = C_("color name", "dark blue")
136
137# Translators: This refers to a CSS color name. The name, hex value, and color
138# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
139# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
140cssNames["#008b8b"] = C_("color name", "dark cyan")
141
142# Translators: This refers to a CSS color name. The name, hex value, and color
143# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
144# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
145cssNames["#b8860b"] = C_("color name", "dark goldenrod")
146
147# Translators: This refers to a CSS color name. The name, hex value, and color
148# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
149# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
150cssNames["#a9a9a9"] = C_("color name", "dark gray")
151
152# Translators: This refers to a CSS color name. The name, hex value, and color
153# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
154# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
155cssNames["#006400"] = C_("color name", "dark green")
156
157# Translators: This refers to a CSS color name. The name, hex value, and color
158# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
159# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
160cssNames["#bdb76b"] = C_("color name", "dark khaki")
161
162# Translators: This refers to a CSS color name. The name, hex value, and color
163# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
164# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
165cssNames["#8b008b"] = C_("color name", "dark magenta")
166
167# Translators: This refers to a CSS color name. The name, hex value, and color
168# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
169# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
170cssNames["#556b2f"] = C_("color name", "dark olive green")
171
172# Translators: This refers to a CSS color name. The name, hex value, and color
173# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
174# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
175cssNames["#ff8c00"] = C_("color name", "dark orange")
176
177# Translators: This refers to a CSS color name. The name, hex value, and color
178# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
179# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
180cssNames["#9932cc"] = C_("color name", "dark orchid")
181
182# Translators: This refers to a CSS color name. The name, hex value, and color
183# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
184# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
185cssNames["#8b0000"] = C_("color name", "dark red")
186
187# Translators: This refers to a CSS color name. The name, hex value, and color
188# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
189# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
190cssNames["#e9967a"] = C_("color name", "dark salmon")
191
192# Translators: This refers to a CSS color name. The name, hex value, and color
193# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
194# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
195cssNames["#8fbc8f"] = C_("color name", "dark sea green")
196
197# Translators: This refers to a CSS color name. The name, hex value, and color
198# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
199# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
200cssNames["#483d8b"] = C_("color name", "dark slate blue")
201
202# Translators: This refers to a CSS color name. The name, hex value, and color
203# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
204# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
205cssNames["#2f4f4f"] = C_("color name", "dark slate gray")
206
207# Translators: This refers to a CSS color name. The name, hex value, and color
208# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
209# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
210cssNames["#00ced1"] = C_("color name", "dark turquoise")
211
212# Translators: This refers to a CSS color name. The name, hex value, and color
213# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
214# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
215cssNames["#9400d3"] = C_("color name", "dark violet")
216
217# Translators: This refers to a CSS color name. The name, hex value, and color
218# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
219# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
220cssNames["#ff1493"] = C_("color name", "deep pink")
221
222# Translators: This refers to a CSS color name. The name, hex value, and color
223# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
224# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
225cssNames["#00bfff"] = C_("color name", "deep sky blue")
226
227# Translators: This refers to a CSS color name. The name, hex value, and color
228# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
229# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
230cssNames["#696969"] = C_("color name", "dim gray")
231
232# Translators: This refers to a CSS color name. The name, hex value, and color
233# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
234# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
235cssNames["#1e90ff"] = C_("color name", "dodger blue")
236
237# Translators: This refers to a CSS color name. The name, hex value, and color
238# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
239# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
240cssNames["#b22222"] = C_("color name", "fire brick")
241
242# Translators: This refers to a CSS color name. The name, hex value, and color
243# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
244# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
245cssNames["#fffaf0"] = C_("color name", "floral white")
246
247# Translators: This refers to a CSS color name. The name, hex value, and color
248# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
249# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
250cssNames["#228b22"] = C_("color name", "forest green")
251
252# Translators: This refers to a CSS color name. The name, hex value, and color
253# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
254# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
255cssNames["#ff00ff"] = C_("color name", "fuchsia")
256
257# Translators: This refers to a CSS color name. The name, hex value, and color
258# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
259# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
260cssNames["#dcdcdc"] = C_("color name", "gainsboro")
261
262# Translators: This refers to a CSS color name. The name, hex value, and color
263# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
264# http://en.wikipedia.org/wiki/Web_colors#HTML_color_names.
265cssNames["#f8f8ff"] = C_("color name", "ghost white")
266
267# Translators: This refers to a CSS color name. The name, hex value, and color
268# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
269# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
270cssNames["#ffd700"] = C_("color name", "gold")
271
272# Translators: This refers to a CSS color name. The name, hex value, and color
273# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
274# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
275cssNames["#daa520"] = C_("color name", "goldenrod")
276
277# Translators: This refers to a CSS color name. The name, hex value, and color
278# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
279# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
280cssNames["#808080"] = C_("color name", "gray")
281
282# Translators: This refers to a CSS color name. The name, hex value, and color
283# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
284# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
285cssNames["#008000"] = C_("color name", "green")
286
287# Translators: This refers to a CSS color name. The name, hex value, and color
288# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
289# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
290cssNames["#adff2f"] = C_("color name", "green yellow")
291
292# Translators: This refers to a CSS color name. The name, hex value, and color
293# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
294# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
295cssNames["#f0fff0"] = C_("color name", "honeydew")
296
297# Translators: This refers to a CSS color name. The name, hex value, and color
298# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
299# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
300cssNames["#ff69b4"] = C_("color name", "hot pink")
301
302# Translators: This refers to a CSS color name. The name, hex value, and color
303# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
304# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
305cssNames["#cd5c5c"] = C_("color name", "indian red")
306
307# Translators: This refers to a CSS color name. The name, hex value, and color
308# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
309# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
310cssNames["#4b0082"] = C_("color name", "indigo")
311
312# Translators: This refers to a CSS color name. The name, hex value, and color
313# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
314# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
315cssNames["#fffff0"] = C_("color name", "ivory")
316
317# Translators: This refers to a CSS color name. The name, hex value, and color
318# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
319# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
320cssNames["#f0e68c"] = C_("color name", "khaki")
321
322# Translators: This refers to a CSS color name. The name, hex value, and color
323# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
324# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
325cssNames["#e6e6fa"] = C_("color name", "lavender")
326
327# Translators: This refers to a CSS color name. The name, hex value, and color
328# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
329# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
330cssNames["#fff0f5"] = C_("color name", "lavender blush")
331
332# Translators: This refers to a CSS color name. The name, hex value, and color
333# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
334# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
335cssNames["#7cfc00"] = C_("color name", "lawn green")
336
337# Translators: This refers to a CSS color name. The name, hex value, and color
338# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
339# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
340cssNames["#fffacd"] = C_("color name", "lemon chiffon")
341
342# Translators: This refers to a CSS color name. The name, hex value, and color
343# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
344# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
345cssNames["#add8e6"] = C_("color name", "light blue")
346
347# Translators: This refers to a CSS color name. The name, hex value, and color
348# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
349# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
350cssNames["#f08080"] = C_("color name", "light coral")
351
352# Translators: This refers to a CSS color name. The name, hex value, and color
353# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
354# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
355cssNames["#e0ffff"] = C_("color name", "light cyan")
356
357# Translators: This refers to a CSS color name. The name, hex value, and color
358# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
359# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
360cssNames["#fafad2"] = C_("color name", "light goldenrod yellow")
361
362# Translators: This refers to a CSS color name. The name, hex value, and color
363# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
364# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
365cssNames["#d3d3d3"] = C_("color name", "light gray")
366
367# Translators: This refers to a CSS color name. The name, hex value, and color
368# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
369# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
370cssNames["#90ee90"] = C_("color name", "light green")
371
372# Translators: This refers to a CSS color name. The name, hex value, and color
373# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
374# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
375cssNames["#ffb6c1"] = C_("color name", "light pink")
376
377# Translators: This refers to a CSS color name. The name, hex value, and color
378# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
379# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
380cssNames["#ffa07a"] = C_("color name", "light salmon")
381
382# Translators: This refers to a CSS color name. The name, hex value, and color
383# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
384# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
385cssNames["#20b2aa"] = C_("color name", "light sea green")
386
387# Translators: This refers to a CSS color name. The name, hex value, and color
388# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
389# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
390cssNames["#87cefa"] = C_("color name", "light sky blue")
391
392# Translators: This refers to a CSS color name. The name, hex value, and color
393# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
394# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
395cssNames["#778899"] = C_("color name", "light slate gray")
396
397# Translators: This refers to a CSS color name. The name, hex value, and color
398# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
399# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
400cssNames["#b0c4de"] = C_("color name", "light steel blue")
401
402# Translators: This refers to a CSS color name. The name, hex value, and color
403# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
404# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
405cssNames["#ffffe0"] = C_("color name", "light yellow")
406
407# Translators: This refers to a CSS color name. The name, hex value, and color
408# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
409# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
410cssNames["#00ff00"] = C_("color name", "lime")
411
412# Translators: This refers to a CSS color name. The name, hex value, and color
413# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
414# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
415cssNames["#32cd32"] = C_("color name", "lime green")
416
417# Translators: This refers to a CSS color name. The name, hex value, and color
418# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
419# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
420cssNames["#faf0e6"] = C_("color name", "linen")
421
422# Translators: This refers to a CSS color name. The name, hex value, and color
423# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
424# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
425cssNames["#ff00ff"] = C_("color name", "magenta")
426
427# Translators: This refers to a CSS color name. The name, hex value, and color
428# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
429# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
430cssNames["#800000"] = C_("color name", "maroon")
431
432# Translators: This refers to a CSS color name. The name, hex value, and color
433# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
434# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
435cssNames["#66cdaa"] = C_("color name", "medium aquamarine")
436
437# Translators: This refers to a CSS color name. The name, hex value, and color
438# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
439# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
440cssNames["#0000cd"] = C_("color name", "medium blue")
441
442# Translators: This refers to a CSS color name. The name, hex value, and color
443# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
444# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
445cssNames["#ba55d3"] = C_("color name", "medium orchid")
446
447# Translators: This refers to a CSS color name. The name, hex value, and color
448# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
449# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
450cssNames["#9370d8"] = C_("color name", "medium purple")
451
452# Translators: This refers to a CSS color name. The name, hex value, and color
453# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
454# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
455cssNames["#3cb371"] = C_("color name", "medium sea green")
456
457# Translators: This refers to a CSS color name. The name, hex value, and color
458# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
459# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
460cssNames["#7b68ee"] = C_("color name", "medium slate blue")
461
462# Translators: This refers to a CSS color name. The name, hex value, and color
463# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
464# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
465cssNames["#00fa9a"] = C_("color name", "medium spring green")
466
467# Translators: This refers to a CSS color name. The name, hex value, and color
468# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
469# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
470cssNames["#48d1cc"] = C_("color name", "medium turquoise")
471
472# Translators: This refers to a CSS color name. The name, hex value, and color
473# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
474# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
475cssNames["#c71585"] = C_("color name", "medium violet red")
476
477# Translators: This refers to a CSS color name. The name, hex value, and color
478# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
479# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
480cssNames["#191970"] = C_("color name", "midnight blue")
481
482# Translators: This refers to a CSS color name. The name, hex value, and color
483# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
484# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
485cssNames["#f5fffa"] = C_("color name", "mint cream")
486
487# Translators: This refers to a CSS color name. The name, hex value, and color
488# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
489# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
490cssNames["#ffe4e1"] = C_("color name", "misty rose")
491
492# Translators: This refers to a CSS color name. The name, hex value, and color
493# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
494# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
495cssNames["#ffe4b5"] = C_("color name", "moccasin")
496
497# Translators: This refers to a CSS color name. The name, hex value, and color
498# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
499# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
500cssNames["#ffdead"] = C_("color name", "navajo white")
501
502# Translators: This refers to a CSS color name. The name, hex value, and color
503# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
504# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
505cssNames["#000080"] = C_("color name", "navy")
506
507# Translators: This refers to a CSS color name. The name, hex value, and color
508# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
509# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
510cssNames["#fdf5e6"] = C_("color name", "old lace")
511
512# Translators: This refers to a CSS color name. The name, hex value, and color
513# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
514# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
515cssNames["#808000"] = C_("color name", "olive")
516
517# Translators: This refers to a CSS color name. The name, hex value, and color
518# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
519# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
520cssNames["#6b8e23"] = C_("color name", "olive drab")
521
522# Translators: This refers to a CSS color name. The name, hex value, and color
523# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
524# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
525cssNames["#ffa500"] = C_("color name", "orange")
526
527# Translators: This refers to a CSS color name. The name, hex value, and color
528# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
529# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
530cssNames["#ff4500"] = C_("color name", "orange red")
531
532# Translators: This refers to a CSS color name. The name, hex value, and color
533# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
534# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
535cssNames["#da70d6"] = C_("color name", "orchid")
536
537# Translators: This refers to a CSS color name. The name, hex value, and color
538# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
539# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
540cssNames["#eee8aa"] = C_("color name", "pale goldenrod")
541
542# Translators: This refers to a CSS color name. The name, hex value, and color
543# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
544# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
545cssNames["#98fb98"] = C_("color name", "pale green")
546
547# Translators: This refers to a CSS color name. The name, hex value, and color
548# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
549# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
550cssNames["#afeeee"] = C_("color name", "pale turquoise")
551
552# Translators: This refers to a CSS color name. The name, hex value, and color
553# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
554# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
555cssNames["#d87093"] = C_("color name", "pale violet red")
556
557# Translators: This refers to a CSS color name. The name, hex value, and color
558# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
559# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
560cssNames["#ffefd5"] = C_("color name", "papaya whip")
561
562# Translators: This refers to a CSS color name. The name, hex value, and color
563# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
564# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
565cssNames["#ffdab9"] = C_("color name", "peach puff")
566
567# Translators: This refers to a CSS color name. The name, hex value, and color
568# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
569# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
570cssNames["#cd853f"] = C_("color name", "peru")
571
572# Translators: This refers to a CSS color name. The name, hex value, and color
573# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
574# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
575cssNames["#ffc0cb"] = C_("color name", "pink")
576
577# Translators: This refers to a CSS color name. The name, hex value, and color
578# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
579# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
580cssNames["#dda0dd"] = C_("color name", "plum")
581
582# Translators: This refers to a CSS color name. The name, hex value, and color
583# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
584# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
585cssNames["#b0e0e6"] = C_("color name", "powder blue")
586
587# Translators: This refers to a CSS color name. The name, hex value, and color
588# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
589# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
590cssNames["#800080"] = C_("color name", "purple")
591
592# Translators: This refers to a CSS color name. The name, hex value, and color
593# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
594# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
595cssNames["#ff0000"] = C_("color name", "red")
596
597# Translators: This refers to a CSS color name. The name, hex value, and color
598# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
599# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
600cssNames["#bc8f8f"] = C_("color name", "rosy brown")
601
602# Translators: This refers to a CSS color name. The name, hex value, and color
603# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
604# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
605cssNames["#4169e1"] = C_("color name", "royal blue")
606
607# Translators: This refers to a CSS color name. The name, hex value, and color
608# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
609# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
610cssNames["#8b4513"] = C_("color name", "saddle brown")
611
612# Translators: This refers to a CSS color name. The name, hex value, and color
613# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
614# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
615cssNames["#fa8072"] = C_("color name", "salmon")
616
617# Translators: This refers to a CSS color name. The name, hex value, and color
618# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
619# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
620cssNames["#f4a460"] = C_("color name", "sandy brown")
621
622# Translators: This refers to a CSS color name. The name, hex value, and color
623# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
624# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
625cssNames["#2e8b57"] = C_("color name", "sea green")
626
627# Translators: This refers to a CSS color name. The name, hex value, and color
628# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
629# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
630cssNames["#fff5ee"] = C_("color name", "seashell")
631
632# Translators: This refers to a CSS color name. The name, hex value, and color
633# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
634# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
635cssNames["#a0522d"] = C_("color name", "sienna")
636
637# Translators: This refers to a CSS color name. The name, hex value, and color
638# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
639# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
640cssNames["#c0c0c0"] = C_("color name", "silver")
641
642# Translators: This refers to a CSS color name. The name, hex value, and color
643# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
644# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
645cssNames["#87ceeb"] = C_("color name", "sky blue")
646
647# Translators: This refers to a CSS color name. The name, hex value, and color
648# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
649# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
650cssNames["#6a5acd"] = C_("color name", "slate blue")
651
652# Translators: This refers to a CSS color name. The name, hex value, and color
653# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
654# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
655cssNames["#708090"] = C_("color name", "slate gray")
656
657# Translators: This refers to a CSS color name. The name, hex value, and color
658# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
659# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
660cssNames["#fffafa"] = C_("color name", "snow")
661
662# Translators: This refers to a CSS color name. The name, hex value, and color
663# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
664# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
665cssNames["#00ff7f"] = C_("color name", "spring green")
666
667# Translators: This refers to a CSS color name. The name, hex value, and color
668# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
669# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
670cssNames["#4682b4"] = C_("color name", "steel blue")
671
672# Translators: This refers to a CSS color name. The name, hex value, and color
673# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
674# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
675cssNames["#d2b48c"] = C_("color name", "tan")
676
677# Translators: This refers to a CSS color name. The name, hex value, and color
678# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
679# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
680cssNames["#008080"] = C_("color name", "teal")
681
682# Translators: This refers to a CSS color name. The name, hex value, and color
683# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
684# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
685cssNames["#d8bfd8"] = C_("color name", "thistle")
686
687# Translators: This refers to a CSS color name. The name, hex value, and color
688# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
689# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
690cssNames["#ff6347"] = C_("color name", "tomato")
691
692# Translators: This refers to a CSS color name. The name, hex value, and color
693# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
694# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
695cssNames["#40e0d0"] = C_("color name", "turquoise")
696
697# Translators: This refers to a CSS color name. The name, hex value, and color
698# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
699# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
700cssNames["#ee82ee"] = C_("color name", "violet")
701
702# Translators: This refers to a CSS color name. The name, hex value, and color
703# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
704# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
705cssNames["#f5deb3"] = C_("color name", "wheat")
706
707# Translators: This refers to a CSS color name. The name, hex value, and color
708# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
709# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
710cssNames["#ffffff"] = C_("color name", "white")
711
712# Translators: This refers to a CSS color name. The name, hex value, and color
713# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
714# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
715cssNames["#f5f5f5"] = C_("color name", "white smoke")
716
717# Translators: This refers to a CSS color name. The name, hex value, and color
718# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
719# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
720cssNames["#ffff00"] = C_("color name", "yellow")
721
722# Translators: This refers to a CSS color name. The name, hex value, and color
723# can be found at http://www.w3schools.com/cssref/css_colornames.asp and at
724# http://en.wikipedia.org/wiki/Web_colors#X11_color_names.
725cssNames["#9acd32"] = C_("color name", "yellow green")
726
727def rgbToName(red, green, blue):
728    """Returns the localized name for the RGB value."""
729
730    hexString = '#%02x%02x%02x' % (red, green, blue)
731    cssName = cssNames.get(hexString)
732    if cssName:
733        return cssName
734
735    # Find the closest match.
736    colors = {}
737    for key, value in cssNames.items():
738        r, g, b = [int(s, 16) for s in (key[1:3], key[3:5], key[5:7])]
739        rd = abs(r - red) ** 2
740        gd = abs(g - green) ** 2
741        bd = abs(b - blue) ** 2
742        colors[(rd + gd + bd)] = key
743
744    # Hold black and white to higher standards than the other close colors.
745    d1 = min(colors.keys())
746    match = colors.pop(d1)
747    if not match in ["#000000", "#ffffff"]:
748        return cssNames.get(match)
749
750    d2 = min(colors.keys())
751    if d2 - d1 < d1:
752        match = colors.pop(d2)
753
754    return cssNames.get(match)
755