Absolute coordinates

Discuss SVG code, accessible via the XML Editor.
Wed
Posts: 30
Joined: Tue Nov 18, 2008 10:55 am

Absolute coordinates

Postby Wed » Tue Aug 23, 2011 7:15 pm

I did a brief search. Sorry if I missed something obvious.

Usually, I clean up my illustrations with the XML-editor. Often to get straight angles or same length sides and whatnot. It used to be fairly straightforward, but lately, the coordinates have been given in a relative fashion. As I process the coordinates one at the time, the image gets all jumbled up. It is also very hard to calculate the coordinates by hand.

Is there a way to shift between the two annotations absolute and relative? I'm an absolute kind of guy.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Absolute coordinates

Postby prkos » Tue Aug 23, 2011 9:21 pm

just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download


User avatar
LiquidAsh
Posts: 71
Joined: Fri Apr 22, 2011 11:35 pm
Contact:

Re: Absolute coordinates

Postby LiquidAsh » Mon Aug 29, 2011 12:14 pm

I'm not sure what kinds of primitives your are working with, but many of the path commands can be changed from relative to absolute by changing them from lower-case to upper-case: http://www.w3.org/TR/SVG/paths.html... this would allow you to edit in absolute or relative. I can't test any ideas about getting inkscape to output one or the other right now: combining and breaking apart, or grouping and ungrouping... if none of those kinds of things work, it may require an extension to output SVG with absolute rather than relative paths.


Return to “SVG / XML Code”