Received: from localhost (IDENT:root@hectic-2.jpl.nasa.gov [128.149.68.204]) by hub.org (8.9.3/8.9.3) with ESMTP id MAA77416 for ; Sat, 7 Aug 1999 12:10:54 -0400 (EDT) (envelope-from lockhart@alumni.caltech.edu) Received: from alumni.caltech.edu (lockhart@localhost [127.0.0.1]) by localhost (8.8.7/8.8.7) with ESMTP id QAA05762; Sat, 7 Aug 1999 16:10:16 GMT Sender: lockhart@hub.org Message-ID: <37AC5A68.B9A4296C@alumni.caltech.edu> Date: Sat, 07 Aug 1999 16:10:16 +0000 From: Thomas Lockhart X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.0.36 i686) X-Accept-Language: en MIME-Version: 1.0 To: sgml-tools@via.ecp.fr, Steve Cheng CC: Postgres Documentation List Subject: Re: New docbook2man-spec.pl patches References: <37AC494E.B7D4973C@alumni.caltech.edu> Content-Type: multipart/mixed; boundary="------------DF0F95B3DDD8942F787E05F5" This is a multi-part message in MIME format. --------------DF0F95B3DDD8942F787E05F5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ack! I slightly broke the cross reference section numbers in my last set of cleanups (so they came out empty). Here is a revised patch; sorry for the duplication... - Thomas > I've been working some more on the perl-based man page utility at > > http://shell.ipoline.com/~elmert/hacks/docbook2X/ > > Here are some patches (on the 1.17 release, the latest) which > incorporate the following changes: > > o ID attributes on REFENTRY and REFENTRYTITLE are used to develop > cross reference information, as Norm Walsh indicated he would expect > the behavior to be. The original XREFLABEL functionality is also > supported, so either style will work. > > o The section number for the man page output is determined in a > subroutine ManPageSect(), since it is called from several places. > > o The output file name and citation name are determined in a > subroutine FileInfo(), again since it is called from several places. > > o A new switch, --blockformat, is defined to specify that the SYNOPSIS > should not be folded into a single line, but rather kept as a verbatim > block. This behavior was already invoked if one had explicitly coded > FORMAT attributes into the SYNOPSIS header, but now you don't have to > do that if you specify the switch. > > o Cross references are resolved using both the LINKEND and ENDTERM > attributes on the XREF tag. ENDTERM takes precedence, as in Norm's > style sheets. > > o manpage.log is written to show changes to the cross-reference > database. We might want to make this an option. > > o perldoc info has been updated to show command line options. > > o My last patches played around with trying to automatically determine > the appropriate man page section number by looking for an APPLICATION > tag in the REFENTRYNAME block. I've simplified the options, making it > easier to just specify which section the doc should be in. The code > still looks for the APPLICATION tag per Steve's fixes on my patches, > but there may need to be another patch to get the options and code > just right. > > This utility now produces man pages from PostgreSQL sgml docs of > sufficient quality to replace our old hand-written pages (once I > understand more about nsgmls; will ask on a separate thread). -- Thomas Lockhart lockhart@alumni.caltech.edu South Pasadena, California --------------DF0F95B3DDD8942F787E05F5 Content-Type: text/plain; charset=us-ascii; name="docbook2man-spec.pl.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="docbook2man-spec.pl.patch" *** docbook2man-spec.pl.orig Fri Jul 30 21:57:12 1999 --- docbook2man-spec.pl Sat Aug 7 16:05:20 1999 *************** *** 9,14 **** --- 9,38 ---- nsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl + =head1 OPTIONS + + =over 4 + + =item --section