Re: Documentation and explanatory diagrams - Mailing list pgsql-docs

From Ross J. Reedstrom
Subject Re: Documentation and explanatory diagrams
Date
Msg-id 20110613205948.GE29811@rice.edu
Whole thread Raw
In response to Re: Documentation and explanatory diagrams  (Thom Brown <thom@linux.com>)
Responses Re: Documentation and explanatory diagrams  (Greg Smith <greg@2ndQuadrant.com>)
Re: Documentation and explanatory diagrams  (Thom Brown <thom@linux.com>)
List pgsql-docs
On Mon, Jun 13, 2011 at 06:36:12PM +0000, Thom Brown wrote:
> On 13 June 2011 14:35, Greg Smith <greg@2ndquadrant.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 (3.2.1.4) 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
--
Ross Reedstrom, Ph.D.                                 reedstrm@rice.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

pgsql-docs by date:

Previous
From: Derrick Rice
Date:
Subject: Re: DROP TABLE can be issued by schema owner as well as table owner
Next
From: Greg Smith
Date:
Subject: Re: Documentation and explanatory diagrams