> Does anyone know if there is a utility out there which can take
> absolute path co-ordinates and convert them to a relative path
> "instruction" set?

> I'm sure there must be a nice algorithm out there for this.

How i would go about (after having Googled without success):

Regexp to build an array containing all steps
Regexp to build an array containing all components of a step
(commandcharacter and numbers, no whitespace, no commas)

For all commandcharacters define a series stating whether a component
changes going from absolute to relative say "c","x","y" (constant,
changing with x, changing with y)

Now go through the steps array, keep a previous_stop_x and
previous_stop_y, for every step change the components where necessary.

Then turn it all into a string

Good luck and don't forget to share your algorithm when it's done :-)






-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to