Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D5DCEB5DBE9 for ; Mon, 13 Jun 2011 18:17:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 66318-02 for ; Mon, 13 Jun 2011 21:17:38 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp1.linux-foundation.org (smtp1.linux-foundation.org [140.211.169.13]) by mail.postgresql.org (Postfix) with ESMTP id 7A5E7B5DBCD for ; Mon, 13 Jun 2011 18:17:37 -0300 (ADT) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) (authenticated bits=0) by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id p5DLHY21027634 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Mon, 13 Jun 2011 14:17:35 -0700 Received: by wwc33 with SMTP id 33so4635328wwc.19 for ; Mon, 13 Jun 2011 14:17:34 -0700 (PDT) Received: by 10.216.27.67 with SMTP id d45mr5669014wea.21.1307999854121; Mon, 13 Jun 2011 14:17:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.45.199 with HTTP; Mon, 13 Jun 2011 14:17:04 -0700 (PDT) In-Reply-To: <20110613205948.GE29811@rice.edu> References: <201106122144.p5CLiN801167@momjian.us> <1307972167.2862.518.camel@core2> <4DF6203D.6010906@2ndQuadrant.com> <20110613205948.GE29811@rice.edu> From: Thom Brown Date: Mon, 13 Jun 2011 21:17:04 +0000 Message-ID: Subject: Re: Documentation and explanatory diagrams To: "Ross J. Reedstrom" Cc: Greg Smith , pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-MIMEDefang-Filter: lf$Revision: 1.188 $ X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201106/57 X-Sequence-Number: 6831 On 13 June 2011 20:59, Ross J. Reedstrom wrote: > 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. =A0The spurious diff from the GUI was quite small: = =A0three >> > lines of junk with the filename change and some windowing metadata. = =A0And the >> > new material added showed in a pretty readable diff as I would hope to= o. >> > =A0Original file and diff attached as samples. >> >> It appears you've saved it in the Inkscape SVG format as it uses >> Inkscape markup. =A0It'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. =A0The Inkscape SVG takes up 60 lines, the plain one is >> 35. =A0I 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). =A0But this time it removed all line breaks >> and became one continuous line of markup. =A0So 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 That restores some of the newlines, but inkscape seems to place tag attributes on their own separate lines for readability, so the outputs still differ, unless you pass both through that same process. Comparing two processed outputs still reveals a difference, such as a comment in the original saying "Created with Inkscape..." and some attributes not preserved by LibreOffice, including namespaces Inkscape uses that LibreOffice doesn't. --=20 Thom Brown Twitter: @darkixion IRC (freenode): dark_ixion Registered Linux user: #516935 EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company