Issue 7526 - Problems in html.soc
Summary: Problems in html.soc
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: code (show other issues)
Version: OOo 1.0.1
Hardware: PC Windows XP
: P5 (lowest) Trivial (vote)
Target Milestone: ---
Assignee: nospam
QA Contact: issues@framework
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-05 16:45 UTC by lauwr
Modified: 2002-10-23 16:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Comments, program and html.soc replacement (14.50 KB, application/x-zip-compressed)
2002-10-02 11:32 UTC, lauwr
no flags Details
Correction to previous upload (14.59 KB, application/x-zip-compressed)
2002-10-02 19:13 UTC, lauwr
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description lauwr 2002-09-05 16:45:06 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.
Comment 1 thorsten.martens 2002-09-16 10:40:24 UTC
TM->TV: As discussed via phone,... please have a look, thanks !
Comment 2 tom 2002-09-26 11:21:01 UTC
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.
Comment 3 lauwr 2002-10-02 11:32:52 UTC
Created attachment 3044 [details]
Comments, program and html.soc replacement
Comment 4 lauwr 2002-10-02 11:44:15 UTC
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.
Comment 5 lauwr 2002-10-02 19:13:34 UTC
Created attachment 3053 [details]
Correction to previous upload
Comment 6 lauwr 2002-10-02 19:25:40 UTC
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.
Comment 7 tom 2002-10-10 12:59:53 UTC
TV->IH: Please take a look at this and check in the palette of 
Laurence.
Comment 8 nospam 2002-10-10 16:00:01 UTC
IH: checked in Laurence Reeves' palette
Comment 9 nospam 2002-10-23 16:51:17 UTC
IH: issue closed.