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 KAA67451 for ; Sat, 7 Aug 1999 10:58:24 -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 OAA03680 for ; Sat, 7 Aug 1999 14:58:11 GMT Sender: lockhart@hub.org Message-ID: <37AC4983.7B1A14E8@alumni.caltech.edu> Date: Sat, 07 Aug 1999 14:58:11 +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: Postgres Documentation List Subject: [Fwd: New docbook2man-spec.pl patches] Content-Type: multipart/mixed; boundary="------------3102C65F1682F8B9EFBE440F" This is a multi-part message in MIME format. --------------3102C65F1682F8B9EFBE440F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit -- Thomas Lockhart lockhart@alumni.caltech.edu South Pasadena, California --------------3102C65F1682F8B9EFBE440F Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mozilla-Status2: 00000000 Message-ID: <37AC494E.B7D4973C@alumni.caltech.edu> Date: Sat, 07 Aug 1999 14:57:18 +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: Steve Cheng , sgml-tools@via.ecp.fr Subject: New docbook2man-spec.pl patches Content-Type: multipart/mixed; boundary="------------61FD9BFD2726117E3CD9C26D" This is a multi-part message in MIME format. --------------61FD9BFD2726117E3CD9C26D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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). Thanks! - Thomas btw, my reported problems with the SGML::Refs package are no longer present; apparently they went away once I understood what was going on :/ -- Thomas Lockhart lockhart@alumni.caltech.edu South Pasadena, California --------------61FD9BFD2726117E3CD9C26D 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 13:43:07 1999 *************** *** 9,14 **** --- 9,38 ---- nsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl + =head1 OPTIONS + + =over 4 + + =item --section