On Mon, Jun 13, 2011 at 06:36:12PM +0000, Thom Brown wrote:
> On 13 June 2011 14:35, Greg Smith <greg(at)2ndquadrant(dot)com> wrote:
> > I just created a drawing, saved it, then
> > modified it a bit. The spurious diff from the GUI was quite small: three
> > lines of junk with the filename change and some windowing metadata. And the
> > new material added showed in a pretty readable diff as I would hope too.
> > Original file and diff attached as samples.
> It appears you've saved it in the Inkscape SVG format as it uses
> Inkscape markup. It's probably better to save it as a plain SVG since
> other editors may remove the Inkscape-specific markup anyway.
> I just did a quick test drawing a squiggly line in Inkscape, saved it
> in both formats. The Inkscape SVG takes up 60 lines, the plain one is
> 35. I opened both in LibreOffice and exported them back to new SVG
> files and the file lengths were further reduced, although both outputs
> were identical to one another (the Inkscape format
> LibreOffice-converted file identical to the plain format
> LibreOffice-converted file). But this time it removed all line breaks
> and became one continuous line of markup. So that would be disastrous
> from a delta point of view.
It's fairly easy to put those back in w/ xmllint --format. Thom, what do
you get for:
xmllint --format for_test_here.svg | wc -l
However, my copy of OpenOffice.org (188.8.131.52) does evil things to a
pencil squiggle drawn in Inkscape. The original plain svg has a single
path (albeit w/ 451 points). After passing through ooodraw, that is
broken into 760 path elements. A quick google tells me that svg export
is one of the areas that LibreOffice has advanced in. That probably
explains the discrepancy.
So, just saying 'svg' isn't enough: we'd likely need to specify Inkscape
as the one true svg processor.
Ross Reedstrom, Ph.D. reedstrm(at)rice(dot)edu
Systems Engineer & Admin, Research Scientist phone: 713-348-6166
Connexions http://cnx.org fax: 713-348-3665
Rice University MS-375, Houston, TX 77005
GPG Key fingerprint = F023 82C8 9B0E 2CC6 0D8E F888 D3AE 810E 88F0 BEDE
In response to
pgsql-docs by date
|Next:||From: Greg Smith||Date: 2011-06-13 21:14:31|
|Subject: Re: Documentation and explanatory diagrams|
|Previous:||From: Derrick Rice||Date: 2011-06-13 20:40:13|
|Subject: Re: DROP TABLE can be issued by schema owner as well as table owner|