HowTo limit significant figures saved?
I find the default eight, far too many.
cheers
Jonathan Chetwynd
On 10/28/06, Jonathan Chetwynd <j.chetwynd@...871...> wrote:
HowTo limit significant figures saved?
I find the default eight, far too many.
This is the necessary minimum for shapes to not be distorted after save/reload even at the highest zoom. If however your needs are different, you can easily change that by recompiling Inkscape after editing line 14 in src/svg/stringstream.cpp.
What do others think, might this be worth adding a hidden user preference?
On Tue, 2006-10-31 at 01:53 -0400, bulia byak wrote:
On 10/28/06, Jonathan Chetwynd <j.chetwynd@...871...> wrote:
HowTo limit significant figures saved?
I find the default eight, far too many.
This is the necessary minimum for shapes to not be distorted after save/reload even at the highest zoom. If however your needs are different, you can easily change that by recompiling Inkscape after editing line 14 in src/svg/stringstream.cpp.
What do others think, might this be worth adding a hidden user preference?
Yeah, I say go for it...if it is useful to even 1 person, its useful :)
Jon
On Tue, 2006-10-31 at 01:53 -0400, bulia byak wrote:
On 10/28/06, Jonathan Chetwynd <j.chetwynd@...871...> wrote:
HowTo limit significant figures saved?
I find the default eight, far too many.
This is the necessary minimum for shapes to not be distorted after save/reload even at the highest zoom. If however your needs are different, you can easily change that by recompiling Inkscape after editing line 14 in src/svg/stringstream.cpp.
What do others think, might this be worth adding a hidden user preference?
I think that it would be useful. I think this is kinda what the icon guys have been asking for. Basically, a form of snapping. Though, I'm not sure just doing it when writing out the file is a good idea. I think, if we're going to do it, it should be throughout -- when dragging, resizing, etc.
--Ted
Ted Gould wrote:
On Tue, 2006-10-31 at 01:53 -0400, bulia byak wrote:
On 10/28/06, Jonathan Chetwynd <j.chetwynd@...871...> wrote:
HowTo limit significant figures saved?
I find the default eight, far too many.
This is the necessary minimum for shapes to not be distorted after save/reload even at the highest zoom. If however your needs are different, you can easily change that by recompiling Inkscape after editing line 14 in src/svg/stringstream.cpp.
What do others think, might this be worth adding a hidden user preference?
I think that it would be useful. I think this is kinda what the icon guys have been asking for. Basically, a form of snapping. Though, I'm not sure just doing it when writing out the file is a good idea. I think, if we're going to do it, it should be throughout -- when dragging, resizing, etc.
That would be great, otherwise you will have no idea how your files will turn out. I'd also recommend making this a per-document setting. And instead of specifying a number of significant digits (note that 3120000 contains the same number of significant digits as 0.00546), I think it would make more sense to simply specify the precision (similar to how the grid is already set up).
Didnt bryce have some code that did something like this? or did that only strip out excess 0's?
On 10/31/06, Jasper van de Gronde <th.v.d.gronde@...528...> wrote:
Ted Gould wrote:
On Tue, 2006-10-31 at 01:53 -0400, bulia byak wrote:
On 10/28/06, Jonathan Chetwynd <j.chetwynd@...871...> wrote:
HowTo limit significant figures saved?
I find the default eight, far too many.
This is the necessary minimum for shapes to not be distorted after save/reload even at the highest zoom. If however your needs are different, you can easily change that by recompiling Inkscape after editing line 14 in src/svg/stringstream.cpp.
What do others think, might this be worth adding a hidden user preference?
I think that it would be useful. I think this is kinda what the icon guys have been asking for. Basically, a form of snapping. Though, I'm not sure just doing it when writing out the file is a good idea. I think, if we're going to do it, it should be throughout -- when dragging, resizing, etc.
That would be great, otherwise you will have no idea how your files will turn out. I'd also recommend making this a per-document setting. And instead of specifying a number of significant digits (note that 3120000 contains the same number of significant digits as 0.00546), I think it would make more sense to simply specify the precision (similar to how the grid is already set up).
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Yup, I have code that handles precision, sigfigs, 0 stripping, and even/odd rounding. The code is in the experimental module under bryce/ftos.
I imagine that people wishing for highly optimized SVG for use on mobile devices or on the web would appreciate having a way to dial down the number of significant figures and/or precision used in storing numbers.
Bryce
On Tue, Oct 31, 2006 at 01:53:01PM +0000, john cliff wrote:
Didnt bryce have some code that did something like this? or did that only strip out excess 0's?
On 10/31/06, Jasper van de Gronde <th.v.d.gronde@...528...> wrote:
Ted Gould wrote:
On Tue, 2006-10-31 at 01:53 -0400, bulia byak wrote:
On 10/28/06, Jonathan Chetwynd <j.chetwynd@...871...> wrote:
HowTo limit significant figures saved?
I find the default eight, far too many.
This is the necessary minimum for shapes to not be distorted after save/reload even at the highest zoom. If however your needs are different, you can easily change that by recompiling Inkscape after editing line 14 in src/svg/stringstream.cpp.
What do others think, might this be worth adding a hidden user preference?
I think that it would be useful. I think this is kinda what the icon guys have been asking for. Basically, a form of snapping. Though, I'm not sure just doing it when writing out the file is a good idea. I think, if we're going to do it, it should be throughout -- when dragging, resizing, etc.
That would be great, otherwise you will have no idea how your files will turn out. I'd also recommend making this a per-document setting. And instead of specifying a number of significant digits (note that 3120000 contains the same number of significant digits as 0.00546), I think it would make more sense to simply specify the precision (similar to how the grid is already set up).
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&da... _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
On Tue, 2006-10-31 at 09:55 -0800, Bryce Harrington wrote:
Yup, I have code that handles precision, sigfigs, 0 stripping, and even/odd rounding. The code is in the experimental module under bryce/ftos.
I imagine that people wishing for highly optimized SVG for use on mobile devices or on the web would appreciate having a way to dial down the number of significant figures and/or precision used in storing numbers.
Fwiw, I think that is a strong argument for making it a per-document setting in itself.
-mental
participants (9)
-
Alexandre Prokoudine
-
Bryce Harrington
-
bulia byak
-
Jasper van de Gronde
-
john cliff
-
Jon Phillips
-
Jonathan Chetwynd
-
MenTaLguY
-
Ted Gould