#!/usr/bin/perl # # prephtml - tidy up usman.html (generated by l2h from usman.tex). # Add page heading, table of contents etc. # $fname = $ARGV[0]; $quiet = 0; $singlePage = 1; $ext = "html"; $opp_version = "2.3"; # # general template for our output HTML pages; real contents will go to __BODY__ # $template = '
OMNeT++ Discrete Event Simulation System
__BODY__ '; # # read file into variable # print "reading $fname\n" unless $quiet; open( htmlf, $fname ) || die "cannot open $fname"; read( htmlf, $html, 1000000 ) || die "cannot read $fname"; # # kill unwanted formatting # print "removing unnecessary formatting and parts\n" unless $quiet; $html =~ s/ SIZE=2//g; $html =~ s/ FACE="[^"]*"//g; $html =~ s/ color=[a-z]*?//g; #$html =~ s/(\