### File: html3.0.pl ### Language definitions for HTML 3.0 ### Written by Marcus E. Hennecke ### Version 0.4, February 2, 1996 ## Copyright (C) 1995 by Marcus E. Hennecke ## This program 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 of the License, or ## (at your option) any later version. ## This program 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 this program; if not, write to the Free Software ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ### Extend declarations %declarations = ( # 'tiny', '', # 'scriptsize', '', # 'footnotesize', '', # 'small', '', # 'large', '', # 'Large', '', # 'LARGE', '', # 'huge', '', # 'Huge', '', 'centering', '
', 'center', '
', 'flushleft', '
', 'raggedright', '
', 'flushright', '
', 'raggedleft', '
', %declarations ); sub do_cmd_underline { local($_) = @_; s/$next_pair_pr_rx//o; &lost_argument("underline") unless ($&); join('',"$2",$_); } ### Allow for alignment to work sub do_env_center { local($_) = @_; "
\n

$_

\n
"; } sub do_env_flushright { local($_) = @_; "
\n

$_

\n
"; } sub do_env_flushleft { local($_) = @_; "
\n

$_

\n
"; } sub do_cmd_centerline { local($_) = @_; s/$next_pair_pr_rx//o; &lost_argument("centerline") unless ($&); "
$&
\n
$_"; } sub do_cmd_leftline { local($_) = @_; s/$next_pair_pr_rx//o; &lost_argument("leftline") unless ($&); "
$&
\n
$_"; } sub do_cmd_rightline { local($_) = @_; s/$next_pair_pr_rx//o; &lost_argument("rightline") unless ($&); "
$&
\n
$_"; }