#!/usr/local/bin/perl
# usage
# slideshow.p file.html
# David J.C. MacKay (c) 1997
#
# Reads in a file written by lisa2html.p and writes a set of linked
# files.
$path=""; $title="";
# How to override with command line
eval "\$$1=\$2" while @ARGV && $ARGV[0]=~ /^(\w+)=(.*)/ && shift;
# Read in stuff until
$i=1 ; $blurb[$i] ="" ;
while (<>) {
s/\//g;
$blurb[$i] .= $_ ;
if ( /\- / ) {
s/\
- //g;
s/a href=/img src=/g;
s/\>/ alt=/g;
s/\<\/a//g;
s/\(.*// ;
$image[$i] = $_ ;
$i ++ ; $blurb[$i] ="" ;
}
}
print "\n$title\n\n
$title
\n \n" ;
print ( join ( @image ) ) ;
#
# Other users should put their personal footer here.
#
print "
\nDavid MacKay <mackay\@mrao.cam.ac.uk>\n";
print "
\n\n\n \n" ;