haiku
haiku
discovers "Found Haiku"(a trademark of Don
Marti, as seen at headline
haiku) in
plain text files.
This code was written partly as a test of the new generators in Python2.2. I'll try and backport it to something a bit less cutting edge one day.
Full details in the README. Source is here. Some example output below.
(I've been having great fun running it on incoming spam.)
% haiku /usr/share/common-licenses/GPL # dump everything verbatim copies of this license document, but changing it is but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to it is not allowed. Preamble The licenses for most software are ^C % haiku -c -s /usr/share/common-licenses/GPL # show only verse that look like sentences When we speak of free software, we are referring to freedom, not price. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
Download
haiku is now up to version $m=readlink("./haiku/haiku.tar.gz") ; $m=str_replace("haiku","",$m); $m=str_replace(".tar.gz","",$m); echo $m; ?>. Here's where you can get it:
haiku - the Python script.readme.haiku - how to get it to work
changelog - my, how it has grown
haiku.tar.gz - all the above, tarred
You'll need Python 2.2 or later and
a local copy of the c06d file from
the
Carnegie Mellon Pronunciation Dictionary. Keep c06d
in the same directory
as the haiku
program. The README explains this in more detail.