This commit is contained in:
gferg 2001-06-06 22:13:28 +00:00
parent ff74422c72
commit 4bf8df24bb
2 changed files with 24 additions and 3 deletions

View File

@ -3,6 +3,24 @@
ldp_print - print tool/script for DocBook SGML/XML documents
######################################################################
Copyright (C) 2001-2000 - Greg Ferguson (gferg@metalab.unc.edu)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
######################################################################
This process/script is used in the production environment for the
LDP. It relies on the HTMLDOC software package (GPL'ed) which can be
obtained from the Easy Software Products (c) web site:
@ -55,6 +73,6 @@ o I ran into a problem with htmldoc v1.8.8 which required a source
====
gferg (at) sgi.com / Ferg
Greg Ferguson / gferg (at) metalab.unc.edu
11 Jan 2000

View File

@ -9,6 +9,7 @@
#
# log:
# 16Oct2000 - initial entry <gferg (at) sgi.com>
# 03Apr2001 - fix for <preface>
#
#
@ -30,7 +31,7 @@ sub fix_print_html {
# ignore everything until we see the chapter or sect
#
if( $_ =~ /CLASS="CHAP/ || $_ =~ /CLASS="chap/ ) {
if( $_ =~ /CLASS="CHAP/i || $_ =~ /CLASS="PREF/i ) {
$buf .= $_;
$indx++;
@ -145,7 +146,9 @@ sub fix_print_html {
$l[$cnt] =~ s/<H2/<H1/g;
$l[$cnt] =~ s/<\/H2/<\/H1/g;
}
if( $l[$cnt] =~ /^CLASS=\"CHAP/i ) {
if( $l[$cnt] =~ /^CLASS=\"CHAP/i
||
$l[$cnt] =~ /^CLASS=\"PREF/i ) {
$j = 1;
}
}