On 10/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> My algorithm may very well be wrong in the general case but works for
> the documents I've been using. The logic is simply that two
> consecutive path elements will be consolidated if they have the exact
> same set of attributes, other than the "d" and "pathLength"
> attributes.

   Ohh, this won't even work for normal elements if they have a
stroke, unless the element's don't overlap.  It will change
fill1 -> stroke1 -> fill2 -> stroke2 into
fill1 -> fill2 -> stroke1 -> stroke2.   So if any part of 'stroke1'
should be hidden by 'fill2' it won't be anymore.  This might still
be a useful enhancement but it can easily change rendering...

I'm not sure I understand.. could you give a small example?

> I had assumed that if two <path>'s had the same attributes
> then you could consolidate them, but maybe this is not true?

   This is not true in the general case.  The work is still
useful but the assumptions the scripts use should be documented
(as well as at least the above two potential problems).

I'll update the wiki page.

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to