calpost |
|
|
This was originally built as a writer's/editor's tool, to assist in plotting story events. It has other applications as well. Give it the name of a text file which is in a particular format, like so:
19apr87: 2:14pm girl and panda arrive 2:31pm Akane tries to take girl's head off 2:53pm Akane discovers a new member 3:11pm Akane tables all discussion 20apr87: 7:41am ladle rot for red rioting hood 7:53am malice in blue-blunderland It will emit a five-week HTML calendar with those entries listed on those days. The calendar is functional rather than pretty, but it works. It will send its results to stdout (the screen). You can redirect that to a file, typically with an 'html' filetype so a browser will know how to display it. You can tell it how many weeks long the calendar should be with an option switch: calpost -w 52 listfile will result in a calendar for an entire year's events, whether or not listfile has events that far ahead. The list might just as easily be a dinner menu for the week(s), project task-starts, television listings, or an extract of amateur-radio station contest logs. Details:
calpost [-w wks] [-o outfile] infile
wks is weeks-to-do
outfile is output filename (default: stdout)
infile is text list sorted by days
A related CGI program, ascalpost, will present a month of planetary events, including most Void-Of-Course moons, assuming you have astrolog installed on your Unix-type computer as well as Apache. --siaru |