.TH PRAYTIMER 1 "19 January 1992"
.SH NAME
praytimer \- produce Islamic prayer time schedules in TeX input form
.SH SYNOPSIS
\fBpraytimer\fR [\fB-i\fR] [\fB-f\fR fiqh] [\fB-r\fR ratio] [\fB-a\fR angle] [\fB-t\fR time]
.SH DESCRIPTION
\fIpraytimer\fR generates pleasant looking prayer time schedules for any
location.  The schedules can be "perpetual" or for any desired year.
The program allows for \fIfiqhi\fR variations in computing methods. 
.PP
\fIpraytimer\fR reads from standard input the geographical data about 
the locations, and writes to standard output the TeX code for the 
schedules.
.PP
The following command line options affect the method of computation.
.TP 9
\fB-f\fR \fIfiqh\fR
Fiqh should be S(hafi'i) or H(anafi).  Sets the shadow ratio for 
determining 'Asr to 1 or 2, respectively.  Default value is Shafi'i.
.TP
\fB-r\fR \fIratio\fR
Specifies the value of the 'Asr shadow ratio explicitly. 
Default value is 1.
.TP
\fB-a\fR \fIangle\fR
Specifies Sun's angle of depression at Fajr in degrees.  Common values are
18 (for Fajr to be the same as the astronomical twilight) or 15 (a bit later).
Default value is 15.
.TP
\fB-t\fR \fItime\fR
Specifies the time interval from Fajr to sunrise in minutes.  A common
value used is 90 minutes.  This method is sometimes used in high-latitude
locations where times for the usual values of Sun's depression are 
either undefined or are impractical.
.TP
\fB-i\fR
Interactive input of geographical data. Instead of reading these from 
standard input, \fIpraytimer\fR prompts the user at the terminal (stderr).
.PP
Note: 'Isha is computed symmetrically with respect to Fajr, with whichever 
method is chosen and whatever parameter value is specified. It is an error 
to specify both \fB-a\fR and \fB-t\fR or both \fB-f\fR and \fB-r\fR at the 
same time.
.SH INPUT DATA
Data on standard input must contain (in given order):
.RS
.PP
Name of location (upto 30 characters) 
.PP
Latitude degrees and minutes, and N or S to specify north or south.
.PP
Longitude degrees and minutes, and E or W to specify east or west.
.PP
Time Zone in hours (Decimal for fractional hour zones, negative if
West of Greenwich).
.PP
Y or 1 if Daylight Saving Time adjustment needed.  N or 0, otherwise.
.PP
Year in the range 1900\-2200, or 0 for a perpetual schedule.  
.RE
.PP
The zero value doesn't mean that the year is zero BC or AD, but is a
special value to cause \fIpraytimer\fR to prepare a perpetual calendar in
which the times are essentially the average for the four years of a leap
cycle.  The yearly variation in prayer times is seldom more than two 
minutes, and the times return back to almost the same value every four years.
It thus makes little sense to print a new timetable every year.
.PP
Data items should be separated by whitespace, but the name must be on
a separate line by itself because it may contain spaces or punctuation.
Input may contain data for more than one location; the tables will be
concatenated on the output.
.SH EXAMPLES
The following command sequence on a Unix system produces a file 
\fIdc.tex\fR containing the TeX input code for a perpetual prayer
schedule for Washington, DC, using the Sun's depression angle of 15 degrees
to define Fajr and a shadow ratio of 1 to define 'Asr.  (Since these are 
default values, they need not have been included.)  The schedule includes
adjustment for Daylight Saving Time.
.RS
.sp
.nf
cat > dc.dta
Washington, DC
38 54 N 77 1 W -5 Y 1
0 
^D
praytimer -a 15 -r 1 < dc.dta > dc.tex
.RE
.SH AUTHOR
Kamal Abdali has derived this code from his \fIMinaret\fR program for the 
Macintosh.
.SH BUGS
Support for the Jaafari fiqh should be added.

