Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id C72259FB22A for ; Fri, 29 Sep 2006 01:32:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 56101-07 for ; Fri, 29 Sep 2006 01:32:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp2.rz.uni-karlsruhe.de (smtp2.rz.uni-karlsruhe.de [129.13.185.218]) by postgresql.org (Postfix) with ESMTP id 4D04E9FB226 for ; Fri, 29 Sep 2006 01:32:30 -0300 (ADT) Received: from rzstud2.stud.uni-karlsruhe.de (exim@rzstud2.stud.uni-karlsruhe.de [193.196.41.38]) by smtp2.rz.uni-karlsruhe.de with esmtp (Exim 4.50 #1) id 1GTA33-0003rz-BM; Fri, 29 Sep 2006 06:32:29 +0200 Received: from uwi7 by rzstud2.stud.uni-karlsruhe.de with local (Exim 4.43) id 1GTA33-000626-4c; Fri, 29 Sep 2006 06:32:29 +0200 From: Andreas Seltenreich To: Peter Eisentraut Cc: pgsql-docs@postgresql.org Subject: Re: Texinfo docs/target References: <87br0gmi29.fsf@gate450.dyndns.org> <200511192307.48944.peter_e@gmx.net> X-Face: $:F<87a[gD1?#R6S3j21cr1&C&7bd63GHC.tSdskUb}hhwG(ci*=D5kJ<_N+p9q(7-, PnG. Et.Yh, andreas+pg@gate450.dyndns.org, pgsql-docs@postgresql.org X-Hashcash: 1:24:060929:pgsql-docs@postgresql.org::MKPw/YDsom86tGMC:00000000u400 X-Hashcash: 1:24:060929:peter_e@gmx.net::gV1lkQtrXIeaLGnl:2w8Ac Date: Fri, 29 Sep 2006 06:32:27 +0200 In-Reply-To: <200511192307.48944.peter_e@gmx.net> (Peter Eisentraut's message of "Sat\, 19 Nov 2005 23\:07\:48 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Message-ID: <87ejtvz410.fsf@gate450.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.273 tagged_above=0 required=5 tests=INFO_TLD X-Spam-Level: * X-Archive-Number: 200609/33 X-Sequence-Number: 3720 --=-=-= Peter Eisentraut writes: > Andreas Seltenreich wrote: >> Now I'm wondering, if it'd be worth fixing the index and some minor >> encoding deficiencies (e.g. medium-length dashes end up as >> "[mdash]"), and adding Autoconf support in order to make it a proper >> target. > > We probably won't ship it with the default distribution, but I don't see > any harm in at least providing build support for it initially. The index seems to work with more recent versions of DB2X, and the apparent encoding problems turned out to be an overlook in the postgres.xml target. I had to run makeinfo with the --no-validate option, mostly because the info design doesn't allow duplicate node names. However, it doesn't seem to impair navigation besides addressing nodes by name, and since most of the duplicate names are nodes like "Changes" in the release notes section, I don't think it will be more of a nuisance than being unable to look up Pi in the index... I figured adding autoconf support for db2x/info wouldn't be very wise as long as the experimental postgres.xml target the new rules depend on doesn't have any either. Patch attached. regards, andreas --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=Makefile.diff Index: doc/src/sgml/Makefile =================================================================== RCS file: /projects/cvsroot/pgsql/doc/src/sgml/Makefile,v retrieving revision 1.76 diff -u -r1.76 Makefile --- doc/src/sgml/Makefile 6 Apr 2006 18:54:36 -0000 1.76 +++ doc/src/sgml/Makefile 29 Sep 2006 04:27:59 -0000 @@ -212,7 +212,7 @@ postgres.xml: postgres.sgml $(GENERATED_SGML) $(OSX) -x lower $< | \ - sed -e 's/\[\(lt\|gt\|amp\|nbsp\|copy\|quot\|ouml\|uuml\|egrave\) *\]/\&\1;/g' \ + sed -e 's/\[\(amp\|copy\|egrave\|gt\|lt\|mdash\|nbsp\|ouml\|pi\|quot\|uuml\) *\]/\&\1;/g' \ -e '1a\' -e '' \ >$@ @@ -222,6 +222,24 @@ htmlhelp: stylesheet-hh.xsl postgres.xml $(XSLTPROC) $(XSLTPROCFLAGS) --stringparam pg.version '$(VERSION)' $^ +## +## Experimental Texinfo targets +## + +DB2X_TEXIXML = db2x_texixml +DB2X_XSLTPROC = db2x_xsltproc +MAKEINFO = makeinfo + +postgres.texixml: postgres.xml + $(DB2X_XSLTPROC) -s texi $< -o $@ + +postgres.texi: postgres.texixml + $(DB2X_TEXIXML) --encoding=iso-8859-1//TRANSLIT $< \ + --to-stdout > $@ + +postgres.info: postgres.texi + $(MAKEINFO) --enable-encoding --no-split \ + --no-validate $< -o $@ ## ## Check @@ -249,3 +267,5 @@ rm -f INSTALL HISTORY regress_README # XML rm -f postgres.xml htmlhelp.hhp toc.hhc index.hhk +# Texinfo + rm -f *.texixml *.texi *.info db2texi.refs --=-=-=--