Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8040EB5DBCD for ; Mon, 13 Jun 2011 17:59:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 40860-05 for ; Mon, 13 Jun 2011 20:59:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from cooker.cnx.rice.edu (cooker.cnx.rice.edu [168.7.5.70]) by mail.postgresql.org (Postfix) with ESMTP id AE126B5D80A for ; Mon, 13 Jun 2011 17:59:51 -0300 (ADT) Received: from reedstrm by cooker.cnx.rice.edu with local (Exim 4.72) (envelope-from ) id 1QWEEf-0000uA-1Z; Mon, 13 Jun 2011 15:59:49 -0500 Date: Mon, 13 Jun 2011 15:59:49 -0500 From: "Ross J. Reedstrom" To: Thom Brown Cc: Greg Smith , pgsql-docs@postgresql.org Subject: Re: Documentation and explanatory diagrams Message-ID: <20110613205948.GE29811@rice.edu> References: <201106122144.p5CLiN801167@momjian.us> <1307972167.2862.518.camel@core2> <4DF6203D.6010906@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/55 X-Sequence-Number: 6829 On Mon, Jun 13, 2011 at 06:36:12PM +0000, Thom Brown wrote: > On 13 June 2011 14:35, Greg Smith 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