## Lout output
# Copyright (C) 1993-1995 Ian Jackson.
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# It is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# (Note: I do not consider works produced using these BFNN processing
# tools to be derivative works of the tools, so they are NOT covered
# by the GPL. However, I would appreciate it if you credited me if
# appropriate in any documents you format using BFNN.)
sub lout_startpackedlist { $lout_plc=-1; }
sub lout_endpackedlist { &lout_newline if !$lout_plc; }
sub lout_packeditem {
&lout_newline if !$lout_plc;
&lout_tab(($lout_plc>0)*40+5);
$lout_plc= !$lout_plc;
}
sub lout_startlist {
&lout_endpara;
print LOUT "\@RawIndentedList style {\@Bullet} indent {0.5i} gap {1.1vx}\n";
$lout_styles .= 'l';
$lout_status= '';
}
sub lout_email { &lout_courier; &lout_text('<'); }
sub lout_endemail { &lout_text('>'); &lout_endcourier; }
sub lout_ftpon { &lout_courier; } sub lout_endftpon { &lout_endcourier; }
sub lout_ftpin { &lout_courier; } sub lout_endftpin { &lout_endcourier; }
sub lout_docref { } sub lout_enddocref { }
sub lout_ftpsilent { $lout_ignore++; }
sub lout_endftpsilent { $lout_ignore--; }
sub lout_newsgroup { &lout_courier; }
sub lout_endnewsgroup { &lout_endcourier; }
sub lout_text {
return if $lout_ignore;
$lout_status= 'p';
$_= &lout_sanitise($_[0]);
s/ $/\n/ unless $lout_styles =~ m/[fhX]/;
print LOUT $_;
}
sub lout_tab {
local ($size) = $_[0]*0.5;
print LOUT " |${size}ft ";
}