Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aKpLW-0006av-8p for pgsql-docs@arkaria.postgresql.org; Sun, 17 Jan 2016 15:34:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aKpLV-0004Bo-7t for pgsql-docs@arkaria.postgresql.org; Sun, 17 Jan 2016 15:34:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aKpLU-0004BO-3J for pgsql-docs@postgresql.org; Sun, 17 Jan 2016 15:34:24 +0000 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aKpLQ-0000z3-0g for pgsql-docs@postgresql.org; Sun, 17 Jan 2016 15:34:22 +0000 Received: by mail-lb0-x234.google.com with SMTP id x4so79390438lbm.0 for ; Sun, 17 Jan 2016 07:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:cc:message-id:date:user-agent :mime-version:in-reply-to:content-type; bh=ZRpOTdQKCiECRBULlUmI4UuR0gIOPR7Oi1+kKd2TplA=; b=etjpQtZBZdXX3lSn2fnIg0Yd6fDrMUDHJEo+o4igvmlhQwwXIj4qBKk7hZ0j14g/DR f+Y2scYQGlx5yVHm1at0rVEYemTooGOh/OHBOWMzS5gSydzSnCiFpIDbWbOvAhataEC3 dXZOJK+CuAp1LUiJF6PJHB0+2kQDrFlVct2Jn6+JRPNojNa3WXgD4vNnI9eGcM9W6/Ej Hb6xl7/r8nCJmK4J/QGawmtuIXYt+fvcBmPaGp84J80lmLIzMQEY7v9LIPhJRbCcJI4p VwRBqM6p9IvC4DstSmFkFoLNj0/YZ2st4+xn67ordlbF8sriW519OsTqPzxEtm3pwmXW Y5/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:cc:message-id:date :user-agent:mime-version:in-reply-to:content-type; bh=ZRpOTdQKCiECRBULlUmI4UuR0gIOPR7Oi1+kKd2TplA=; b=QVz6sWZJizRTfEHSqC1TsllKmKi5L3Q6DMcIdWYL8/6OdntxOCEG6K5n2KgISDKFhq wRnHWKfUSGuNu3KoyfvqfFEvi7/vieQbmE299jzmoXFSfzP6wkFT2VYLFy1hYZWfOjbM cEsYd4KaHV+8asC5d31yCZWQm8IwNU0j0cTfv4aB+BMBgbsJLmFWsCz5mPstuqRg2IH9 LiQCuSUIGfg9ZqB1HhcyJHR6xbwteMGOIpj+JHNvokTUR1jyZnRfUun8lcJ20LDlYIvy 9+JrEVjDPPaE4TGDI9b792ITctNHAOJGOzRfb5JSG6zeBBuSSlYrdBTdeCo1tTu/fELz GnMA== X-Gm-Message-State: AG10YOTHRyLRIgkTNY+krjwozkOwHuQ1Ia7vE/aDwp9NMCBzCnLRBSx3DqIanZlXvt6LGw== X-Received: by 10.112.172.200 with SMTP id be8mr566365lbc.78.1453044857130; Sun, 17 Jan 2016 07:34:17 -0800 (PST) Received: from [1.0.0.7] ([109.196.196.17]) by smtp.gmail.com with ESMTPSA id qb3sm2497497lbb.39.2016.01.17.07.34.15 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Jan 2016 07:34:16 -0800 (PST) Subject: Re: Graphic to visualize data flow between processes, buffers and files To: pgsql-docs@postgresql.org References: <20160105193334.GA296052@alvherre.pgsql> <5690218B.9060103@purtz.de> From: Alexander Law Cc: =?UTF-8?Q?J=c3=bcrgen_Purtz?= Message-ID: <569BB477.6010405@gmail.com> Date: Sun, 17 Jan 2016 18:34:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <5690218B.9060103@purtz.de> Content-Type: multipart/alternative; boundary="------------020800070804070207020509" X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org This is a multi-part message in MIME format. --------------020800070804070207020509 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hello, I think, that SVG should be preferred format too, as it (beside other forementioned advantages): 1) Supported by DocBook (http://www.docbook.org/tdg/en/html/svg-svg.html) and you can just embed an image in the docbook.xml (http://www.docbook.org/tdg5/publishers/5.1b3/en/html/_any.svg.html). 2) xml-based so it can be translated to other languages with using well-known tools (xml2po/gettext) I've tried to embed a sample SVG image into postgres.xml and generate PDF with xsltproc/fop and I've got the image in the PDF. So we don't need to introduce some complex processes to support graphics, it's already supported by docbook. I think we should move documentation to the XML format and then we could use SVG for free. Best regards, Alexander 08.01.2016 23:52, Jürgen Purtz пишет: > > On 05.01.2016 20:33, Alvaro Herrera wrote: >> As in the original discussion, this is probably too fiddly and the >> resulting SVG files are going to be really ugly anyway. I think the >> consensus was that we should use some toolchain that uses a source >> format that looks like actual source code, such as the dot or xfig >> formats, of stuff like that -- which is "compiled" into the target >> graphic format. As I recall, what we lacked was somebody with time >> and knowledge to actually produce a useful image starting from such a >> source, produce Makefile rules to run the transformation from the >> Makefiles, and to inject the image into the SGML so that it works in >> the HTML and PDF outputs. With such a proof of concept we're much >> more likely to take this idea seriously. > > I don't want to be intrusive, but obviously I didn't get the point at > the first attempt. I hope that I now have understood the needs and > concerns of the community: you are looking for tools and a source code > format for SVN files which is easy to handle, diff-able and > convertible into different graphic formats. > > To achieve these objectives I composed a suite of tools and templates: > > * The SVN file is edited with a text editor. This sounds a little > crazy, as SVN editors are trendy and easy to handle. But in > conjunction with a set of templates this job gets relative easy. > Of course the developer needs some knowledge about SVN, but it is > intended that only few and simple elements of SVN are used to keep > the source clear. After a short period of familiarization and with > a look at existing files everyone can work this way. Also the > range of lines keeps small as there are predefined complex objects > which can be included with one line of code. > * Actually there are three files with predefined SVN objects and CSS > definitions. This facilitates the work and leads to consistent use > of graphic elements like fonts, colors, sizes. One file contains > simple objects like text or ellipses with predefined attributes, > the next one contains complex pictures like PCs, and the last one > contains all CSS stuff. > * As fare as I have seen, the SVN files are rendered consistently by > browsers and image viewers. Using Inkscape in batch-mode they can > be converted to pdf, png and other formats without loss of > elements or significant image sharpness. > * Using xmlling the SVN files can be validated against the SVN DTD. > * In the readme file there are examples of converting and XML > validation. > * There is the problem, that Inscape does not consider external CSS > files. I described a workaround in the CSS file. > > Please study the attached three example files: simple.svn, > simple_with_external_file.svn and pg_processes.svn. The last two make > use of pg_lib_basic_objects.svn, pg_lib_external_objects.svn and > pg_lib_css.svn. > > > Regards, Jürgen Purtz > > > --------------020800070804070207020509 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
Hello,
I think, that SVG should be preferred format too, as it (beside other forementioned advantages):
1) Supported by DocBook (http://www.docbook.org/tdg/en/html/svg-svg.html) and you can just embed an image in the docbook.xml (http://www.docbook.org/tdg5/publishers/5.1b3/en/html/_any.svg.html).
2) xml-based so it can be translated to other languages with using well-known tools (xml2po/gettext)

I've tried to embed a sample SVG image into postgres.xml and generate PDF with xsltproc/fop and I've got the image in the PDF.
So we don't need to introduce some complex processes to support graphics, it's already supported by docbook.
I think we should move documentation to the XML format and then we could use SVG for free.

Best regards,
Alexander



08.01.2016 23:52, Jürgen Purtz пишет:

On 05.01.2016 20:33, Alvaro Herrera wrote:
As in the original discussion, this is probably too fiddly and the resulting SVG files are going to be really ugly anyway. I think the consensus was that we should use some toolchain that uses a source format that looks like actual source code, such as the dot or xfig formats, of stuff like that -- which is "compiled" into the target graphic format. As I recall, what we lacked was somebody with time and knowledge to actually produce a useful image starting from such a source, produce Makefile rules to run the transformation from the Makefiles, and to inject the image into the SGML so that it works in the HTML and PDF outputs. With such a proof of concept we're much more likely to take this idea seriously.

I don't want to be intrusive, but obviously I didn't get the point at the first attempt. I hope that I now have understood the needs and concerns of the community: you are looking for tools and a source code format for SVN files which is easy to handle, diff-able and convertible into different graphic formats.

To achieve these objectives I composed a suite of tools and templates:
  • The SVN file is edited with a text editor. This sounds a little crazy, as SVN editors are trendy and easy to handle. But in conjunction with a set of templates this job gets relative easy. Of course the developer needs some knowledge about SVN, but it is intended that only few and simple elements of SVN are used to keep the source clear. After a short period of familiarization and with a look at existing files everyone can work this way. Also the range of lines keeps small as there are predefined complex objects which can be included with one line of code.
  • Actually there are three files with predefined SVN objects and CSS definitions. This facilitates the work and leads to consistent use of graphic elements like fonts, colors, sizes. One file contains simple objects like text or ellipses with predefined attributes, the next one contains complex pictures like PCs, and the last one contains all CSS stuff.
  • As fare as I have seen, the SVN files are rendered consistently by browsers and image viewers. Using Inkscape in batch-mode they can be converted to pdf, png and other formats without loss of elements or significant image sharpness.
  • Using xmlling the SVN files can be validated against the SVN DTD.
  • In the readme file there are examples of converting and XML validation.
  • There is the problem, that Inscape does not consider external CSS files. I described a workaround in the CSS file.
Please study the attached three example files: simple.svn, simple_with_external_file.svn and pg_processes.svn. The last two make use of pg_lib_basic_objects.svn, pg_lib_external_objects.svn and pg_lib_css.svn.


Regards, Jürgen Purtz




    

--------------020800070804070207020509--