home *** CD-ROM | disk | FTP | other *** search
/ Computerworld 1996 March / Computerworld_1996-03_cd.bin / idg_cd3 / aplikace / domacnos / minart10 / minaret.doc < prev    next >
Encoding:
Text File  |  1995-02-04  |  13.7 KB  |  300 lines

  1.  
  2.                         M I N A R E T
  3.                         -------------
  4.  
  5. This program computes Islamic prayer schedules, the Qibla direction,
  6. and various data related to the Hijri calendar. 
  7.  
  8. Minaret is a shareware program.  You may freely give copies of this
  9. program to others.  Please give only unmodified copies to others, and
  10. include this documentation with the program.  If you decide to keep
  11. the program for yourself, please send $10 to: 
  12.  
  13.               Kamal Abdali 
  14.               P.O. Box 65207 
  15.               Washington, DC 20035 
  16.               USA.
  17.  
  18. The author's e-mail address is abdali@netcom.com.
  19.  
  20. The most recent version of this program is available for anonymous
  21. ftp in the directory "/pub/ab/abdali" on the host "ftp.netcom.com".
  22.  
  23.  
  24. The Place menu 
  25. --------------
  26.  
  27. This is the first menu you should look at.  Minaret contains a
  28. built-in gazetteer with geographical information about 170 cities
  29. initially.  At any time, there is also a Current Location for
  30. which all computations are done.  To specify any location as the
  31. Current Location, click on the "Open Gazetteer" item in the Place
  32. menu.  A large window will appear in which the list at left is the
  33. Gazetteer.  As you scroll through the Gazetteer list and click on
  34. various location names, the stored data about them appears in the
  35. boxes at right.  If your desired location is in the Gazetteer,
  36. select it, then press "Make it Current Location".  All subsequent 
  37. computations will be done for that city.
  38.  
  39. You can edit the Gazetteer to add and delete locations, and to
  40. modify information about existing locations.  By editing the boxes
  41. and setting radio buttons at right, you can supply the 
  42. geographical data about the cities you wish to add.  You will need 
  43. to know the latitude, longitude, zone time relative to Greenwich, 
  44. and whether or not the place observes Daylight Savings Time.  
  45. After filling in the information for each city, press "Update/add 
  46. this location".  To delete a location, select it in the Gazetteer, 
  47. then press "Remove this location".  Only 200 cities are allowed in 
  48. the Gazetteer, so you may need to delete some locations to make 
  49. room for others.  You can find out how many cities are already in 
  50. the Gazetteer by selecting the "Gazetteer size" item. 
  51.  
  52. Note: Editing the Gazetteer doesn't change the Current Location.
  53. Also, the Current Location does not have to be necessarily added 
  54. to the Gazetteer.  To do computations for a city not in the
  55. Gazetteer, you would normally first edit the Gazetteer to add that
  56. city, then make the city the Current Location.  But if you want to
  57. use a location only temporarily, you can fill in its name and
  58. geographical data, and make it the Current Location without adding
  59. it to the Gazetteer. 
  60.  
  61. The changes made to the Gazetteer by editing it accumulate from
  62. session to session.  To revert to the original Gazetteer supplied
  63. with the program, use the the menu item "Restore factory-set
  64. gazetteer".  You may like to do this before any other computation 
  65. in case your copy of Minaret is not an original distribution from 
  66. the author, and you're not sure of the validity of the stored 
  67. data. 
  68.  
  69. Note: At the time of quitting a Minaret session in which you've
  70. edited the Gazetteer, Minaret asks you whether or not you want to
  71. save the changes you've made within that session.  Should you
  72. respond by clicking "No", the Gazetteer remains unchanged for that
  73. session.  On the other hand, "Restore factory-set gazetteer" throws
  74. away the changes accumulated through ALL the previous sessions in
  75. which the Gazetteer was edited. 
  76.  
  77.  
  78. The Prayer Hours menu 
  79. ---------------------
  80.  
  81. Select "Prayer hours for a day" to get the five prayer hours plus
  82. the time of sunrise for any date.  (Be sure to first set your
  83. location using the Place menu.)  Minaret starts out by displaying
  84. the prayer hours for today (the current date).  Minaret also
  85. presents you a dialog box in which you can fill in any other dates
  86. for which the prayer hours are desired.  (Click on "Compute" after
  87. filling in the date.)  If you hear a beep at this point, then you
  88. have typed either an illegal date or a date outside the period
  89. 1901--2100 A.D.  You can compute prayer hours for as many
  90. different dates as you want.  When you are done, click "CLOSE" to
  91. dismiss the prayer hours window.
  92.  
  93. Select "Prayer hours for a month" or "Prayer hours for a year" to
  94. display a table of prayer hours in a text window.  Minaret will 
  95. first present you a dialog box in which you should fill in the 
  96. month or the year for which the schedule is desired.  For a 
  97. "perpetual" schedule for a year, type "0" (zero) for the year.  
  98. Perpetual schedules are further discussed below.  
  99.  
  100. You can print the contents of the text window in front by 
  101. selecting "Print" from the File menu.  By using the "Save" or 
  102. "Save as" item from the File menu, you can save into a file the 
  103. contents of the text window in front, for possible reformatting 
  104. with a word processor.  If you use a word processor for printing
  105. a saved schedule file, then print it using a monospaced font.
  106. This will keep the tabular columns  neatly aligned. 
  107.  
  108. NOTE: The menu item "TeX input for prayer hours for a year"
  109. mentioned in the next paragraph is available only in the Mac
  110. version at present, not in the Windows version.
  111.      
  112. The printout of the results from the menu selections "Prayer 
  113. schedule for a month" and "Prayer schedule for a year" contain a 
  114. single month's schedule per page.  If you have access to the 
  115. text-formatting system TeX (developed by Professor Knuth of 
  116. Stanford University), then you can print a much prettier prayer 
  117. schedule for a year by running TeX on a file generated by Minaret.  
  118. This schedule comes out on three pages, four months per page.  For 
  119. this, first select "TeX input for prayer hours for a year" from 
  120. the Prayer menu, and fill in the year (or 0 for a perpetual 
  121. schedule).  Minaret will generate TeX code for the schedule, and 
  122. display it in a new window.  Then select "Save As" from the File 
  123. menu, choose an appropriate drive and folder, and type a suitable 
  124. document name (for example, "schedule.tex") to save the window 
  125. contents.  You have now captured the TeX input which you can later 
  126. process according to the instructions specific to your TeX system.
  127.  
  128. Since prayer hours depend upon the sun's position, it is more
  129. practical to tabulate the Islamic prayer schedule according to the
  130. dates in the Western, solar calendar.  For a fixed location, 
  131. prayer times for any particular date in the Western calendar vary 
  132. very little from year to year, and for all practical purposes 
  133. repeat themselves in four year cycles.  (Find this out for 
  134. yourself by computing prayer hours for the same dates in different 
  135. years.)  If you want to print annual prayer schedules, I strongly 
  136. recommend using zero for the year.  This doesn't mean the year 
  137. zero B.C. or A.D., but is a special value to cause Minaret to 
  138. print a perpetual calendar in which the times are essentially the 
  139. average of the four years of a cycle.  It is silly to print a new 
  140. calendar every year, since the yearly variation is seldom more 
  141. than two minutes. 
  142.  
  143. If, according to the gazetteer, the Current Location observes
  144. Daylight Saving Time, then Minaret adds one hour to all times
  145. computed for the dates between the first Sunday of April and the
  146. last Saturday of October (inclusive).  If the year is zero (that 
  147. is, if a perpetual schedule is desired), then the adjustment is 
  148. made throughout the period from April to October. 
  149.  
  150. Islamic prayer times are computed from their well-known
  151. astronomical  definitions.  (See, for example, the appendices A 
  152. and B in "Prayer Schedules for North America", American Trust
  153. Publications, Indianapolis, Indiana, 1978.)  Under certain
  154. conditions (for example, on certain summer dates at very high
  155. latitudes), the traditional astronomical definitions do not work,
  156. and the equations defining prayer times do not have solutions. 
  157. Minaret prints "*" when it cannot compute a  prayer time.  (See
  158. also the description of Method menu below.) 
  159.  
  160.  
  161. The Qibla menu 
  162. --------------
  163.  
  164. Select "Angle from North" to find the direction of the Qibla.  (Be 
  165. sure to first set your location using the Place menu.)   The angle 
  166. is given from the geographical, not magnetic, North.  Since it is 
  167. not always easy to accurately either determine North or measure
  168. angles, the shadow method described below is generally a better
  169. way to determine the Qibla. 
  170.  
  171. "Shadow diagram for a day" lets you determine the Qibla by
  172. observing shadows, without having to know the true North direction. 
  173. You get a diagram which shows the directions in which the shadow
  174. of a vertical object points at certain times of the day.  One of 
  175. the lines in the diagram is marked with a Q.  This is the 
  176. direction of the Qibla.  The times have been so computed that the 
  177. angle between the Qibla and the shadow is a multiple of 45 
  178. degrees, quite easy to measure.  (If there is a time on the line 
  179. marked Q, then the Qibla is exactly in the same direction as the 
  180. shadow at that time, and you don't have to measure any angle.)  
  181. Experiment with this menu using different dates to see the 
  182. relation between the Qibla and the shadow.  Summer dates give you 
  183. more opportunities to determine the Qibla using the shadow method. 
  184.  
  185. Select "Shadow chart for a month" or "Shadow chart for a year" to 
  186. display tables of the shadow information in a text window.  See 
  187. remarks under the Prayer menu for printing and saving the contents 
  188. of the window. 
  189.  
  190. Note:  The computed value of the qibla is not meaningful for
  191. locations very close to the Ka'aba (or its antipode in the Pacific
  192. Ocean), e.g., for the city of Makkah.  Also, when using the shadow
  193. method, you should avoid the times within an hour of noon when the
  194. shadow is short and moves very fast. 
  195.  
  196.  
  197. The Calendar menu 
  198. -----------------
  199.  
  200. Select "Date conversion" to convert Hijri dates into Western ones,
  201. and vice versa.  Minaret will accept as input any date starting 
  202. from Muharram 1, 1 A.H. (July 16, 622 A.D.), but will beep at any 
  203. illegal or earlier date.  The conversion is approximate, based on 
  204. some heuristic algorithms for predicting the crescent moon's
  205. visibility.
  206.  
  207. Select "New moon phase" to get the time of the astronomical new
  208. moon phase just preceding the start of any Hijri month.  Minaret
  209. computes the time of this phenomenon with an accuracy of about
  210. three minutes, and displays it both as the Greenwich Mean Time and
  211. as the Zone time for the Current Location.  Remember that the moon
  212. is invisible at the astronomical new moon phase, and the formation
  213. of the visible lunar crescent takes anywhere from about 18 to
  214. about 42 hours.  Although a few younger sightings of the moon have 
  215. been reported, they are extremely rare, and would be possible only 
  216. under certain special circumstances.  
  217.  
  218. Select "Moon's age" to determine the age of moon at any desired 
  219. time on any date in the period 1901--2100 A.D.  To make a rough
  220. prediction whether the lunar crescent will be visible on a certain
  221. evening, you can find the time of sunset on that date by selecting
  222. "Prayer schedule for a day" in the Prayer hours menu, then find the
  223. moon's age at that time by selecting "Moon's age" in the Calendar
  224. menu.  If the age turns out to be less than 18 hours, then it is
  225. quite unlikely that the crescent will be visible that evening.  Of
  226. course, the first visibility of the crescent depends on several other
  227. factors too. 
  228.  
  229. The Method menu 
  230. ---------------
  231.  
  232. NOTE: In the Windows version, this called the "Options" menu.
  233.  
  234. There are some variations in the methods people use to compute
  235. certain prayer times.  This menu lets you select the methods
  236. according to your preference. 
  237.  
  238. The "shadow ratio" for a vertical object at any time is defined to
  239. be the quantity: 
  240.  
  241.   (the length of shadow at the given time D the "residual" shadow 
  242.   of the object at noon) / (the object height). 
  243.  
  244. The shadow ratio at asr time is taken to be 2 by the Hanafi 
  245. school, 1 by others.  For fajr and isha, the time is usually 
  246. determined by the Sun's angle of depression below the horizon.  
  247. If this value is taken to be 18 degrees, then fajr coincides with 
  248. the astronomical twilight.  This seems OK for temperate latitudes. 
  249. But at higher latitudes, say above 42 degrees, the resulting times 
  250. for fajr and isha are too inconvenient (fajr too early, and isha 
  251. too late).  ISNA schedules are computed by taking this angle as 15 
  252. degrees. 
  253.  
  254. At latitudes higher than 50 degrees, such as for cities in 
  255. Northern Europe, it is impossible on certain dates to determine 
  256. fajr and isha times by taking the value of the sun's depression to 
  257. be 18 (or even 15) degrees.  This is so because on those dates the 
  258. sun doesn't descend sufficiently below the horizon.  So people in 
  259. some of those cities compute the fajr and isha times to be at 90 
  260. minutes from sunrise/sunset.  For latitudes above 66 1/2 degrees, 
  261. of course, even sunrise and sunset are not always defined. 
  262.  
  263.  
  264. The File Menu 
  265. -------------
  266.  
  267. Use this menu to open, save, and print the monthly or yearly 
  268. prayer schedules and qibla charts computed by Minaret.  When text 
  269. files are printed using "Print" in this menu, the RETURN (ascii 
  270. 13) and FORMFEED (ascii 12) characters will cause line skip and 
  271. page eject, respectively.  The File menu is intended only for use 
  272. with the text files generated by Minaret.  In particular, it will 
  273. not work on non-text files, large text files (more than 32K 
  274. characters), or text files with very long lines. 
  275.  
  276.  
  277. Any Comments? 
  278. --------------
  279.  
  280. Please send your comments, suggestions, and bug reports to the
  281. author at the address given above (preferably by e-mail).  They
  282. will be greatly appreciated.  Please include your address in any
  283. correspondence. 
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.