W3C home > Mailing lists > Public > www-svg@w3.org > June 2004

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

From: Julius Mong <julius@mimotek.com>
Date: Sun, 6 Jun 2004 10:09:47 +0100
Message-ID: <001001c44ba6$03c06010$6a01a8c0@angel>
To: "Chris Lilley" <chris@w3.org>, "Nate" <nate@adeptisoft.com>
Cc: <www-svg@w3.org>

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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:27 GMT