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

From Thom Brown
Subject Re: Documentation and explanatory diagrams
Date
Msg-id BANLkTimrqA9zN64vx4aYr6EpUeuw=tWyew@mail.gmail.com
Whole thread Raw
In response to Re: Documentation and explanatory diagrams  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Responses Re: Documentation and explanatory diagrams
List pgsql-docs
On 13 June 2011 20:59, Ross J. Reedstrom <reedstrm@rice.edu> wrote:
> 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

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.

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-docs by date:

Previous
From: Greg Smith
Date:
Subject: Re: Documentation and explanatory diagrams
Next
From: Alvaro Herrera
Date:
Subject: Re: Improve warnings around CREATE INDEX CONCURRENTLY