home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Der Mediaplex Sampler - Die 6 von Plex
/
6_v_plex.zip
/
6_v_plex
/
DISK5
/
DOS_17
/
YACPU11.ZIP
/
YACPU.DOC
< prev
next >
Wrap
Text File
|
1992-08-03
|
13KB
|
361 lines
------------------------------------------------------------------------------
YACPU 1.1 - (C) Copyright 1991-1992 by Anders Ohlsson
------------------------------------------------------------------------------
PROGRAM
YACPU - Yet Another Calendar Printing Utility for HP LaserJet III
VERSION
1.1
COPYRIGHT
YACPU is (C) copyright 1991-1992 by Anders Ohlsson
YACPU is not public domain, share-ware, or free-ware. It's like-ware...
If you like it, send me a postcard, a dollar, or whatever you think
it's worth.
PURPOSE
YACPU prints three kinds of planning calendars:
1. Six-month calendars for the first or second half of a year
2. Monthly calendars
3. Weekly calendars
Nine languages are currently supported (English, Swedish, German, French,
Spanish, Finnish, Norwegian, Italian and Latin).
YACPU prints an optional title at the top, names of the months, days of
the week, and week numbers. Sundays and other holidays are highlighted.
Optional day quotes are printed in the day boxes. YACPU also prints the
moon phases and optionally the times for them.
THANKS
Many thanks to all of you who sent me postcards, supported me with more
languages, Gauss Easter formula, moon phase formulas, suggestions and
other useful stuff.
HISTORY
1.0 Initial release (1991-09-03)
1.1 Released 1992-08-03
- Added a monthly calendar
- Added a weekly calendar
- Holidays can now be on fixed dates, offset to Easter Day, or
on a given weekday after a given date
- Output is now sent to standard output
- Added moon phases and switches to control them
- Added switch for time zone, and for DST correction (both are
required for correct calculation of the moon phases)
- Added support for Finnish, Norwegian, Italian and Latin
- Spelled March correctly (used to be Mars)
- The user can specify the holiday file
- Added user specified day quotes
- Added switch to select paper size (A4/letter/legal)
- Added switch to highlight Saturdays
- Added switch to suppress highlighting of Sundays
- Added switch to suppress highlighting of holidays
- Added switch to suppress printing of week numbers
AUTHOR
Anders Ohlsson
Tjadervagen 4
S-746 34 Balsta
Sweden
InterNet: ao@elixir.e.kth.se, ao@octopus.tds.kth.se or ao@infovox.se
FILES
Files included in this archive are:
YACPU DOC - This file
YACPU EXE - The executable
HOLIDAYS TXT - Sample holiday file
The sample file is for Swedish holidays!
RECOMMENDED USE
Put YACPU.EXE and HOLIDAYS.TXT in your utilities directory and make sure
you have your utilities directory in your PATH.
Now you can run YACPU from any directory and it'll be able to find the
holiday file.
SYNTAX
YACPU -c<calendar type> -d<date>
[-h<holiday file>] [-l<language>] [-p<paper size>] [-t<title>]
[-z<time zone>] [-S] [-D] [-s] [-H] [-Q] [-w] [-m] [-M]
Output is sent to standard output. You probably want to redirect it to a
printer or a file, e.g.:
YACPU -c1 -d19920803 > prn (prints July-December, 1992)
Required parameters:
-c<calendar type> 1 - six-months, 2 - month, 3 - week
-d<date> a date in the period for which you want a calendar
Optional parameters:
-h<holiday file> the holiday file
-l<language> en, sw, ge, fr, sp, fi, no, it or la
-p<paper size> 1 - A4, 2 - letter, 3 - legal
-t<title> the title enclosed in quotation marks
(Note: The title is not printed on weekly calendars)
-z<time zone> the time zone (e.g. -z-5 gives GMT-5)
Optional switches:
-S highlight Saturdays
-D don't use DST correction
-s don't highlight Sundays
-H don't highlight holidays
-Q don't print the day quotes
-w don't print week numbers
-m don't print moon phases
-M don't print moon times
Default values:
<holiday file> HOLIDAYS.TXT
<language> English (en)
<paper size> A4
<title> the calendar year (and month for monthly calendars)
<time zone> 1 (GMT+1)
(<...> denotes parameter names and [...] denotes optional parameters)
NOTES
* For correct calculation of the moon phases, the time zone and use
of DST correction must be correctly specified.
* en, sw, ge, fr, sp, fi, no, it and la are language initials and stands
for English, Swedish, German, French, Spanish, Finnish, Norwegian,
Italian and Latin respectively.
* Parameters can be typed in any order. You can even specify the same
parameter more than once (the last overrides the previous ones).
* You can use "/" instead of "-" as switch character if you wish. You can
mix them if you like.
* If you don't specify a title, the year will be printed at the top of the
calendar sheet. If you don't want a title, nor the year to be printed,
specify an empty title (i.e. -t"").
* ASCII 32-165 except 127,156-159 are currently supported. The width table
I use is not perfect, see the "SUPPORT" section below. Using characters
other than ASCII 32-165 may cause unpredictable results.
* This program is based on the Gregorian calendar. Concerning the intro-
duction of this calendar system in different countries, please consult
a history book. It should however work for all Western countries after
AD 1802.
EXAMPLES
Print a calendar for Jul-Dec, 1991 in English:
YACPU -c1 -d19910701 > prn
Print a calendar for August, 1992 in Italian:
YACPU -c2 -d19920801 -lit > prn
Print a calendar for week #32, 1992 in Swedish:
YACPU -c3 -d19920806 -lsw > prn
Print a calendar for Jan-Jun, 2001 in German:
YACPU -c1 -d20010101 -lge > prn
Print a calendar for Jan-Jun, 1995 in English with a title:
YACPU -c1 -d19950101 -t"Planning Calendar for 1995" > prn
Print a calendar on COM2:
YACPU -c1 -d19910701 > com2
Print a calendar on D:\TEST\YACPU.OUT:
YACPU -c1 -d19920101 > d:\test\yacpu.out
Print a calendar using a different holiday file:
YACPU -c1 -d19920701 -hd:\t\holidays -lit -p2 -z-6 > prn
HOLIDAYS AND QUOTES
The holidays and day quotes are listed in a special holiday file. If YACPU
can't find this file, YACPU says so, but still prints the calendar. There's
one exception: If you specify a different holiday file with -h, and that
file doesn't exist, YACPU will say so, and no calendar will be printed.
The holiday file is one of these:
* The filename specified with -h
* HOLIDAYS.TXT in the current directory
* HOLIDAYS.TXT in the directory where YACPU.EXE is
That way, you can have YACPU.EXE and HOLIDAYS.TXT in your utilities
directory. If you have your utilities directory in your PATH, you'll be
able to run YACPU from any drive and directory and it'll still find the
holiday file.
The holiday file is a text file used to specify dates to be highlighted
and day quotes to be printed. Holidays can be of three different types,
namely:
1. Fixed dates, e.g. New Year's Day (January 1st)
2. A given weekday after a given date, e.g. Midsummer Day (the
Saturday after June 19th)
3. Offset to Easter Day, e.g. Good Friday (2 days before Easter Day)
A few example lines in the holiday file could look like this:
1 1 1 1 New Year's Day
2 2 6 18 5 Midsummer Eve
2 1 6 19 6 Midsummer Day
3 1 -2 Good Friday
The first number is the holiday type as given above.
The second number specifies how the day should be handled:
1. The day counts as a Sunday and will be highlighted unless
-H or -s is specified.
2. The day counts as a Saturday and will only be highlighted if -S is
specified.
3. The quote will be printed unless -Q is specified. The day will not
be highlighted.
The following numbers depends on the holiday type:
1. Month and day.
2. Month, day and weekday (1 - Monday, 7 - Sunday)
3. Offset from Easter Day
Now, the example lines above can be interpreted as:
1. January 1st (counts as a Sunday)
2. The Friday after June 18th (counts as a Saturday)
3. The Saturday after June 19th (counts as a Sunday)
4. 2 days before Easter Day (counts as a Sunday)
Note 1: The file format is rather user-unfriendly. Entries must be
in fixed columns as in the example files.
Note 2: No checking is done to see if the date is valid or not.
Note 3: Sundays are highlighted by default, you don't have to specify
these.
MOON PHASES
The formulas used to calculate the phases of the moon are taken from
Jean Meeus excellent book, "Astronomical Formulae for Calculators",
second edition, 1982.
To be able to print the moon bitmaps on the correct dates, YACPU needs
to know the time zone and if it should use DST correction. Specify the
time zone with -z. DST correction is on by default, turn off with -D.
I checked the moon phases and times against an astronomical calendar for
1992, and they are correct down to +/- 2 minutes!
DST CORRECTION
In Sweden we use Daylight Savings Time (DST) between the last Sunday
in March 2.00 AM, and the last Sunday in September 3.00 AM. If your
country uses other dates, please tell me, and I will add options for
this in later versions of YACPU, see the "SUPPORT" section below.
Another problem with DST, could be different years of introduction in
different countries.
SUPPORT
1. If you like this program and want to support it:
Send me postcard, a dollar, or whatever you think it's worth.
2. If you want this program to support more languages:
Send me a letter (snail or e-mail) containing the following:
1. The name of the language
2. The name of the months (January through December)
3. The name of the days (Monday through Sunday)
4. The word for "week" (used as a prefix before the week
number)
5. The word for "notes" (used on the weekly calendar)
3. If you find bugs or other problems with YACPU:
Send a postcard, e-mail or a letter describing the problem
to me at the address given in the "AUTHOR" section above.
4. If you want more dates to be highlighted by default:
Send me a list containing these dates and how to determine when they
occur for a given year. E.g. Easter Day is the first Sunday after
the first full moon after Vernal Equinox, and can be calculated by
using Gauss' Easter Formula.
FORMATS
In Sweden, weeks start on Mondays. If for instance, you want a calendar
where weeks start on Sundays, drop me a note and I will include this
feature either as optional or as a language dependent feature.
FUTURE
* Flag days with small flag symbols
* Sun/moon rise/set times and switches for latitude and longitude
* Support for more languages
* Support for the full extended ASCII character set
* User-friendlier file formats
* And more...
FEED-BACK
If you have any questions/comments relating to this program, please feel
free to send me mail or e-mail (e-mail is faster). See the "AUTHOR"
section above for the address.
DISCLAIMER
You use this program at your own risk. In no event whatsoever, shall I
(the author of this program) be held responsible for any damage inflicted
by this program. (Damage is not very likely to be inflicted, I just want
to make sure that you don't blame me, should you accidentally overwrite
some of your other files, by redirecting output to COMMAND.COM or something
like that).
FEATURES (A.K.A. DOCUMENTED BUGS)
* Two or more quotes falling on the same day overwrite each other.
This will probably be fixed in future versions.
BUGS (A.K.A. UNDOCUMENTED FEATURES)
If you find any, please let me know, and I will try to fix them.
------------------------------------------------------------------------------
YACPU 1.1 - (C) Copyright 1991-1992 by Anders Ohlsson
------------------------------------------------------------------------------