Re: path's d attribute - why not use parenthesis?

Or use a code generator (Perl) this way you can do things in a more
function-oriented way but have the very optimised and compact code
generated. W3C's SVG site has links to them.

Regards, Jules


----- Original Message ----- 
From: "Chris Lilley" <chris@w3.org>
To: "Nate" <nate@adeptisoft.com>
Cc: <www-svg@w3.org>
Sent: Sunday, June 06, 2004 7:28 AM
Subject: Re: path's d attribute - why not use parenthesis?



On Sunday, June 6, 2004, 4:27:51 AM, Nate wrote:

N> I know the idea is to keep the file size as small aspossible but
N> I think if parenthesis were added (or maybe optional would bebest) it
N> wouldn’t add much to the file size and it would help
N> readabilityconsiderably.

N> Example:
N> <path d="M(150,150) l(0,0) a(75,75 0 1,0 150,150) z" />

N> That to me is easier to read, plus coming from PHPbackground the
N> M() and l() look like a function would, which is kind of whatthey are
N> anyway right?

You can use new lines if you are more concerned with readability than
file size.

<path d="M 150,150
l 0,0
a 75,75 0 1,0 150,150
z"/>


-- 
 Chris Lilley                    mailto:chris@w3.org
 Chair, W3C SVG Working Group
 Member, W3C Technical Architecture Group

Received on Sunday, 6 June 2004 05:09:56 UTC