LEX = flex
BUILD = jethro kraut cockney jive nyc ken ky00te newspeak nethackify
-OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd censor spammer uniencode
+OTHER = eleet b1ff chef jibberish upside-down rasterman studly fudd \
+ censor spammer uniencode pirate
CFLAGS = -O2 -lfl
INSTALL_PROGRAM = install
-filters (2.36) UNRELEASED; urgency=low
+filters (2.36) unstable; urgency=low
- * Added pirate filter. TODO: copyright, man page integration, makefile int
+ * Impress all yer maties on talk like a pirate day with th' new priate
+ filter, by Dougal Campbell, to be sure.
+ * Retroactively spiced up th' changelog. Shiver me timbers!
-- Joey Hess <joeyh@debian.org> Thu, 25 Aug 2005 23:28:25 -0400
filters (2.35) unstable; urgency=low
- * Add nethackify filter. Closes: #317656
+ * Ad| nethackify filtcr. Closes: #317656
* Add automatic webpage update gunk.
-- Joey Hess <joeyh@debian.org> Thu, 25 Aug 2005 22:24:29 -0400
* Woo hoo! JWZ has placed newspeak under a BSD-ish license, so it moves
in from filters-nonfree. Which is now empty, and will be removed.
- * Added studly caps filter by Nick Phillips <nwp@lemon-computing.com>.
+ * AdDed StudLy cAps FiltEr bY NiCk PHillIps <nwp@lemon-computing.com>.
-- Joey Hess <joeyh@debian.org> Mon, 6 Aug 2001 20:38:49 -0400
filters (2.14) unstable; urgency=low
- * Hahaha. Added a rasterman filter. (Not just "raster" as I worry about
- namespace pollution.)
+ * hahaha. addde a rasterman filter. (nto just "raster" as i woryr about
+ namespaec pollution.)
-- Joey Hess <joeyh@debian.org> Mon, 27 Nov 2000 20:00:28 -0800
filters (2.1) unstable; urgency=low
- * Added upside down filter, which well, turns text upside down.
+ 'umop ap!sdn fxaf sujnf `77am y)!ym `jaf7!j umop ap!sdn pappe *
-- Joey Hess <joeyh@debian.org> Sat, 20 Feb 1999 18:22:43 -0800
filters (1.6) unstable; urgency=low
- * Added eleet filter, thanks to Jeremy Worrells <jworrell@priacc.com>.
+ * 4dd3d 3l33t f1lt3r, th4nk5 t0 j3r3my w0rr3ll5 <jworrell@priacc.com>.
-- Joey Hess <joeyh@debian.org> Fri, 6 Mar 1998 11:41:29 -0800
The nethackify filter is copyright 2004 by G�kan Seng�
<gurkan@linuks.mine.nu> and is released under the gpl.
+The pirate filter was converted from a php version in the funfilters, which
+are Copyright 2003 by Dougal Campbell and are licensed under the GPL.
+
Everything else is copyright 1999-2005 by Joey Hess, under the terms of GPL.
The full text of the GNU GPL can be found in /usr/share/common-licenses/GPL
on Debian systems.
.TH FILTERS 6
.SH NAME
-ken, b1ff, censor, chef, cockney, eleet, fudd, jethro, jibberish, jive, kraut, ky00te, newspeak, nyc, rasterman, spammer, studly, uniencode, upside\-down \- assorted text filters
+ken, b1ff, censor, chef, cockney, eleet, fudd, jethro, jibberish, jive, kraut, ky00te, nethack, newspeak, nyc, pirate, rasterman, spammer, studly, uniencode, upside\-down \- assorted text filters
.SH SYNOPSIS
$SHELL | chef
b1ff | ircII | censor
.SH "DESCRIPTION"
All of these programs are filters to do all sorts of strange things to text.
-No personal, racial, societal slurs are intended. For amusement only.
+No personal, racial, religious or societal slurs are intended. For amusement
+only.
.P
All the filters read input from stdin, change it, and write the filtered
text to stdout.
CDA-ize text
.IP nyc
Brooklyn English
+.IP pirate
+Talk like a pirate.
.IP rasterman
Makes text look like it came from the keyboard of Carsten Haitzler.
.IP spammer
<rdm@test.legislate.com>, jethro is by Duane Paulson
<ci922@cleveland.freenet.edu>, rasterman is by Zachary Beane, ken is by
Stephen K Mulrine <skm@eqsn.net>, newspeak is by Jamie Zawinski
-<jwz@jwz.org>, studly is by Nick Phillips <nwp@lemon\-computing.com>, and
-kraut is by John Sparks.
+<jwz@jwz.org>, studly is by Nick Phillips <nwp@lemon\-computing.com>,
+G�kan Seng� <gurkan@linuks.mine.nu> wrote nethackify, Dougal Campbell
+<dougal@gunters.org> wrote pirate, and kraut is by John Sparks.
kraut
cockney
jive
+pirate
nyc
ken
ky00te
s/ing\b/in'/g;
s/ings\b/in's/g;
-s/(\.[ \t])/avast($1,3)/eg;
-s/([!\?][ \t])/avast($1,2)/eg; # Greater chance after exclamation
+s/(\.( |\t|$))/avast($1,3)/eg;
+s/([!\?]( \t|$))/avast($1,2)/eg; # Greater chance after exclamation
sub avast {
my $stub=shift;