W3C home > Mailing lists > Public > www-svg@w3.org > August 1999

Re: Clarification of Path Data

From: Ben Hutchings <benh@lsl.co.uk>
Date: Wed, 18 Aug 1999 13:32:19 +0100 (BST)
To: Bernhard Herzog <herzog@online.de>
CC: www-svg@w3.org
Message-ID: <Pine.OSF.3.93.990818132551.30271E-100000@lsla1a>
On 18 Aug 1999, Bernhard Herzog wrote:
>If relative coordinates are relative to the current point, it seems to
>me that these two statements are contradictory:
>a) from section 10.3.1: "The command letter can be eliminated on
>   subsequent commands if the same command is used multiple times in a
>   row"
>b) from section 10.3.4 (lineto command): "At the end of the command, the
>   new current point is set to the final set of coordinates provided."
>I think a) implies that the command letters can be dropped without
>changing the meaning.

I think the underlying confusion in the spec is between two possible
interpretations of the use of multiple sets of arguments after an

(a) Each instruction uses a fixed number of arguments.  If arguments
    appear in path data immediately after one instruction's arguments
    without another instruction letter, then the previous instruction
    is repeated using those arguments.

(b) Instructions that take arguments can take multiple sets of

I would prefer interpretation (a); but 11.2.2 specifies an exception for
"moveto" - subsequent co-ordinate pairs are handled to "lineto"

Any opinions expressed are my own and not necessarily those of Laser-Scan.
Received on Wednesday, 18 August 1999 08:28:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:47 UTC