#!/usr/local/bin/perl
#
# slidemaker tool
# split a all.htm into slide*.htm
#
# Stephan Montigaud - stephan@w3.org
# created 970601
# modified by Pierre Fillault
# check the documentation at http://www.w3.org/Talks/YYMMsub/
#
# version: 4.0 - 19980612
# $Id: w3cburst.pl,v 1.32 1998/09/23 12:43:28 bbos Exp $
#
# NOTE: all the anchors in this tool contain the extension
# indeed this package has to work outside the environment of a web server
# Users need to be able to display their presentation using file:\\
# which requires link to 'real' files
#############################################################################
## default values of variables
##
## default doctype added on the slides
$doctype = "";
## name of raw html file containing the slides
$all = 'all.htm';
## table of content built from all.htm - also first page of the presentation
## this is only the basename as we need to generate one toc for each style sheets
## the main toc will not bear any more so the server can understand a request for '/'
## the next ones will bear a number corresponding to the slide index
$overview = 'Overview';
## name of the file containing the parameters of the presentation
$infos = 'infos.txt';
## link to the logo printed on all the slides
$logoLink = 'http://www.w3.org/';
## default location of the logo - works when slidemaker is used as a package
$logoFile = '../Icons/w3c_home.gif';
## if slidemaker is used online, then the location of the logo is likely to be different
## than the default
if (! -f $logoFile) {
# if the logo is not found, then we're likely to find it
# at /Talks/Icons/ for W3C AFS users
$logoFile = '/Talks/Icons/w3c_home.gif';
}
## alternate representation of the logo
$logoAlt = 'W3C ';
## default values set to none
$logoLink2 = ''; # link to a potential second reference
$logoFile2 = ''; # location of a second logo
$logoAlt2 = ''; # alternate representation of the second logo
## navigation icons used in the slides
$left = '../Icons/left.gif';
$right = '../Icons/right.gif';
$top = '../Icons/up.gif';
$bar = '../Icons/bar.gif';
$barl = '../Icons/barl.gif';
## for online use on the W3C site
if (! -d '../Icons') {
## the icons will be present at this default location
$left = '/Talks/Icons/left.gif';
$right = '/Talks/Icons/right.gif';
$top = '/Talks/Icons/up.gif';
$bar = '/Talks/Icons/bar.gif';
$barl = '/Talks/Icons/barl.gif';
}
## default author name
$author = 'W3C Staff';
## default presentation title
$talkTitle = 'W3C Talk';
## standard style sheets
$cssStandardFiles = '../Tools/w3ctalk-640.css,../Tools/w3ctalk-800.css,../Tools/w3ctalk-1024.css';
if (! -d '../Tools') {
## online location for W3C use
$cssStandardFiles = '/Talks/Tools/w3ctalk-640.css,/Talks/Tools/w3ctalk-800.css,/Talks/Tools/w3ctalk-1024.css';
}
## default charset use in meta tag http-equiv
$charset = 'iso-8859-1';
## default language setting is English
$baselang = 'en-us';
## HTML page color characteristics (background, text, link, visited link, active link)
$body = '
END
} else {
## the user chose a second logo
print FOO <
END
}
print FOO <$talkTitle
by $author
Table of contents
END
}
##
## the beginning of the table of content has been generated and saved
######################################################################################################
######################################################################################################
## generate the footer of the table of content
sub closeOverview
{
print FOO <