Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-color] Non-ICC color specifications #5737

Closed
Crissov opened this issue Nov 19, 2020 · 7 comments
Closed

[css-color] Non-ICC color specifications #5737

Crissov opened this issue Nov 19, 2020 · 7 comments
Labels
css-color-5 Color modification

Comments

@Crissov
Copy link
Contributor

Crissov commented Nov 19, 2020

color() = color( [ 
    [<ident> | <dashed-ident>]? 
    [ <number-percentage>+ | <string> ] 
    [ / <alpha-value> ]? 
  ]# , <color>? )

The color() function as currently specified expects either a single color name or a sequence of numeric component values. This may well cover everything that is possible with ICC profiles, but it does not support systems which support multiple keywords to specify a single color, e.g. CNS very dark reddish orange, or combine letters/words and numeric amounts, e.g. NCS S 2030-Y90R ~ 20% 30% 10% yellow 90% red.

Should the syntax be relaxed a bit to support such systems in the future?

@faceless2
Copy link

faceless2 commented Nov 20, 2020

The "string" component in that grammar is the color name, so it can include spaces. But whether this grammar, which doesn't allow the amount of that named color to be specified, is the best fit for this purpose is going to depend on #2023

@svgeesus
Copy link
Contributor

svgeesus commented Dec 2, 2020

As I proposed CNS for CSS in 1996 I am familiar with it, and the barrier to adoption remains the same - a mapping from name string to Munsell colors is alluded to in the paper but is not provided. I mailed the author at the time, and did not get a response.

So (unless someone did the work to create such a mapping) there is no way to get a colorimetric value from a given name. Which makes it a poor fit for the color() function, and more akin to how device-cmyk() was until we fixed it.

Similar problems for the proprietary NCS; the colorimetric values for each color are not available.

@fantasai fantasai added the css-color-5 Color modification label Jan 7, 2021
@Myndex
Copy link
Member

Myndex commented Mar 1, 2021

Hi Chris @svgeesus

So (unless someone did the work to create such a mapping) there is no way to get a colorimetric value from a given name.

RIT did, I have a spreadsheet with the Munsell renotation and transformed to a number of colorimetric values — it is attached, is this what you mean?

Let me know if you need other data sets, I have a few...

Andy
real_sRGB.ods.zip

@svgeesus
Copy link
Contributor

svgeesus commented Mar 1, 2021

Thanks. I have a copy of that spreadsheet, which is becoming harder to find since http://www.cis.rit.edu/research/mcsl/online/munsell.php now just redirects to the modern RIT website which is a glossy brochure with little useful content.

Note though that this data was for Munsell; the discussion here is for the Swedish Natural Color System (NCS), and the Color Naming Scheme (CNS).

NCS®© is the registered trade name of NCS Colour AB, Sweden. You use the system by buying a printed swatchbook or a rinted atlas, choosing a color visually, and buying a new one every few years as the colors fade beyond tolerances.

There is no published algorithm, no published table of data as far as I know and being proprietary there could be legal consequences to buying one, measuring it and publishing the values. There may also be trademark aspects as well.

@Myndex
Copy link
Member

Myndex commented Mar 2, 2021

Hey Chris @svgeesus

Ah okay, my mistake, I misread the thread... And yea, some of my treasure trove took a log of digging and or learning some Russian which is why I attached it... LOL.

NCS is kinda weird, and as I expressed in another...uh.. "essay" IMO W3 ought not to be supporting proprietary anything. But looking at the OP's post, not sure how this applies to ICC ?

Tangentially: I see the potential for a useful notation form though, such as L50C35h145...

@Crissov
Copy link
Contributor Author

Crissov commented Mar 2, 2021

I’m just suggesting to change [ <number-percentage>+ | <string> ] to either [ <number-percentage>+ | <string>+ ] or [ <number-percentage> | <string> ]+, so it would be more versatile.

As I said, the current grammar is probably sufficient to match the possibilities of ICC profiles as currently specified.

@svgeesus
Copy link
Contributor

The <string> part was to support ICC Named Colors, which we then removed:

NCS as stated in this thread is proprietary, and CNS never really took off in part because there was no published mapping to create a colorimetric interpretation and the authors of the original paper were unresponsive to queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-color-5 Color modification
Projects
None yet
Development

No branches or pull requests

5 participants