home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PSION / 1997 / 1012.ZIP / HOL.HLP < prev    next >
Encoding:
Text File  |  1997-03-09  |  5.8 KB  |  302 lines

  1. HOL
  2.  
  3. #begin
  4. License
  5. HOL - calculate and write holidays
  6. to Psion agenda.
  7. Copyright (C) 1988, 1989, 1990,
  8. 1991, 1992, 1993, 1994 Free 
  9. Software Foundation, Inc.
  10. Copyright (C) 1996 
  11. Odd Gripenstam
  12.  
  13. This program is free software; you
  14. can redistribute it and/or modify
  15. it under the terms of the GNU 
  16. General Public License as published
  17. by the Free Software Foundation;
  18. either version 2 of the License, 
  19. or (at your option) any later 
  20. version.
  21.  
  22. This program is distributed in 
  23. the hope that it will be useful, but
  24. WITHOUT ANY WARRANTY; without 
  25. even the implied warranty of
  26. MERCHANTABILITY or FITNESS 
  27. FOR A PARTICULAR PURPOSE.  
  28. See the GNU General Public 
  29. License for more details.
  30.  
  31. You should have received a copy of
  32. the GNU General Public License 
  33. along with this program; if not, 
  34. write to the Free Software 
  35. Foundation, Inc., 
  36. 59 Temple Place - Suite 330, 
  37. Boston, MA 02111-1307, USA.
  38. #end
  39.  
  40. #begin
  41. Steps to use the program
  42. Examine the holiday definition 
  43. files with a text editor to see 
  44. if one suits you. If not, you 
  45. can modify or create one.
  46.  
  47. Open a holiday file with this 
  48. program. Select which defined 
  49. holidays to calculate.
  50. Optionally, calculate and preview 
  51. the dates.
  52. Calculate and write holidays to 
  53. the agenda file. Use the option
  54. to make a backup copy of 
  55. the agenda.
  56. #end
  57.  
  58. #begin
  59. Opening a holiday file
  60. Open a holiday definition file 
  61. with Psion-O. 
  62.  
  63. All holidays that are defined in
  64. the file will be listed on the 
  65. screen with the style and year-
  66. symbol specified in the file. 
  67.  
  68. The listing can be scrolled with 
  69. PgUp, PgDn, Home, End and arrow
  70. keys.
  71. #end
  72.  
  73. #begin
  74. Selecting holidays
  75. Initially all holidays are selected
  76. to be written to the agenda file.
  77. This is shown with a '*' on each 
  78. row. 
  79.  
  80. Select or deselect holidays with
  81. Psion-M, Psion-U, Psion-N, 
  82. Psion-T or the SPACE-key.
  83. #end
  84.  
  85. #begin
  86. Previewing dates
  87. Calculate and preview the dates 
  88. with Psion-P. 
  89.  
  90. Enter a year range to calculate 
  91. dates for. 
  92. Select whether to use repeating 
  93. entries.
  94. The dates will be listed on the 
  95. screen. 
  96.  
  97. Press ESC to cancel the listing 
  98. or any other key to temporarily 
  99. pause the listing.
  100. #end
  101.  
  102. #begin
  103. Writing dates
  104. Calculate and write the dates to 
  105. an agenda file with Psion-W. 
  106.  
  107. Enter a year range to calculate 
  108. dates for. 
  109. Select whether to use repeating 
  110. entries.
  111. Select how to show repeating 
  112. entries.
  113. Select an agenda file to write to. 
  114. To be safe you should use the 
  115. option to make a backup copy of 
  116. the agenda file.
  117. The dates will be listed on 
  118. the screen as they are written to
  119. the file. 
  120. Press any key to cancel.
  121. #end
  122.  
  123. #begin
  124. Use repeating entries 
  125. If you set "Use repeating entries"
  126. ("Repeat entries") to "If possible" 
  127. then holidays specified only with
  128. one of the following directives 
  129. will be written as a repeating 
  130. entry:
  131.  
  132.   FIX(month,day)
  133.   FLOAT(month, weekday, n)  
  134.     where n is 1,2,3,4 or -1.
  135. #end
  136.  
  137. #begin
  138. Holiday definition files
  139. Holidays are defined by writing 
  140. a holiday definition file. 
  141. A holiday file is a text file 
  142. with the file type .HOL. 
  143. It contains directives to 
  144. the HOL program on what holidays 
  145. to calculate and how to write 
  146. them to an agenda file.
  147.  
  148. Look at the file EXAMPLE.HOL and 
  149. the following help topics for 
  150. help on how to specify holidays.
  151. #end
  152.  
  153. #begin
  154. Comments
  155. A comment is any text after an 
  156. exclamation mark or the keyword 
  157. REM up to the end of the current
  158. line.
  159. #end
  160.  
  161. #begin
  162. FIX(month, day)
  163. Sets the date to day # DAY in 
  164. month # MONTH. 
  165.  
  166. Day and month numbers start 
  167. at 1.
  168. #end
  169.  
  170. #begin
  171. HFIX(month, day)
  172. Sets the date to day # DAY in 
  173. Hebrew month # MONTH.
  174.  
  175. Day and month numbers start 
  176. at 1 (month 1 = Nisan).
  177. Month 13 is the last month of 
  178. the year (Adar or Adar II)
  179. #end
  180.  
  181. #begin
  182. IFIX(month, day)
  183. Sets the date to day # DAY in 
  184. Islamic month # MONTH.
  185.  
  186. Day and month numbers start 
  187. at 1 (month 1 = Muharram).
  188. #end
  189.  
  190. #begin
  191. FLOAT(month, weekday, n)
  192. Sets the date to the date of 
  193. the Nth WEEKDAY in month # MONTH.
  194.  
  195. Month numbers start at 1. 
  196. N starts at 1. 
  197. If N < 0 count N WEEKDAYs from 
  198. the end of the month. 
  199. WEEKDAY numbers are from 
  200. 0 (Sunday) to 6 (Saturday).
  201. #end
  202.  
  203. #begin
  204. FLOAT(month, weekday, n, day)
  205. Sets the date to the date of 
  206. the Nth WEEKDAY before/after 
  207. day # DAY in month # MONTH.
  208.  
  209. Day and month numbers start 
  210. at 1. N starts at 1. 
  211. If N < 0 count N WEEKDAYs before
  212. DAY MONTH, otherwise count N 
  213. WEEKDAYs after DAY MONTH. 
  214. WEEKDAY numbers are from 
  215. 0 (Sunday) to 6 (Saturday).
  216. #end
  217.  
  218. #begin
  219. LAST(month)
  220. Sets the date to the date of 
  221. the last day of month # MONTH.
  222. #end
  223.  
  224. #begin
  225. EASTER
  226. Sets the date to the date of 
  227. Easter Sunday (non-orthodox).
  228. #end
  229.  
  230. #begin
  231. DONEIF(condition)
  232. If the condition is true then 
  233. the rest of the current holiday 
  234. directive (up to ';') will not 
  235. be used.
  236. #end
  237.  
  238. #begin
  239. IF
  240. IF(condition) 
  241. { simple-date-expression }
  242.  
  243. If the condition is true then 
  244. the simple-date-expression 
  245. will be used. 
  246. #end
  247.  
  248. #begin
  249. ELSEIF
  250. ELSEIF(condition) 
  251. { simple-date-expression }
  252.  
  253. If the condition is true and 
  254. no preceeding IF or ELSEIF 
  255. condition was true then 
  256. the simple-date-expression 
  257. will be used.
  258. #end
  259.  
  260. #begin
  261. ELSE 
  262. ELSE 
  263. { simple-date-expression }
  264.  
  265. If no preceeding IF or 
  266. ELSEIF condition was true 
  267. then the simple-date-
  268. expression will be used.
  269. #end
  270.  
  271. #begin
  272. Conditions
  273. Conditions are functions that
  274. return 'true' or 'false'
  275. depending on the current date.
  276. #end
  277.  
  278. #begin        
  279. WEEKDAY(weekday)
  280. Can only be used in DONEIF.
  281.  
  282. Returns 'true' if the date is 
  283. on the weekday specified as a 
  284. parameter. 
  285.  
  286. WEEKDAY numbers are from 0 
  287. (Sunday) to 6 (Saturday).
  288. #end
  289.  
  290. #begin
  291. NOT(condition)
  292. Returns the opposite value
  293. of the condition.
  294. #end
  295.  
  296. #begin
  297. OR condition
  298. Returns 'true' if either
  299. the current value or 
  300. condition is 'true'.
  301. #end
  302.