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