Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcCBk-0008OQ-8k for pgsql-docs@arkaria.postgresql.org; Tue, 23 Aug 2016 13:56:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bcCBj-0008Dx-Pv for pgsql-docs@arkaria.postgresql.org; Tue, 23 Aug 2016 13:56:23 +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_2) (envelope-from ) id 1bcCBh-0008CW-Tj for pgsql-docs@postgresql.org; Tue, 23 Aug 2016 13:56:22 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1bcCBe-0005Vc-N0 for pgsql-docs@postgresql.org; Tue, 23 Aug 2016 13:56:20 +0000 Received: from [192.168.178.26] ([84.165.202.85]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0Lud28-1bBtpH2uGm-00zmB5; Tue, 23 Aug 2016 15:56:15 +0200 From: =?UTF-8?Q?J=c3=bcrgen_Purtz?= Subject: Re: UTF-8 docs To: pgsql-docs@postgresql.org References: <7fbf2e80-9507-0521-d0e9-913ab81a58df@gmail.com> <20160823.075131.847843562615671158.t-ishii@sraoss.co.jp> Cc: vitus@wagner.pp.ru Message-ID: Date: Tue, 23 Aug 2016 15:57:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160823.075131.847843562615671158.t-ishii@sraoss.co.jp> Content-Type: multipart/alternative; boundary="------------4E00EE3F051833EB456E30FB" X-Provags-ID: V03:K0:oGqVy9Uy3lXyr4QwvR76jeWLA3xbfzUfatjH1/o4IcnDLRcigj3 A/eKUvuClPDYwcbRwbg+4vfai9nPdnQnevM/RIPELQ242IaJWAM3tv9573xX/emLve4UmY3 BOIzkZSwV90S/d69znImZ6w0C3aDNvzByfoLn4I6hXRa7TIjdLXtPZOhXO4YC5vL4F537B6 iWhfzC3TUFhp0GxfylGSg== X-UI-Out-Filterresults: notjunk:1;V01:K0:1Mk+ET42w3E=:AJK4mAE51dyoGmAu/sWg5A nmKGKm5FFR2azlnhEbkBdruDoloF/hbCVjF3+AWVTiZKcifupEhij/mxZetS6udXoUjSOsMnU jhDYIjBH5m2rvo6Lb3hB5HC21KJtukQ96g6EV63IAysv6Kn3lspgoOeOFDaypCVq/4ZzRj73O q/iiB1DdkPlO9IFZo1vDMcwdBnvFdodPjLfj7hm1McnRcNtmoOw5BY6cVTz/JajnB3tblwarn K0F6OCM59kqID5uNyE08FPvLUGosA6nhmRkIzKGfHaxSM3SOh0QMMztmeO0END04/1z2jbDFt GLwoDcozfTviTq9GtqKr7rk3XiqJxchYGI+WCB58nMZwIHjxYdUm3c0KCnM7x21ipGsi64uwN Rj92Qis3X36Ja6MRaF04kzPrq/gG6tQjFD2TYV3OjhuQfeBTe7dY1BXddigVAMlODz2PVqbb0 SyuM/czyuyBJUhCofPm+bl1b8LlXnrbxqz6Ziyp2Qc1s0kuS7kKYPuf/1rGWVV9J4MEh0zXbs YFpL805H/CVUXpazlv9N1EYh8w4RdfluE4B4+EAxDRHdCrqNWNpZmiWxLRtUKkU/Td3LaLGSZ pRhvvV6BNgZMGTExYvnGaLNknt7qFZn+iyDrlcIo++MM4KW6sq7ksff37QnPIoBhX+pvJ8aGY f240SIS4gvXyzvmJ/867NQ+9Y4EaGbMNzhpI7mqWX7SsWJxnkDs4KUGdg7CMa+Vi93x9/PijI QmDyEHMABthPby8X X-Pg-Spam-Score: -1.9 (-) 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. --------------4E00EE3F051833EB456E30FB Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit In the previous mails we have seen some statements concerning the source format of postgres' documentation and other statements to formats which are derived from it. In the following I'm only speaking about the original format. Premised this, I want to second Victor Wagner, who wrote on pgsql-hackers: > Really, what change we need, it is conversion from SGML to XML format. > It would solve some real problems, such as ability to include diagrams > in the docs, and also let everyone to explicitely specify encoding in > XML declaration (and probably cause switch to UTF-8 as side effect, > because most XML-based tools use UTF-8 as default). The real fundamental step is the switch from SGML to XML. He consists not only in a change of the markup format (omittag, shorttag). We must also replace SGML tools for parsing, validating and generating diverse output formats like HTML or PDF with modern XML tools. And we need additional XSLT steps or modifications of the CSS files to replace the DSSSL scripts. This work is in progress. After we got rid of all SGML related parts we can profit from the actual XML tools and standards, eg.: - Docbook itself is moving from 4.x to 5.x on the basis of XML. (Actually I don't recommend this additional step because of some incompatibilities in the migration to 5.x, see: https://lists.oasis-open.org/archives/docbook/201606/msg00007.html ) - The common attribute "xml:lang" for translations - Extensions like XInclude, SVG, MathML, ... - ... On 23.08.2016 00:51, Tatsuo Ishii wrote: > From: Alexander Law > Subject: UTF-8 docs > Date: Mon, 22 Aug 2016 16:36:14 +0300 > Message-ID:<7fbf2e80-9507-0521-d0e9-913ab81a58df@gmail.com> > >> Hello, >> I've just seen a discussion about docs endoding in pgsql-hackers. >> >> https://www.postgresql.org/message-id/20160822.141645.655870136709055853.t-ishii%40sraoss.co.jp >> Can we continue the discussion in this mailing list? >> We (at Postgres Pro) have developed the whole build chain (with >> support for l10n) so we can just share it. > I have been just subscribed to the pgsql-docs list. > Here is the last conversation with Peter at pgsql-hackers. > >> On 8/22/16 9:32 AM, Tatsuo Ishii wrote: >>> I don't know what kind of problem you are seeing with encoding >>> handling, but at least UTF-8 is working for Japanese, French and >>> Russian. >> Those translations are using DocBook XML. > But in the mean time I can create UTF-8 HTML files like this: > > make html > [snip] > /bin/mkdir -p html > SP_CHARSET_FIXED=1 SP_ENCODING=UTF-8 openjade -wall -wno-unused-param -wno-empty -wfully-tagged -D . -D . -c /usr/share/sgml/docbook/stylesheet/dsssl/modular/catalog -d stylesheet.dsl -t sgml -i output-html -i include-index postgres.sgml > > Best regards, > -- > Tatsuo Ishii > SRA OSS, Inc. Japan > English:http://www.sraoss.co.jp/index_en.php > Japanese:http://www.sraoss.co.jp > > --------------4E00EE3F051833EB456E30FB Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit

In the previous mails we have seen some statements concerning the source format of postgres' documentation and other statements to formats which are derived from it. In the following I'm only speaking about the original format. Premised this, I want to second Victor Wagner, who wrote on pgsql-hackers:

> Really, what change we need, it is conversion from SGML to XML format.
> It would solve some real problems, such as ability to include diagrams
> in the docs, and also let everyone to explicitely specify encoding in
> XML declaration (and probably cause switch to UTF-8 as side effect,
> because most XML-based tools use UTF-8 as default).

The real fundamental step is the switch from SGML to XML. He consists not only in a change of the markup format (omittag, shorttag). We must also replace SGML tools for parsing, validating and generating diverse output formats like HTML or PDF with modern XML tools. And we need additional XSLT steps or modifications of the CSS files to replace the DSSSL scripts. This work is in progress.

After we got rid of all SGML related parts we can profit from the actual XML tools and standards, eg.:

- Docbook itself is moving from 4.x to 5.x on the basis of XML. (Actually I don't recommend this additional step because of some incompatibilities in the migration to 5.x, see: https://lists.oasis-open.org/archives/docbook/201606/msg00007.html )

- The common attribute "xml:lang" for translations

- Extensions like XInclude, SVG, MathML, ...

- ...





On 23.08.2016 00:51, Tatsuo Ishii wrote:
From: Alexander Law <exclusion@gmail.com>
Subject: UTF-8 docs
Date: Mon, 22 Aug 2016 16:36:14 +0300
Message-ID: <7fbf2e80-9507-0521-d0e9-913ab81a58df@gmail.com>

Hello,
I've just seen a discussion about docs endoding in pgsql-hackers.

https://www.postgresql.org/message-id/20160822.141645.655870136709055853.t-ishii%40sraoss.co.jp
Can we continue the discussion in this mailing list?
We (at Postgres Pro) have developed the whole build chain (with
support for l10n) so we can just share it.
I have been just subscribed to the pgsql-docs list.
Here is the last conversation with Peter at pgsql-hackers.

On 8/22/16 9:32 AM, Tatsuo Ishii wrote:
I don't know what kind of problem you are seeing with encoding
handling, but at least UTF-8 is working for Japanese, French and
Russian.
Those translations are using DocBook XML.
But in the mean time I can create UTF-8 HTML files like this:

make html
[snip]
/bin/mkdir -p html
SP_CHARSET_FIXED=1 SP_ENCODING=UTF-8 openjade  -wall -wno-unused-param -wno-empty -wfully-tagged -D . -D . -c /usr/share/sgml/docbook/stylesheet/dsssl/modular/catalog -d stylesheet.dsl -t sgml -i output-html -i include-index postgres.sgml

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp



--------------4E00EE3F051833EB456E30FB--