Apache OpenOffice (AOO) Bugzilla – Issue 7526
Problems in html.soc
Last modified: 2002-10-23 16:51:17 UTC
Re: \Program Files\OpenOffice.org1.0.1\user\config A minor point, but in the file "html.soc" there are five instances where the quoted values in the "name" does not match the "color" given. Within "name", the hex and decimal parts do agree. ......Actual...... ......Stated...... .Error. Hex R G B Hex R G B R G B FFF5ED 255 245 237 FFF5EE 255 245 238 0 0 -1 seashell FF4200 255 66 0 FF4500 255 69 0 0 -3 0 orangered B8860A 184 134 10 B8860B 184 134 11 0 0 -1 darkgoldenrod 6395ED 99 149 237 6495ED 100 149 237 -1 0 0 cornflowerblue 8C008C 140 0 140 8B008B 139 0 139 1 0 1 darkmagenta In fact, on further research, I believe the table in question is intended to correspond to the one specified at: http://www.w3.org/TR/2002/WD-css3-color-20020418/#colorunits If so, and it does appear to be very close to that table, there are several more problems in the table. In the previously mentioned five cases, it is the stated hex / decimal values which are correct. The "color=" values should be changed to agree with the "name=" hex value. For a major flaw, AliceBlue is not a synonym for YellowGreen, but quite a different colour. "AliceBlue F0F8FF 240.248.255" There are precisely two cases in the W3 table of synonyms, Aqua/Cyan and Fuchsia/Magenta, which you have merged in your table, although I don't see any great reason for doing so. Saving two entries out of the full 140 odd seems a little picky. The OOo table currently has 131 entries, which doesn't seem a particularly significant number. Six more colours in the W3 document are missing from the OOo table: "LemonChiffon FFFACD 255.250.205" "LightBlue ADD8E6 173.216.230" "LightCoral F08080 240.128.128" "LightCyan E0FFFF 224.255.255" "LightGoldenrodYellow FAFAD2 250.250.210" "LightGreen 90EE90 144.238.144" (What possesses the W3 boys to call the fifth one here "LightGoldenrodYellow", when the other variants are called "Goldenrod", "PaleGoldenrod" and "DarkGoldenrod" is beyond me. It's not as if it looks appreciably yellower than the others.) I have little idea of why the OOo table is in the particular order it is (it seems random to me!), so I haven't done anything along the lines of putting the extra seven (nine if you split the two synonyms) lines into it. What I think is a fairly nice order is sorted by Hue, Saturation and reversed Value. This gives the grey scale first, then cycles round the colour circle showing shades of red, yellow, green, cyan, blue, magenta and back to red. A slight variant with the HSV values first "coarsened" a little would make an even prettier sequence. The W3 document does suggest that you should keep the capitalisation for property values, to make them more readable. I hope this is of some help. P. S. I've gone even further. It occurred to me to cast a quick (!) glance at the other ".soc" files (they're all six in the same directory). Barring "cmyk.soc", they all have errors of one sort or another. I have a 186K .sxc spreadsheet that shows up the problems, if someone would like it. I cannot work out what the "gallery.soc" names are supposed to be. They mostly look as if they are percentages of CMY beyond a basic blackness percentage, but some do not take out the full blackness value and others are just plain incomprehensible. I'd also like to ask if any alternate palettes can actually be used. Where the help says you should be able to select palettes, there just isn't an option.
TM->TV: As discussed via phone,... please have a look, thanks !
Laurence, would you like to provide a fixed html.soc? I think all you comments make sense and you seem to have a fairly good insight about this topic. I could then check in the fixed color table.
Created attachment 3044 [details] Comments, program and html.soc replacement
I attach a zip archive containing five source files: Research.txt is a waffling diatribe about what I've done. colour.h and colour.c are the program that produced: colour h > colour.html - a visual picture of what I've produced that does the colours both by name and by hex value, so you can check what a browser makes of the names. colour > colour.soc - hopefully the replcement for html.soc. At present, I don't think OOo ever employs html.soc. My diatribe mentions the two other places in OOo where colour names are set up. I haven't much gone into the detail of what OOo does with them.
Created attachment 3053 [details] Correction to previous upload
Straight after the earlier upload, I realised I had got it wrong. I found the fact that it is only in a Drawing that you get a chance to change palette, when html.soc comes in handy. However, the colour picker box there uses eight colomns, so I altered my ordering to accomaodate this. (I had set it for ten columns, because that was what Configure/HTML/Background was showing - actually, that's the odd one out!). The option to change palettes (to html.soc) should surely be available when creating a web page! In fact, Options/OOo/Colours seems to me to be exactly the single place the option should be provided.
TV->IH: Please take a look at this and check in the palette of Laurence.
IH: checked in Laurence Reeves' palette
IH: issue closed.