W3C home > Mailing lists > Public > www-svg@w3.org > July 2009

Re: icc color profile valid names

From: Chris Lilley <chris@w3.org>
Date: Wed, 1 Jul 2009 08:55:13 +0200
Message-ID: <1501931962.20090701085513@w3.org>
To: "Anne van Kesteren" <annevk@opera.com>
CC: "Cameron McCormack" <cam@mcc.id.au>, www-svg@w3.org, <felipe.sanches@gmail.com>
On Monday, June 22, 2009, 10:24:26 AM, Anne wrote:

AvK> On Mon, 22 Jun 2009 10:03:04 +0200, Cameron McCormack <cam@mcc.id.au> wrote:
>> Felipe Sanches:
>>> Spec says:
>>> icc-color(<name>[,<icccolorvalue>]*)

>>> what is the validation rule for <name> ?

>> Recently a grammar has been added to the SVG Color module:

>>   http://dev.w3.org/SVG/modules/color/master/SVGColor.html#syntax

>> So the <name> part is:

>>   name ::= [^,()#x20#x9#xD#xA]

>> That grammar (at least the non-device colour parts of it) will be ported
>> back to SVG 1.1 Second Edition, which is set to be published some time
>> within the next few months.

AvK> Wouldn't it be better for it to match IDENT or some such from
AvK> CSS so it can later be safely ported to CSS without complicated conversion algorithms?

Yes, it wound. Indeed the definition of CSS 2.1 IDENT

	nmstart 	[_a-z]|{nonascii}|{escape}
	nmchar 	[_a-z0-9-]|{nonascii}|{escape}



 Name	   ::=   	NameStartChar (NameChar)*
	NameStartChar	   ::=   	":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [
                         #xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] |
                         [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] |
                         [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
	NameChar	   ::=   	NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] |


are pretty much the same (barring the vendor-specific prefix hyphen
part, which is not applicable here), with a name start character and
then name characters.

This was discussed at the 01 July 2009 SVG telcon (which is still
going on) and the group agreed to adopt your proposal. The grammar in
the editors draft will be updated shortly.

The only downside is that people always forget about numbers, they can
be used anywhere except as the first character. So letsgo123 is fine,
but 123whoopsie is not. (Common issue with the id attribute in HTML,
for example). But we can live with that.

Thanks for the feedback.

 Chris Lilley                    mailto:chris@w3.org
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG
Received on Wednesday, 1 July 2009 06:57:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:23 UTC