diff --git a/LDP/builder/ldp_print/VERSION b/LDP/builder/ldp_print/VERSION index 0be56e76..6b4afcab 100644 --- a/LDP/builder/ldp_print/VERSION +++ b/LDP/builder/ldp_print/VERSION @@ -1 +1 @@ -0.5.1, 2002-01-18 +0.6.0, 2002-04-02 diff --git a/LDP/builder/ldp_print/fix_print_html.lib b/LDP/builder/ldp_print/fix_print_html.lib index f27b9e6c..819f4671 100644 --- a/LDP/builder/ldp_print/fix_print_html.lib +++ b/LDP/builder/ldp_print/fix_print_html.lib @@ -14,6 +14,7 @@ # 12Oct2001 - 0.4 - fix for sections; loop thru both files (body/title) # 27Nov2001 - 0.5 - fixed bug in determining where doc-index lies # 18Jan2002 - 0.5.1 - entity fix (822*) +# 02Apr2002 - 0.6 - misc fixes (bibliography/appendix, etc). # sub fix_print_html { @@ -126,8 +127,10 @@ sub fix_html { $$buf =~ s/(\n>/$1$2\n/gms; $$buf =~ s/(\n>/$1$2\n/gms; if( $is_article == 0 ) { - $$buf =~ s/(\nCLASS="SECT[TION\d]+"\n>)
))
) -1 ) { @@ -137,6 +140,7 @@ sub fix_html { $$buf = substr($$buf, 0, $indx); $$buf .= "\n<\/BODY>\n<\/HTML>\n\n"; } + $$buf =~ s/\&\#13;//g; $$buf =~ s/\&\#60;/\</g; $$buf =~ s/\&\#62;/\>/g; @@ -177,6 +181,12 @@ sub fix_html { $l[$cnt] =~ s/<\/H2/<\/H1/g; } if( $l[$cnt] =~ /^CLASS=\"CHAP/i + || + $l[$cnt] =~ /^NAME=\"BIBL/i + || + $l[$cnt] =~ /^CLASS=\"APPENDIX/i + || + $l[$cnt] =~ /^CLASS=\"GLOSSARY/i || $l[$cnt] =~ /^CLASS=\"PREF/i ) { $j = 1; @@ -188,6 +198,10 @@ sub fix_html { } $$buf =~ s/><\/DIV\n//gms; + + $buf =~ s/]*?>//gms; + $buf =~ s/<\/SPAN\n>//gms; + $$buf =~ s/(>(<\/LI\n)/$1$2$3/gms; return; diff --git a/LDP/builder/ldp_print/ldp_print b/LDP/builder/ldp_print/ldp_print index 48df51ae..67129b96 100755 --- a/LDP/builder/ldp_print/ldp_print +++ b/LDP/builder/ldp_print/ldp_print @@ -53,7 +53,7 @@ $fname_wo_ext =~ s/\.[\w]+$//; &fix_print_html($ARGV[0], 'body.html', 'title.html'); my($cmd) = "htmldoc --size universal -t pdf -f ${fname_wo_ext}.pdf " . - "--firstpage p1 --titlefile title.html body.html"; + "--firstpage p1 --titlefile title.html body.html --footer c.1"; # For postscript output; append onto the above cmd string: #