- From: SVG Working Group repository <cam@mcc.id.au>
- Date: Mon, 20 Aug 2012 21:11:07 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/094a3cce6e1d
branches:
changeset: 329:094a3cce6e1d
user: Cameron McCormack <cam@mcc.id.au>
date: Tue Aug 21 14:11:36 2012 +1000
description:
Link to types.html for the EBNF grammar syntax.
diffstat:
master/color.html | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
diffs (34 lines):
diff --git a/master/color.html b/master/color.html
--- a/master/color.html
+++ b/master/color.html
@@ -779,29 +779,17 @@ child elements.</p>
</div>
<p>See the description for the <a>'color-profile/rendering-intent'</a> attribute on the
<a>'color-profile element'</a> element.</p>
<div class="ready-for-wider-review">
<h2 id="syntax">Color syntax</h2>
- <p>The EBNF grammar is as used in the <a href="http://www.w3.org/TR/REC-xml/#sec-notation">XML specification</a>,
- with the addition of a <em>case-insensitive literal</em>: characters in the ASCII range (only) are case-insensitive. ~"Hello" will match (H|h)(e|e)(l|L)(l|L)(o|O). This makes the productions much easier to read.</p>
- <table>
- <tr><td>?</td><td>optional, zero or one</td></tr>
- <tr><td>+</td><td>one or more</td></tr>
- <tr><td>*</td><td>zero or more</td></tr>
- <tr><td>|</td><td>alternation</td></tr>
- <tr><td>"string"</td><td>literal</td></tr>
- <tr><td>~"string"</td><td>case-insensitive literal</td></tr>
- <tr><td>[]</td><td>a character range</td></tr>
- <tr><td>[^]</td><td>excluded character range</td></tr>
- <tr><td>()</td><td>grouping</td></tr>
- </table>
+ <p>The EBNF grammar syntax is as described in <a href="types.html#syntax">Syntax</a>.</p>
<pre>
<span id="icccolor">icccolor</span> ::=
~"icc-color(" <a href="#name">name</a> (<a href="#comma-wsp">comma-wsp</a> <a href="#number">number</a>)+ ")"
<span id="iccnamedcolor">iccnamedcolor</span> ::=
~"icc-named-color(" <a href="#name">name</a> <a href="#comma-wsp">comma-wsp</a> <a href="#namedColor">namedColor</a> ")"
Received on Tuesday, 21 August 2012 04:12:10 UTC