Re: [svg-paths] Define normalised path

Paul LeBeau <[email protected]>
Newsgroups gmane.comp.web.svg
Message-ID <CACfsppCP4vmHGj4UOsESq2EYS_aNO7m=zAiQjK6g2zZZE=p34Q@mail.gmail.com>
A path with consecutive "M" commands is a valid path.  If you made this
rule then normalized path would render differently from the original.

Section 8.4.1 of SVG2 says:


   - If markers are specified, then a marker is drawn on every applicable
   vertex, even if the given vertex is the end point of a zero-length path
   segment and even if "moveto" commands follow each other.

In addition, an "M" followed by a "Z" is also a valid path.

Paul

On 2 November 2015 at 12:41, Jarek Foksa <[email protected]> wrote:

> > It already says this, yes?
> > http://www.w3.org/TR/svg-paths/#InterfaceSVGPathDataSettings
>
>
> The spec only states that the normalized path data must consist from “M”,
> “L”, “C” and “Z” segs. The normalized path might still contain redundant
> data such as multiple subsequent "M" segs. The current definition also
> allows for the normalized subpaths to start with either implicit or
> explicit “M” seg.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.