Colour Names in Austrian and English?! - Page 1
Forum section: electronics / general

author: Lord of nothing
author_rank: Super Contributor
timestamp: December 06, 2020, 09:18:12 am
content: HiMaybe some know:https://en.wikipedia.org/wiki/Web_colors#Extended_colorsWhat I looking for is a way to combine multiple different Data into one DB.Sadly I must deal often with Multi Language Contend. So one problem is the Colour (Names) of some Product. I need to convert the colour in a rough Main Colour. So when someone looking for a Red Cable all different Red shades are include.Where could I find Austrian Name for the Hex Values?Thanks

author: Nominal Animal
author_rank: Super Contributor
timestamp: December 06, 2020, 05:49:53 pm
content: Obligatory XKCD.I thought the official language of Austria was German?A quick web search foundthis. Hope this helps..

author: Lord of nothing
author_rank: Super Contributor
timestamp: December 06, 2020, 06:38:49 pm
content: its DE-AT and yes we have our own Dictionary:https://en.wikipedia.org/wiki/%C3%96sterreichisches_W%C3%B6rterbuchBeside of that there are the English names for the Hex Values. Well I would like have the Austrian to but I could not find them?!

author: golden_labels
author_rank: Super Contributor
timestamp: December 06, 2020, 07:52:33 pm
content: Just store multiple keys with the same color value.On to of that you may also associate each entry with the relevant locale identifier. That has a few benefits:If the UI ever presents the user with a list of available colors, you must somehow avoid duplicates from multiple locales.Likely you will need a color to name mapping and those are locale-dependent.If the user searches for a color and finds one with a locale different than their own, it may be a false positive. It may be worth somehow separating/marking those non-exact results.

author: Nominal Animal
author_rank: Super Contributor
timestamp: December 06, 2020, 08:26:46 pm
content: Quote from: Lord of nothing on December 06, 2020, 06:38:49 pmRight; I didn't realize that, sorry.Here's the English-German table in pipe-separated format stolen fromthe link I posted:Code:aliceblue|eisfarben|240,248,255|#f0f8ffantiquewhite|Antikweiß|250,235,215|#faebd7aqua|Wasser (aqua = cyan)|0,255,255|#00ffffaquamarine|Aquamarinblau|127,255,212|#7fffd4azure|Himmelblau|240,255,255|#f0ffffbeige|Beige|245,245,220|#f5f5dcbisque|Biskuit|255,228,196|#ffe4c4black|Schwarz|0,0,0|#000000blanchedalmond|Mandelweiß|255,235,205|#ffebcdblue|Blau|0,0,255|#0000ffblueviolet|Blauviolett|138,43,226|#8a2be2brown|Braun|165,42,42|#a52a2aburlywood|Gelbbraun|222,184,135|#deb887cadetblue|Kadettenblau|95,158,160|#5f9ea0chartreuse|Hellgrün|127,255,0|#7fff00chocolate|Schokolade|210,105,30|#d2691ecoral|Koralle|255,127,80|#ff7f50cornflowerblue|Kornblumenblau|100,149,237|#6495edcornsilk|Mais|255,248,220|#fff8dccrimson|Karmesinrot|220,20,60|#dc143ccyan|Türkis (cyan = aqua)|0,255,255|#00ffffdarkblue|Dunkelblau|0,0,139|#00008bdarkcyan|Dunkeltürkis|0,139,139|#008b8bdarkgoldenrod|dunkle Goldrutenfarbe|184,134,11|#b8860bdarkgreen|Dunkelgrün|0,100,0|#006400darkgrey|Dunkelgrau|169,169,169|#a9a9a9darkkhaki|Dunkelkhaki|189,183,107|#bdb76bdarkmagenta|Dunkelmagenta|139,0,139|#8b008bdarkolivegreen|dunkles Olivgrün|85,107,47|#556b2fdarkorange|dunkles Orange|255,140,0|#ff8c00darkorchid|dubkle Orchidee|153,50,204|#9932ccdarkred|Dunkelrot|139,0,0|#8b0000darksalmon|dunkle Lachsfarbe|233,150,122|#e9967adarkseagreen|dunkles Seegrün|143,188,143|#8fbc8fdarkslateblue|dunkles Schieferblau|72,61,139|#483d8bdarkslategrey|dunkles Schiefergrau|47,79,79|#2f4f4fdarkturquoise|Dunkeltürkis|0,206,209|#00ced1darkviolet|Dunkelvilolett|148,0,211|#9400d3deeppink|Tiefrosa|255,20,147|#ff1493deepskyblue|tiefes Himmelblau|0,191,255|#00bfffdimgrey|Dunkelgrau|105,105,105|#696969dodgerblue|Persenningblau|30,144,255|#1e90fffirebrick|Backstein|178,34,34|#b22222floralwhite|Blütenweiß|255,250,240|#fffaf0forestgreen|Waldgrün|34,139,34|#228b22fuchsia|Fuchsie (fuchsia = magenta)|255,0,255|#ff00ffgainsboro|Gainsboro|220,220,220|#dcdcdcghostwhite|Geisterweiß|248,248,255|#f8f8ffgold|Gold|255,215,0|#ffd700goldenrod|Goldrute|218,165,32|#daa520gray|Grau|128,128,128|808080green|Grün|0,128,0|#008000greenyellow|Grüngelb|173,255,47|#adff2fgrey|Grau|128,128,128|808080honeydew|Honigmelone|240,255,240|#f0fff0hotpink|leuchtendes Rosa|255,105,180|#ff69b4indianred|Indischrot|205,92,92|#cd5c5cindigo|Indigo|75,0,130|#4b0082ivory|Elfenbein|255,255,240|#fffff0khaki|staubfarben|240,230,140|#f0e68clavender|Lavendel|230,230,250|#e6e6falavenderblush|Lavendelrosa|255,240,245|#fff0f5lawngreen|Rasengrün|124,252,0|#7cfc00lemonchiffon|Chiffongelb|255,250,205|#fffacdlightblue|Hellblau|173,216,230|#add8e6lightcoral|helles Korallenrot|240,128,128|#f08080lightcyan|helles Cyan|224,255,255|#e0fffflightgoldenrodyellow|helles Goldrutengelb|250,250,210|#fafad2lightgray|Hellgrau|211,211,211|#d3d3d3lightgreen|Hellgrün|144,238,144|#90ee90lightpink|Hellrosa|255,182,193|#ffb6c1lightsalmon|helle Lachsfarbe|255,160,122|#ffa07alightseagreen|helles Seegrün|32,178,170|#20b2aalightskyblue|helles Himmelblau|135,206,250|#87cefalightslategrey|helles Schiefergrau|119,136,153|#778899lightsteelblue|helles Stahlblau|176,196,222|#b0c4delightyellow|Hellgelb|255,255,224|#ffffe0lime|Limone|0,255,0|#00ff00limegreen|Limonengrün|50,205,50|#32cd32linen|Leinen|250,240,230|#faf0e6magenta|Magenta (magenta = fuchsia)|255,0,255|#ff00ffmaroon|Kastanie|128,0,0|#800000mediumaquamarine|mittleres Aquamarin|102,205,170|#66cdaamediumblue|mittleres Blau|0,0,205|#0000cdmediumorchid|mittlere Orchedee|186,85,211|#ba55d3mediumpurple|mittleres Violett|147,112,219|#9370dbmediumseagreen|mittleres Seegrün|60,179,113|#3cb371mediumslateblue|mittleres Schieferblau|#,104,238|#7b68eemediumspringgreen|mittleres Frühlingsgrün|0,250,154|#00fa9amediumturquoise|mittlere Türkis|72,209,204|#48d1ccmediumvioletred|mittleres Violettrot|199,21,133|#c71585midnightblue|Mitternachtsblau|25,25,112|#191970mintcream|cremige Minze|245,255,250|#f5fffamistyrose|altrosa|255,228,225|#ffe4e1moccasin|Mokassin|255,228,181|#ffe4b5navajowhite|Navajoweiß|255,222,173|#ffdeadnavy|Marinenblau|0,0,128|#000080oldlace|alte Spitze|253,245,230|#fdf5e6olive|Olivgrün|128,128,0|#808000olivedrab|Olivgraubraun|107,142,35|#6b8e23orange|Orange|255,165,0|#ffa500orangered|Orangerot|255,69,0|#ff4500orchid|Orchidee|218,112,214|#da70d6palegoldenrod|blasse Goldrutenfarbe|238,232,170|#eee8aapalegreen|Blassgrün|152,251,152|#98fb98paleturquoise|Blasstürkis|175,238,238|#afeeeepalevioletred|blasses Violettrot|219,112,147|#db7093papayawhip|Papayacreme|255,239,213|#ffefd5peachpuff|Pfirsich|255,218,185|#ffdab9peru|Peru|205,133,63|#cd853fpink|Rosa|255,192,203|#ffc0cbplum|Pflaume|221,160,221|#dda0ddpowderblue|Taubenblau|176,224,230|#b0e0e6purple|Violett|128,0,128|#800080red|Rot|255,0,0|#ff0000rosybrown|rosiges Braun|188,143,143|#bc8f8froyalblue|Königsblau|65,105,225|#4169e1saddlebrown|Sattelbraun|139,69,19|#8b4513salmon|lachsfarben|250,128,114|#fa8072sandybrown|Sandbraun|244,164,96|#f4a460seagreen|Seegrün|46,139,87|#2e8b57seashell|Muschel|255,245,238|#fff5eesienna|Siennaerde|160,82,45|#a0522dsilver|Silber|192,192,192|#c0c0c0skyblue|Himmelblau|135,206,235|#87ceebslateblue|Schieferblau|106,90,205|#6a5acdslategrey|Schiefergrau|112,128,144|#708090snow|Schneeweiß|255,250,250|#fffafaspringgreen|Frühlingsgrün|0,255,127|#00ff7fsteelblue|Stahlblau|70,130,180|#4682b4tan|hautfarben|210,180,140|#d2b48cteal|Krickentengrün|0,128,128|#008080thistle|Distel|216,191,216|#d8bfd8tomato|Tomate|255,99,71|#ff6347turquoise|Türkis|64,224,208|#40e0d0violet|Veilchen|238,130,238|#ee82eewheat|Weizen|245,222,179|#f5deb3white|Weiß|255,255,255|#ffffffwhitesmoke|rauchfarben|245,245,245|#f5f5f5yellow|Gelb|255,255,0|#ffff00yellowgreen|Gelbgrün|154,205,50|#9acd32Personally, I like to do a "normalization" on the input first, converting variants like üäö -> uao and all to lower case, before doing a match. From the above, you'd havewhite=#fffffffor English, andweiss=#ffffff(plus perhapsweisz=#ffffff) for German, to compare the "normalized" inputs to. While it isn't"proper", it is the best way I've found for name matching to work for us humans.I haven't found a similar list for Austrian. Is there an online German-Austrian or English-Austrian dictionary you could scrape the color names?

author: indeterminatus
author_rank: Contributor
timestamp: December 06, 2020, 08:57:03 pm
content: Assuming that it's just the display values you are looking for, I'd go with the German ones, I wouldn't know of any "official" names specific to us Austrians (but hey, if someone jumps in, I'm eager to learn about them as well).

author: Nominal Animal
author_rank: Super Contributor
timestamp: December 06, 2020, 10:15:13 pm
content: If one wants to do the inverse, i.e. find the best matching human-readable name for a color specified as RGB components, donotuse RGB with Euclidean distance squared, i.e. (R-r)2+(G-g)2+(B-b)2, as a similarity measure. It behaves poorly. See e.g Wikipedia article oncolor differencefor details.Because we do not have color calibration information (i.e., information enough to convert to CIELAB or derivatives), using thelossless conversion from RGB to YCbCrlike JPEG uses, and then Euclidean distance squared in Y, Cb, and Cr coordinates, is already much better.If we assume RGB=sRGB – and I think we should, but others might disagree! –, wecan convert to CIEXYZ, and from there toCIELAB(and use Euclidean distance squared in CIELAB color coordinates for the similarity measure), or if you have graphics artists etc. as clients, toCIECAM02. (When, not if, they complain, you have a standard reference they can rely on to describe the reasoning.)You only need to convert the known color names' once, and each RGB color to be found, so this is really not much computation at all.When you have dozens or more colors, this really does yield visually much better matches.

author: AntiProtonBoy
author_rank: Frequent Contributor
timestamp: December 06, 2020, 10:25:06 pm
content: Instead of dealing with complicated CIE colour transforms, why not convert colours to HSL and classify colours based on Hue?

author: Nominal Animal
author_rank: Super Contributor
timestamp: December 06, 2020, 10:40:24 pm
content: Quote from: AntiProtonBoy on December 06, 2020, 10:25:06 pmThat won't differentiate "dark" and "light" variants of the same color, for example "brown" and "orange" (having the same hue coordinate).The conversion from RGB issimple, though, just a bit more complex than between RGB and YCbCr.I'm not exactly sure how good results one would get by using Euclidean distance squared in HSL, compared to same in say YCbCr (which is even simpler to convert to/from RGB than HSL).

author: Lord of nothing
author_rank: Super Contributor
timestamp: December 06, 2020, 10:43:22 pm
content: In my case I want to read in maybe when I know more about Python the hole List from my IT Distributor and write my own little GUI for that Data with better search. The Colour could be in German (Austrian) and in English. Now I must search for both terms. Some Company think the must be fancy and not name for example an Ethernet Cable Blue the maybe call them "Sky" or a Network Rack is not Black nnoooo its Graphite.98% would call them Black but a Search for Black dont show anythink up. The same for light Colour there could be many ways to call something Gray.I found a Cable who called "gruen" who is with a "ue" instead of a "ü" (who is correct) and mean green. The chance to find that with just typing the Colour Name is quite 0...The same for the Network Cable the different type of Shield like FTP, UTP,...Sometimes the use a "/" or a "-" and so on and on and on...There are many thinks who I could do when I read a DB into "my" (upcoming) System and I must do some good scripting to "fix" the Data in the way to get an Output who I can use. Currently the Data are...

author: AntiProtonBoy
author_rank: Frequent Contributor
timestamp: December 06, 2020, 11:14:45 pm
content: Quote from: Nominal Animal on December 06, 2020, 10:40:24 pmYou could extend the aforementioned hue check to include lightness as well. This all depends on the problem domain and what you're trying to solve in the end.What OP is trying to solve seems like a colour quantisation problem, so I would probably try to use a different approach than simple colour comparison.

author: Nominal Animal
author_rank: Super Contributor
timestamp: December 06, 2020, 11:23:15 pm
content: Quote from: Lord of nothing on December 06, 2020, 10:43:22 pmIn that case, may I suggest that instead ofmappingthe color or surface material, youcategorizeit?That is, you'd have a few, say a dozen or so, but not much more, basic categories likeblack,white,gray,red,green,blue,yellow,brown,purple,metallic,bright,dark,matte,gloss. Instead of trying to fit the color/surface into one of these categories, just check all ones that do apply. (It would be important to choose the categories well, to match the typical use cases. For example, for cabling, I'd first do some research on which colors are commonly used.)This way, if someone is looking for a specific color, they reduce the search set by limiting the view to those categories only.You could add a word search/limit to the surface/color description, using the sort of "normalized" comparison I mentioned (simplifying the text to say latin alphabet in lower case for the comparison, with the normalization producing one or more possible variants – those can be precomputed in the database).This will not give just the exact matches to the user, but the descriptions aren't exact either. (We really don't know what "graphite" means, because graphite exists in both glossy and matte forms, for example.) The idea of this categorization is to easily reduce the set of matches to a shorter list the human can check.You could do what Randall Munroe did, and "outsource" this categorization work to other people, if it is too much for yourself. Write a web interface where the data entries are only the descriptions, and one can either Skip, or tick the applicable category checkboxes and click Ok. Have it provide a random un-categorized entry. Put it behind a password, and hire someone to fill in the categories, or do it yourself when you're bored.

author: AntiProtonBoy
author_rank: Frequent Contributor
timestamp: December 06, 2020, 11:43:43 pm
content: Lord of nothing, here is what I would do:1. First, I would research and collect as much colour names and their associated RGB values as possible. Below is a few resources to start off with. I'd also get colour names from paint manufacturers, like Dulux, etc. Make-up and fashion catalogues are also a great source of colour names.https://simple.wikipedia.org/wiki/List_of_colorshttps://simple.wikipedia.org/wiki/Web_colorhttps://www.eggradients.com/color-nameshttps://www.ncl.ucar.edu/Applications/Scripts/rgb.txthttps://www.ncl.ucar.edu/Document/Graphics/named_colors.shtml2. Tabulate those colour names and their RGB values in a database. Translate those colours names from english to german as required. Google translate will cover most cases, but you'll have to manually check to make sure the translation actually make sense. Quite doable for ~1000 colours, and you only have to do it once.3. Choose a bunch of "main" colours you want as a primary classification for tagging your products. That is, the "main" colours you'll associate with each product meta-data, and you'll use to check during search.4. Now it's time to implement your colour matching/classification algorithm: The idea is to classify all the colour names in the database to the chosen "main" colours you picked in the earlier step. This is a well researched problem and is often seen in image processing, where true colour images are converted to paletted images. The process is often called Color Reduction or Image Quantisation. There are a few classification algorithms out there, such as Median Cut, Optimised Octree Quantization, and Vector Quantisation. The Vector Quantisation method gives you probably the best results. Whatever method you choose, you can tag each named colour in the database with the classified "main" colour.5. As for handling the usage of umlauts, you can easily run a separate spell checker filter on the input. In fact, I would constrain colour input names to whatever names you have in the database by giving users real-time suggestions or hints has they type. The best way to sanitise inputs is to constrain users to sensible values from the very onset.

author: Lord of nothing
author_rank: Super Contributor
timestamp: December 07, 2020, 12:22:05 am
content: 1) I must "convert" a colour "name" into a Value who is the same in all languages.2) When I have the Value I could put them into a Group like here:https://en.wikipedia.org/wiki/Web_colors#Extended_colors

author: AntiProtonBoy
author_rank: Frequent Contributor
timestamp: December 07, 2020, 02:37:56 am
content: Yes? Steps above does just that?

author: golden_labels
author_rank: Super Contributor
timestamp: December 07, 2020, 04:01:50 pm
content: Quote from: Lord of nothing on December 07, 2020, 12:22:05 amWhat I have provided above does exactly that. And more.Quote from: Lord of nothing on December 07, 2020, 12:22:05 amCreate another table which maps colors to groups?Theoretically you could divide the color space into convex subspaces with assigned group names and then find in which one a color lies. But that is unneccessarily complex. You would probably have to enter more coördinates into that structure than the number of colors you want to use. Semiautomatic classification like that may be tricky in some cases too. A simple mapping will do.

author: semonbright
author_rank: Newbie
timestamp: May 30, 2022, 04:58:57 am
content: Here is a cool little tool if you want to create your own and don't know the code.....color code

author: golden_labels
author_rank: Super Contributor
timestamp: May 30, 2022, 02:40:31 pm
content: semonbright:Can you explain, how is that relevant to OP’s question?

author: gf
author_rank: Super Contributor
timestamp: June 02, 2022, 07:24:13 am
content: The major problem I see is that there exists no single, unique standard for color names.There exist a couple of commonly used color naming schemes like e.g. X11, HTML, CSS, SVG colors in the IT world, or RAL or Pantone for surface colors and/or graphic arts.Still many manufacturer of "colored objects" feel free to invent their own fancy color names.

author: DavidAlfa
author_rank: Super Contributor
timestamp: June 02, 2022, 09:57:28 am
content: As if there weren't enough standards already, yep, lots of stuff use their own language-localized color codesI discovered this long time ago when modifying the car to install a reverse camera...My car uses italian color codes! It's an Alfa Romeo, at least they're using schematics and codesJokes apart, it's starting to show the age after 16 years, 600K km and bash driving .I would have scrapped it if using german codes.... get ze flammenwerfer!

author: golden_labels
author_rank: Super Contributor
timestamp: June 02, 2022, 06:54:05 pm
content: The problem? Do you think it would be better if a person, wanting to communicate a color name, would use its internationally standardized name? Because that seem to be what OP asked about. So, let’s sing with me: “Lady in #BC1615 is dancing with me”.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 02, 2022, 07:01:03 pm
content: If you want a standard way of naming colors, use Pantone. Done.http://www.pantone-colours.com/

author: gf
author_rank: Super Contributor
timestamp: June 02, 2022, 09:03:00 pm
content: Quote from: golden_labels on June 02, 2022, 06:54:05 pmWell, look how many names (from various vendors) areclose to #BC1615. And I don't think this list is exhaustive.Not sure if "Lady in E 07-40X" or "Lady in Newcastle / LP-138" is really better than "Lady in #BC1615"?Quote from: SiliconWizard on June 02, 2022, 07:01:03 pmPantone and RAL colors are quite common, but both are still private companies who have defined color palettes.I'm not aware that either of them were an official international standard. I'm also unsure whether their color palettes and names are royalty-free.

author: golden_labels
author_rank: Super Contributor
timestamp: June 02, 2022, 11:27:02 pm
content: That was a sarcasm…