1 # skip over header material
2 # Copyright (C) 1999 Sandy Harris.
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # RCSID $Id: html2txt.sed,v 1.1 2004/03/15 20:35:24 as Exp $
19 # eliminate possible DOS crud
21 #get rid of HTML comments
24 # citations & emphasis -> visible
33 s/<blockquote>/Quote -->/
34 s/<\/blockquote>/<-- End Quote/
44 /^<a name=[a-zA-Z0-9\.]*>$/d
45 s/<a name=[a-zA-Z0-9\.]*>//
49 s/^<dt>$/-----------------------------------------/
50 s/^<dt>/-----------------------------------------\
54 # other types of lists
65 # line break and paragraph markers
66 # different subst depending where they are in line