cannam@127: ## HTML output
cannam@127: # Copyright (C) 1993-1995 Ian Jackson.
cannam@127:
cannam@127: # This file is free software; you can redistribute it and/or modify
cannam@127: # it under the terms of the GNU General Public License as published by
cannam@127: # the Free Software Foundation; either version 2, or (at your option)
cannam@127: # any later version.
cannam@127:
cannam@127: # It is distributed in the hope that it will be useful,
cannam@127: # but WITHOUT ANY WARRANTY; without even the implied warranty of
cannam@127: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cannam@127: # GNU General Public License for more details.
cannam@127:
cannam@127: # You should have received a copy of the GNU General Public License
cannam@127: # along with GNU Emacs; see the file COPYING. If not, write to
cannam@127: # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
cannam@127: # Boston, MA 02111-1307, USA.
cannam@127:
cannam@127: # (Note: I do not consider works produced using these BFNN processing
cannam@127: # tools to be derivative works of the tools, so they are NOT covered
cannam@127: # by the GPL. However, I would appreciate it if you credited me if
cannam@127: # appropriate in any documents you format using BFNN.)
cannam@127:
cannam@127: %saniarray= ('<','lt', '>','gt', '&','amp', '"','quot');
cannam@127:
cannam@127: sub html_init {
cannam@127: $html_prefix = './'.$prefix;
cannam@127: $html_prefix =~ s:^\.//:/:;
cannam@127: system('rm','-r',"$html_prefix.html");
cannam@127: system('mkdir',"$html_prefix.html");
cannam@127: open(HTML,">$html_prefix.html/index.html");
cannam@127: print HTML "\n";
cannam@127: print HTML "\n";
cannam@127: $html_needpara= -1;
cannam@127: $html_end='';
cannam@127: chop($html_date=`date '+%d %B %Y'`);
cannam@127: chop($html_year=`date '+%Y'`);
cannam@127: }
cannam@127:
cannam@127: sub html_startup {
cannam@127: print HTML <
cannam@127: $user_title
cannam@127:
cannam@127:
cannam@127:
cannam@127:
cannam@127:
cannam@127:
cannam@127:
cannam@127:
cannam@127: