COOKIE or FORTUNE homepage.
This page (and its copy on FortuneCity) has been visited
Cookie is a BSD-games Fortune clone.
Fortune is a program that shows a short text (quote or joke) each time
it is run. Such a text is called a "fortune".
Currently I also distribute 21 MB Fortunes archive, a sed based shell-script to
convert to true Fortune sources is included in the source archive
The new 32-bits version of Cookie isn't ready yet, but development quite fast.
Most main system run, only the commandline interface and handling must be added,
and some configurability must also be implemented. I sometimes write in the page
below if Cook32 was available. If it isn't, I'm sorry, but I'm not good in keeping pages up to date :-)
Cook32 also support W95's longfilenames and better configurationfile support.
The main differences between Cookie and Fortune program are:
- Cookie operates on compressed (binary) archives with fortunes. The compression is
now either none (archive only), zlib or lzh/lzw.
- Cookie has a category system. Fortune can retrieve fortunes from several
source files which can be used as a workaround to use categories. Cookie has a complex
category and grade system which also exists inside sourcefiles, and which can be
tested (selective run of fortune) or manipulated in a different way
- Cookie is written in Free Pascal
which currently operates on Go32v2(dos-extender),
Linux, OS/2 and Win32 (console app, but graphical frontends are possible). Other platforms
are under construction
I never saw the original Fortune program outside the Linux/Unix domain). I never
tried to compile them using DJGPP myself though
- Cookie comes with some small apps that manipulate sourcefiles and archives, e.g. a sorter which also
kills (the most obvious) duplicates, and splitting archives up according to
size and/or category. I hope to extend these features in the next versions(with CGI and telnet support
The main differences between Cookie and Fortune fortune sources are:
Problem (1) above (the categories) are tackled by a sed based shellscript included in
the source archive. However if you do this you loose all category information.
It is generally wiser to download the cookie program, split the archive according
to size or category, and run the shellscript on the splitted sources.
- Cookie implements the categories in the sources. After the "%"
separator an exclamation with the category code follows (like e.g. %!AA 123)
- Fortunes starting with a hashmark "#" are considered a comment, and
- Fortune sourcefiles can have both the Unix (lf) and Dos (crlf) end of line.
- Cookie has no support yet for the low-ascii (avatar terminal codes?) in original
Fortune files. Can somebody explain to me what these do?
- No support yet for ROT13 (offensive) fortunes. A converter (ROT13'er) is however included in
the util binary.
sources for cookie v1.05