home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume41 / remind / patch12a next >
Encoding:
Text File  |  1994-01-31  |  46.0 KB  |  1,422 lines

  1. Newsgroups: comp.sources.misc
  2. From: dfs@doe.carleton.ca (David F. Skoll)
  3. Subject: v41i122:  remind - A replacement for calendar, Patch12a/2
  4. Message-ID: <csm-v41i122=remind.000244@sparky.Sterling.COM>
  5. X-Md4-Signature: b320c840c90c913ccae1ea918dbfadb3
  6. Sender: kent@sparky.sterling.com (Kent Landfield)
  7. Reply-To: dfs@doe.carleton.ca (David F. Skoll)
  8. Organization: Dept. of Electronics, Carleton University
  9. Date: Tue, 1 Feb 1994 06:03:38 GMT
  10. Approved: kent@sparky.sterling.com
  11.  
  12. Submitted-by: dfs@doe.carleton.ca (David F. Skoll)
  13. Posting-number: Volume 41, Issue 122
  14. Archive-name: remind/patch12a
  15. Environment: UNIX, MS-DOS, OS/2
  16. Patch-To: remind: Volume 33, Issue 58-69
  17.  
  18. This is patch 12 for version 3.0 of Remind.
  19.  
  20. Remind is a sophisticated calendar/alarm program, which runs under
  21. MS-DOS, UNIX and OS/2.  It produces alarms, reminders and PostScript
  22. calendars.
  23.  
  24. This patch adds two languages to those supported by Remind, and fixes
  25. a few small portability problems.  It does not add any major features.
  26. Languages supported are currently: English, French, Dutch, German,
  27. Finnish, Norwegian, Danish and Polish.
  28.  
  29. AVAILABILITY: Remind is available via anonymous ftp at ftp.doe.carleton.ca
  30. (134.117.9.35) in the directory /pub/remind-3.0 - see the file README.1st
  31. in that directory for a list of files.
  32.  
  33. DEMO: If you have Xmosaic or some other WWW browser, connect to the URL
  34. 'http://www.doe.carleton.ca/students/skoll/' and look near the bottom
  35. of the document.  There are some hypertext links which run a few small
  36. demos of Remind.
  37.  
  38. --
  39. David F. Skoll
  40.  
  41. Here's what's new:
  42.  
  43. * Version 3.0 Patch 12
  44.  
  45. + MINOR ENHANCEMENTS
  46.  
  47. - Added support for the Danish language, courtesy of Mogens Lynnerup.
  48.  
  49. - Added support for the Polish language, courtesy of Jerzy Sobczyk.
  50.  
  51. - Made the Makefile more portable, thanks to Jim Budler.
  52.  
  53. - Removed some compiler warnings under Linux, thanks to Francois Pinard.
  54.  
  55. - Tidied the man page a bit; added a small bibliography.
  56.  
  57. + BUG FIXES
  58.  
  59. - Fixed a problem with the '-k' option which resulted in a newline being
  60.   placed after the message text.  This was giving sh(1) heartburn...
  61. ---
  62. #!/bin/sh
  63. # This is Remind-3.0/Patch-12/part, a shell archive (shar 3.32)
  64. # made 01/31/1994 21:33 UTC by <dfs@doe.carleton.ca> (David F. Skoll)
  65. # Source directory /tmp_mnt/home/dfs/work/.rem/Remind-3.0/cur
  66. #
  67. # existing files WILL be overwritten
  68. #
  69. # This is part 1 of a multipart archive                                    
  70. # do not concatenate these parts, unpack them in order with /bin/sh        
  71. #
  72. # This shar contains:
  73. # length  mode       name
  74. # ------ ---------- ------------------------------------------
  75. #  29831 -rw------- patch.12
  76. #   3612 -rw------- danish.h
  77. #  16852 -rw------- polish.h
  78. #
  79. if touch 2>&1 | fgrep 'amc' > /dev/null
  80.  then TOUCH=touch
  81.  else TOUCH=true
  82. fi
  83. if test -r shar3_seq_.tmp; then
  84.     echo "Must unpack archives in sequence!"
  85.     next=`cat shar3_seq_.tmp`; echo "Please unpack part $next next"
  86.     exit 1
  87. fi
  88. # ============= patch.12 ==============
  89. echo "x - extracting patch.12 (Text)"
  90. sed 's/^X//' << 'SHAR_EOF' > patch.12 &&
  91. XPrereq: "03.00.11"
  92. X*** ../prev/version.h    Thu Oct 21 12:38:51 1993
  93. X--- ./version.h    Tue Nov 23 11:50:39 1993
  94. X***************
  95. X*** 9,12 ****
  96. X  /*                                                             */
  97. X  /***************************************************************/
  98. X  
  99. X! #define VERSION "03.00.11"
  100. X--- 9,12 ----
  101. X  /*                                                             */
  102. X  /***************************************************************/
  103. X  
  104. X! #define VERSION "03.00.12"
  105. X*** ../prev/MANIFEST.DOS    Tue Oct 12 16:25:54 1993
  106. X--- ./MANIFEST.DOS    Mon Jan 31 10:41:47 1994
  107. X***************
  108. X*** 1,6 ****
  109. X--- 1,7 ----
  110. X  calendar.c
  111. X  config.h
  112. X  copyrigh
  113. X+ danish.h
  114. X  defs.rem
  115. X  dorem.c
  116. X  dosubst.c
  117. X***************
  118. X*** 36,41 ****
  119. X--- 37,43 ----
  120. X  norwgian.h
  121. X  omit.c
  122. X  os2func.c
  123. X+ polish.h
  124. X  protos.h
  125. X  queue.c
  126. X  readme.bcc
  127. X*** ../prev/MANIFEST.UNX    Tue Oct 12 16:25:37 1993
  128. X--- ./MANIFEST.UNX    Mon Jan 31 10:41:41 1994
  129. X***************
  130. X*** 9,14 ****
  131. X--- 9,15 ----
  132. X  WHATSNEW.30
  133. X  calendar.c
  134. X  config.h
  135. X+ danish.h
  136. X  defs.rem
  137. X  dorem.c
  138. X  dosubst.c
  139. X***************
  140. X*** 41,46 ****
  141. X--- 42,48 ----
  142. X  norwgian.h
  143. X  omit.c
  144. X  os2func.c
  145. X+ polish.h
  146. X  protos.h
  147. X  queue.c
  148. X  rem
  149. X*** ../prev/Makefile    Thu Oct 21 12:40:51 1993
  150. X--- ./Makefile    Mon Jan 31 10:41:23 1994
  151. X***************
  152. X*** 53,67 ****
  153. X  # YOU SHOULDN'T EDIT ANYTHING BELOW HERE.  You may want to change some things
  154. X  # in config.h; then, you should be able to type 'make'.
  155. X  #-----------------------------------------------------------------------------
  156. X! VERSION= 03.00.11
  157. X  MATHLIB= -lm
  158. X  
  159. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  160. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
  161. X  
  162. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  163. X  
  164. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
  165. X  
  166. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
  167. X  init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
  168. X--- 53,69 ----
  169. X  # YOU SHOULDN'T EDIT ANYTHING BELOW HERE.  You may want to change some things
  170. X  # in config.h; then, you should be able to type 'make'.
  171. X  #-----------------------------------------------------------------------------
  172. X! VERSION= 03.00.12
  173. X  MATHLIB= -lm
  174. X  
  175. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  176. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
  177. X! danish.h polish.h
  178. X  
  179. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  180. X  
  181. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
  182. X! polish.h
  183. X  
  184. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
  185. X  init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
  186. X***************
  187. X*** 119,126 ****
  188. X  var.o: var.c $(STDHDRS) expr.h
  189. X  
  190. X  tarZ:
  191. X!     tar cvf remind-3.0.11.tar $(MANIFEST)
  192. X!     compress -v remind-3.0.11.tar
  193. X  
  194. X  shar:
  195. X      shar -x -n"Remind $(VERSION)" -l45 -o./Shar $(MANIFEST)
  196. X--- 121,128 ----
  197. X  var.o: var.c $(STDHDRS) expr.h
  198. X  
  199. X  tarZ:
  200. X!     tar cvf remind-3.0.12.tar $(MANIFEST)
  201. X!     compress -v remind-3.0.12.tar
  202. X  
  203. X  shar:
  204. X      shar -x -n"Remind $(VERSION)" -l45 -o./Shar $(MANIFEST)
  205. X***************
  206. X*** 192,200 ****
  207. X  release:
  208. X      -mkdir RELEASE
  209. X      -rm -f RELEASE/*
  210. X!     mkpatch ../prev . patch.11 Shar "Remind-3.0/Patch-11/part"
  211. X      mv Shar* RELEASE
  212. X!     rm -f patch.11
  213. X      for i in *.1; do nroff -man $$i | sed -e 's/_//g' > `basename $$i .1`.man; done
  214. X      mv *.man RELEASE
  215. X      for i in *.1; do groff -man -Tps $$i > `basename $$i .1`.ps; done
  216. X--- 194,202 ----
  217. X  release:
  218. X      -mkdir RELEASE
  219. X      -rm -f RELEASE/*
  220. X!     mkpatch ../prev . patch.12 Shar "Remind-3.0/Patch-12/part"
  221. X      mv Shar* RELEASE
  222. X!     rm -f patch.12
  223. X      for i in *.1; do nroff -man $$i | sed -e 's/_//g' > `basename $$i .1`.man; done
  224. X      mv *.man RELEASE
  225. X      for i in *.1; do groff -man -Tps $$i > `basename $$i .1`.ps; done
  226. X*** ../prev/README.DOS    Tue Oct 12 16:22:34 1993
  227. X--- ./README.DOS    Wed Dec  1 10:39:36 1993
  228. X***************
  229. X*** 26,32 ****
  230. X  Remind has support for languages other than English.  See the file
  231. X  "lang.h" for details.  The language support may vary - you can change
  232. X  only the substitution filter, or you can translate all of the usage
  233. X! instructions and error messages as well.  See "french.h" for an
  234. X  
  235. X  If you add support for a non-English language, Remind will accept both the
  236. X  English and non-English names of months and weekdays in an input script.
  237. X--- 26,32 ----
  238. X  Remind has support for languages other than English.  See the file
  239. X  "lang.h" for details.  The language support may vary - you can change
  240. X  only the substitution filter, or you can translate all of the usage
  241. X! instructions and error messages as well.  See "french.h" for an example.
  242. X  
  243. X  If you add support for a non-English language, Remind will accept both the
  244. X  English and non-English names of months and weekdays in an input script.
  245. X*** ../prev/WHATSNEW.30    Tue Nov 16 17:42:21 1993
  246. X--- ./WHATSNEW.30    Mon Jan 31 16:25:21 1994
  247. X***************
  248. X*** 1,5 ****
  249. X--- 1,24 ----
  250. X  CHANGES TO REMIND
  251. X  
  252. X+ * Version 3.0 Patch 12
  253. X+ 
  254. X+ + MINOR ENHANCEMENTS
  255. X+ 
  256. X+ - Added support for the Danish language, courtesy of Mogens Lynnerup.
  257. X+ 
  258. X+ - Added support for the Polish language, courtesy of Jerzy Sobczyk.
  259. X+ 
  260. X+ - Made the Makefile more portable, thanks to Jim Budler.
  261. X+ 
  262. X+ - Removed some compiler warnings under Linux, thanks to Francois Pinard.
  263. X+ 
  264. X+ - Tidied the man page a bit; added a small bibliography.
  265. X+ 
  266. X+ + BUG FIXES
  267. X+ 
  268. X+ - Fixed a problem with the '-k' option which resulted in a newline being
  269. X+   placed after the message text.  This was giving sh(1) heartburn...
  270. X+ 
  271. X  * Version 3.0 Patch 11
  272. X  
  273. X  + MINOR ENHANCEMENTS
  274. X*** ../prev/config.h    Mon Nov 15 14:25:26 1993
  275. X--- ./config.h    Mon Jan 31 10:34:11 1994
  276. X***************
  277. X*** 190,195 ****
  278. X--- 190,203 ----
  279. X  #endif
  280. X  
  281. X  /*---------------------------------------------------------------------*/
  282. X+ /* Does the function argument to the signal() function take an INT     */
  283. X+ /* argument?  If yes, uncomment the next line.  If you get it wrong,   */
  284. X+ /* the only bad side effect is a compiler warning, so don't worry too  */
  285. X+ /* much about it.                                                      */
  286. X+ /*---------------------------------------------------------------------*/
  287. X+ /* #define SIGHANDLER_INT_ARG 1 */
  288. X+ 
  289. X+ /*---------------------------------------------------------------------*/
  290. X  /* Do we have the <unistd.h> header?  If not, use sys/files.h          */
  291. X  /*---------------------------------------------------------------------*/
  292. X  #ifdef UNIX
  293. X*** ../prev/dorem.c    Tue Nov 16 17:41:46 1993
  294. X--- ./dorem.c    Mon Jan 31 16:23:42 1994
  295. X***************
  296. X*** 553,559 ****
  297. X       DestroyValue(v);
  298. X        }
  299. X     }
  300. X!    if (t->typ == MSG_TYPE || t->typ == MSF_TYPE) {
  301. X        *s2++ = '\n';
  302. X     }
  303. X     *s2 = 0;
  304. X--- 553,559 ----
  305. X       DestroyValue(v);
  306. X        }
  307. X     }
  308. X!    if (!MsgCommand && (t->typ == MSG_TYPE || t->typ == MSF_TYPE)) {
  309. X        *s2++ = '\n';
  310. X     }
  311. X     *s2 = 0;
  312. X*** ../prev/funcs.c    Tue Nov 16 17:40:44 1993
  313. X--- ./funcs.c    Mon Jan 31 10:28:55 1994
  314. X***************
  315. X*** 1921,1927 ****
  316. X  /*  by Michael Schwartz and Marc T. Kaufman.                   */
  317. X  /*                                                             */
  318. X  /***************************************************************/
  319. X! #define PI 3.1415926536
  320. X  #define DEGRAD (PI/180.0)
  321. X  #define RADDEG (180.0/PI)
  322. X  
  323. X--- 1921,1930 ----
  324. X  /*  by Michael Schwartz and Marc T. Kaufman.                   */
  325. X  /*                                                             */
  326. X  /***************************************************************/
  327. X! #ifdef PI
  328. X! #undef PI
  329. X! #endif
  330. X! #define PI 3.14159265358979323846
  331. X  #define DEGRAD (PI/180.0)
  332. X  #define RADDEG (180.0/PI)
  333. X  
  334. X*** ../prev/lang.h    Tue Oct 12 16:22:46 1993
  335. X--- ./lang.h    Mon Jan 31 10:37:10 1994
  336. X***************
  337. X*** 11,22 ****
  338. X  
  339. X  /* I'm chauvinistic and name each language with its English name... */
  340. X  
  341. X! #define ENGLISH    0 /* original by David Skoll */
  342. X! #define GERMAN     1 /* translated by Wolfgang Thronicke */
  343. X  #define DUTCH      2 /* translated by Willem Kasdorp and Erik-Jan Vens */
  344. X! #define FINNISH    3 /* translated by Mikko Silvonen */
  345. X! #define FRENCH       4 /* translated by Laurent Duperval */
  346. X! #define NORWEGIAN  5 /* translated by Trygve Randen */
  347. X  
  348. X  /* Add more languages here - but please e-mail dfs@doe.carleton.ca
  349. X     to have your favorite language assigned a number.  If you add a
  350. X--- 11,24 ----
  351. X  
  352. X  /* I'm chauvinistic and name each language with its English name... */
  353. X  
  354. X! #define ENGLISH    0 /* original   by David F. Skoll                   */
  355. X! #define GERMAN     1 /* translated by Wolfgang Thronicke               */
  356. X  #define DUTCH      2 /* translated by Willem Kasdorp and Erik-Jan Vens */
  357. X! #define FINNISH    3 /* translated by Mikko Silvonen                   */
  358. X! #define FRENCH       4 /* translated by Laurent Duperval                 */
  359. X! #define NORWEGIAN  5 /* translated by Trygve Randen                    */
  360. X! #define DANISH     6 /* translated by Mogens Lynnerup                  */
  361. X! #define POLISH     7 /* translated by Jerzy Sobczyk                    */
  362. X  
  363. X  /* Add more languages here - but please e-mail dfs@doe.carleton.ca
  364. X     to have your favorite language assigned a number.  If you add a
  365. X***************
  366. X*** 35,46 ****
  367. X  #define LANG ENGLISH
  368. X  #endif
  369. X  
  370. X- /* If LANG is not defined, it defaults to English. */
  371. X- #ifndef LANG
  372. X- #define LANG ENGLISH
  373. X- #endif
  374. X- 
  375. X- 
  376. X  /* Pick up the appropriate header file */
  377. X  #if LANG == ENGLISH
  378. X  #include "english.h"
  379. X--- 37,42 ----
  380. X***************
  381. X*** 54,59 ****
  382. X--- 50,59 ----
  383. X  #include "french.h"
  384. X  #elif LANG == NORWEGIAN
  385. X  #include "norwgian.h"
  386. X+ #elif LANG == DANISH
  387. X+ #include "danish.h"
  388. X+ #elif LANG == POLISH
  389. X+ #include "polish.h"
  390. X  
  391. X  /* If no sensible language, choose English.  I intended to use
  392. X     the #error directive here, but some C compilers barf. */
  393. X*** ../prev/main.c    Wed Nov 17 12:38:09 1993
  394. X--- ./main.c    Mon Jan 31 10:34:45 1994
  395. X***************
  396. X*** 1493,1499 ****
  397. X--- 1493,1503 ----
  398. X  void __cdecl SigIntHandler(int d)
  399. X  #else
  400. X  #ifdef HAVE_PROTOS
  401. X+ #ifdef SIGHANDLER_INT_ARG
  402. X+ void SigIntHandler(int d)
  403. X+ #else
  404. X  void SigIntHandler(void)
  405. X+ #endif
  406. X  #else
  407. X  void SigIntHandler()
  408. X  #endif
  409. X*** ../prev/makefile.bcc    Mon Nov 15 14:25:32 1993
  410. X--- ./makefile.bcc    Mon Jan 31 10:41:07 1994
  411. X***************
  412. X*** 1,6 ****
  413. X  # Makefile for REMIND for Borland C++
  414. X  
  415. X! VERSION= 03.00.11
  416. X  
  417. X  MODEL=l
  418. X  
  419. X--- 1,6 ----
  420. X  # Makefile for REMIND for Borland C++
  421. X  
  422. X! VERSION= 03.00.12
  423. X  
  424. X  MODEL=l
  425. X  
  426. X***************
  427. X*** 15,25 ****
  428. X  !endif
  429. X  
  430. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  431. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
  432. X  
  433. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  434. X  
  435. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
  436. X  
  437. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
  438. X  main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c \
  439. X--- 15,27 ----
  440. X  !endif
  441. X  
  442. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  443. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
  444. X! danish.h polish.h
  445. X  
  446. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  447. X  
  448. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
  449. X! polish.h
  450. X  
  451. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
  452. X  main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c \
  453. X*** ../prev/makefile.os2    Tue Nov 16 12:13:24 1993
  454. X--- ./makefile.os2    Mon Jan 31 10:40:54 1994
  455. X***************
  456. X*** 43,53 ****
  457. X  OS2_POPUP = -DOS2_POPUP
  458. X  
  459. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  460. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
  461. X  
  462. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  463. X  
  464. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
  465. X  
  466. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
  467. X  init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
  468. X--- 43,55 ----
  469. X  OS2_POPUP = -DOS2_POPUP
  470. X  
  471. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  472. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
  473. X! danish.h polish.h
  474. X  
  475. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  476. X  
  477. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
  478. X! polish.h
  479. X  
  480. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
  481. X  init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
  482. X*** ../prev/makefile.tc    Thu Oct 21 12:39:34 1993
  483. X--- ./makefile.tc    Mon Jan 31 10:40:39 1994
  484. X***************
  485. X*** 1,14 ****
  486. X  # Makefile for REMIND for Turbo C for MSDOS
  487. X  
  488. X  CC= tcc
  489. X! VERSION= 03.00.11
  490. X  
  491. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  492. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
  493. X  
  494. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  495. X  
  496. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
  497. X  
  498. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
  499. X  moon.c main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c
  500. X--- 1,16 ----
  501. X  # Makefile for REMIND for Turbo C for MSDOS
  502. X  
  503. X  CC= tcc
  504. X! VERSION= 03.00.12
  505. X  
  506. X  HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
  507. X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
  508. X! danish.h polish.h
  509. X  
  510. X  STDHDRS= config.h types.h protos.h globals.h err.h lang.h
  511. X  
  512. X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
  513. X! polish.h
  514. X  
  515. X  SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
  516. X  moon.c main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c
  517. X*** ../prev/moon.c    Tue Oct 12 16:22:48 1993
  518. X--- ./moon.c    Mon Jan 31 10:29:38 1994
  519. X***************
  520. X*** 116,121 ****
  521. X--- 116,124 ----
  522. X  /*  Properties of the Earth  */
  523. X  
  524. X  #define earthrad    6378.16       /* Radius of Earth in kilometres */
  525. X+ #ifdef PI
  526. X+ #undef PI
  527. X+ #endif
  528. X  
  529. X  #define PI 3.14159265358979323846
  530. X  
  531. X*** ../prev/protos.h    Tue Nov 16 15:58:54 1993
  532. X--- ./protos.h    Mon Jan 31 10:35:37 1994
  533. X***************
  534. X*** 148,154 ****
  535. X--- 148,158 ----
  536. X  #ifdef __BORLANDC__
  537. X  void __cdecl SigIntHandler ARGS ((int d));
  538. X  #else
  539. X+ #ifdef SIGHANDLER_INT_ARG
  540. X+ void SigIntHandler ARGS ((int d));
  541. X+ #else
  542. X  void SigIntHandler ARGS ((void));
  543. X+ #endif
  544. X  #endif
  545. X  void GotSigInt ARGS ((void));
  546. X  
  547. X*** ../prev/remind.1    Mon Nov 15 15:19:08 1993
  548. X--- ./remind.1    Mon Jan 31 11:01:39 1994
  549. X***************
  550. X*** 1,4 ****
  551. X! .TH REMIND 1 "13 October 1993"
  552. X  .UC 4
  553. X  .SH NAME
  554. X  remind \- a sophisticated reminder service
  555. X--- 1,4 ----
  556. X! .TH REMIND 1 "31 January 1994"
  557. X  .UC 4
  558. X  .SH NAME
  559. X  remind \- a sophisticated reminder service
  560. X***************
  561. X*** 80,95 ****
  562. X  messages.  In particular, if no reminders are triggered, this mode
  563. X  produces no output.
  564. X  .TP
  565. X! .B \-a
  566. X  The \fB\-a\fR option causes \fBRemind\fR not to immediately trigger timed
  567. X  reminders which would also be queued.  It also causes \fBRemind\fR not to
  568. X  place timed reminders in a calendar.
  569. X  .TP
  570. X! .B \-q
  571. X  The \fB\-q\fR option causes \fBRemind\fR not to queue timed reminders
  572. X  for later execution.
  573. X  .TP
  574. X! .B \-f
  575. X  The \fB\-f\fR option causes \fBRemind\fR to remain in the foreground
  576. X  when processing queued reminders, rather than forking off
  577. X  a background process to handle them.
  578. X--- 80,95 ----
  579. X  messages.  In particular, if no reminders are triggered, this mode
  580. X  produces no output.
  581. X  .TP
  582. X! \fB\-a\fR (UNIX and OS/2 only)
  583. X  The \fB\-a\fR option causes \fBRemind\fR not to immediately trigger timed
  584. X  reminders which would also be queued.  It also causes \fBRemind\fR not to
  585. X  place timed reminders in a calendar.
  586. X  .TP
  587. X! \fB\-q\fR (UNIX and OS/2 only)
  588. X  The \fB\-q\fR option causes \fBRemind\fR not to queue timed reminders
  589. X  for later execution.
  590. X  .TP
  591. X! \fB\-f\fR (UNIX and OS/2 only)
  592. X  The \fB\-f\fR option causes \fBRemind\fR to remain in the foreground
  593. X  when processing queued reminders, rather than forking off
  594. X  a background process to handle them.
  595. X***************
  596. X*** 172,178 ****
  597. X  would cause havoc if run with the \fB\-k\fR option.
  598. X  .RE
  599. X  .TP
  600. X! \fB\-z\fR[\fIn\fR]
  601. X  Runs \fBRemind\fR in the daemon mode.  If \fIn\fR is supplied, it
  602. X  specifies how often (in minutes) \fBRemind\fR should wake up to
  603. X  check if the reminder script has been changed.  \fIN\fR defaults
  604. X--- 172,178 ----
  605. X  would cause havoc if run with the \fB\-k\fR option.
  606. X  .RE
  607. X  .TP
  608. X! \fB\-z\fR[\fIn\fR] (UNIX and OS/2 only)
  609. X  Runs \fBRemind\fR in the daemon mode.  If \fIn\fR is supplied, it
  610. X  specifies how often (in minutes) \fBRemind\fR should wake up to
  611. X  check if the reminder script has been changed.  \fIN\fR defaults
  612. X***************
  613. X*** 179,185 ****
  614. X  to 5, and can range from 5 to 60.  Note that the use of the
  615. X  \fB\-z\fR option also enables the \fB\-f\fR option.
  616. X  .TP
  617. X! \fB\-u\fR\fIname\fR
  618. X  Runs \fBRemind\fR with the uid and gid of the user specified by \fIname\fR.
  619. X  The option changes the uid and gid as described, and sets the
  620. X  environment variables HOME, SHELL and USER to the home directory, shell,
  621. X--- 179,185 ----
  622. X  to 5, and can range from 5 to 60.  Note that the use of the
  623. X  \fB\-z\fR option also enables the \fB\-f\fR option.
  624. X  .TP
  625. X! \fB\-u\fR\fIname\fR  (UNIX version only)
  626. X  Runs \fBRemind\fR with the uid and gid of the user specified by \fIname\fR.
  627. X  The option changes the uid and gid as described, and sets the
  628. X  environment variables HOME, SHELL and USER to the home directory, shell,
  629. X***************
  630. X*** 217,225 ****
  631. X  in the section "Calendar Mode" for more information.
  632. X  .SH REMINDER FILES
  633. X  .PP
  634. X! \fBRemind\fR uses scripts to control its operation.  The commands
  635. X! inside a script can range from
  636. X! the very simple and almost immediately understandable:
  637. X  .PP
  638. X  .nf
  639. X      REM 6 Jan MSG David's birthday
  640. X--- 217,226 ----
  641. X  in the section "Calendar Mode" for more information.
  642. X  .SH REMINDER FILES
  643. X  .PP
  644. X! \fBRemind\fR uses scripts to control its operation.  You can use any
  645. X! text editor capable of creating plain ASCII files to create a
  646. X! \fBRemind\fR script.  The commands inside a script can range from the
  647. X! very simple and almost immediately understandable:
  648. X  .PP
  649. X  .nf
  650. X      REM 6 Jan MSG David's birthday
  651. X***************
  652. X*** 707,715 ****
  653. X  \fBRemind\fR treats timed reminders specially.  If the trigger date
  654. X  for a timed reminder is the same as the current system date, the
  655. X  reminder is queued for later activation.  When \fBRemind\fR has
  656. X! finished processing the reminder file,
  657. X! it puts itself in the background, and activates timed reminders when the
  658. X! system time reached the specified time.
  659. X  .PP
  660. X  If the trigger date is \fInot\fR the same as the system date, the reminder
  661. X  is not queued.
  662. X--- 708,718 ----
  663. X  \fBRemind\fR treats timed reminders specially.  If the trigger date
  664. X  for a timed reminder is the same as the current system date, the
  665. X  reminder is queued for later activation.  When \fBRemind\fR has
  666. X! finished processing the reminder file, it puts itself in the
  667. X! background, and activates timed reminders when the system time reached
  668. X! the specified time.  (Unfortunately, the MS-DOS version does not have
  669. X! this ability -- most of this section applies only to the UNIX and OS/2
  670. X! versions.)
  671. X  .PP
  672. X  If the trigger date is \fInot\fR the same as the system date, the reminder
  673. X  is not queued.
  674. X***************
  675. X*** 3168,3175 ****
  676. X  Thus, a regular year can have from 353 to 355 days, and a leap year from
  677. X  383 to 385.
  678. X  .PP
  679. X! When Kislev or Heshvan is short, it is called "chaser", or lacking.  When
  680. X! it is long, it is called "shalem", or full.
  681. X  .PP
  682. X  The Jewish date changes at sunset.  However, \fBRemind\fR will change the date
  683. X  at midnight, not sunset.  So in the period between sunset and midnight,
  684. X--- 3171,3178 ----
  685. X  Thus, a regular year can have from 353 to 355 days, and a leap year from
  686. X  383 to 385.
  687. X  .PP
  688. X! When Kislev or Heshvan is short, it is called \fIchaser\fR, or lacking.  When
  689. X! it is long, it is called \fIshalem\fR, or full.
  690. X  .PP
  691. X  The Jewish date changes at sunset.  However, \fBRemind\fR will change the date
  692. X  at midnight, not sunset.  So in the period between sunset and midnight,
  693. X***************
  694. X*** 3247,3256 ****
  695. X  If \fIjahr\fR is 1, then the date is modified as follows:
  696. X  .TP
  697. X  o
  698. X! 30 Heshvan is converted to 1 Kislev in years when Heshvan is chaser
  699. X  .TP
  700. X  o
  701. X! 30 Kislev is converted to 1 Tevet in years when Kislev is chaser
  702. X  .TP
  703. X  o
  704. X  30 Adar A is converted to 1 Nisan in non-leapyears
  705. X--- 3250,3259 ----
  706. X  If \fIjahr\fR is 1, then the date is modified as follows:
  707. X  .TP
  708. X  o
  709. X! 30 Heshvan is converted to 1 Kislev in years when Heshvan is \fIchaser\fR
  710. X  .TP
  711. X  o
  712. X! 30 Kislev is converted to 1 Tevet in years when Kislev is \fIchaser\fR
  713. X  .TP
  714. X  o
  715. X  30 Adar A is converted to 1 Nisan in non-leapyears
  716. X***************
  717. X*** 3266,3272 ****
  718. X  .TP
  719. X  o
  720. X  30 Kislev and 30 Heshvan are converted to 29 Kislev and 29 Heshvan,
  721. X! respectively, if the month is chaser
  722. X  .TP
  723. X  o
  724. X  30 Adar A is converted to 30 Shvat in non-leapyears
  725. X--- 3269,3275 ----
  726. X  .TP
  727. X  o
  728. X  30 Kislev and 30 Heshvan are converted to 29 Kislev and 29 Heshvan,
  729. X! respectively, if the month is \fIchaser\fR
  730. X  .TP
  731. X  o
  732. X  30 Adar A is converted to 30 Shvat in non-leapyears
  733. X***************
  734. X*** 3281,3288 ****
  735. X  .PP
  736. X  The \fIaflag\fR parameter modifies the behaviour of the function for
  737. X  dates in Adar during leap years.  The \fIaflag\fR is \fIonly\fR used
  738. X! if \fIyrstart\fR is a \fBDATE\fR type (or is omitted, defaulting to
  739. X! \fBtoday()\fR.)
  740. X  .PP
  741. X  The \fIaflag\fR only affects date calculations if \fIhebmon\fR is
  742. X  specified as "Adar".  In leap years, the following algorithm is followed:
  743. X--- 3284,3290 ----
  744. X  .PP
  745. X  The \fIaflag\fR parameter modifies the behaviour of the function for
  746. X  dates in Adar during leap years.  The \fIaflag\fR is \fIonly\fR used
  747. X! if \fIyrstart\fR is a \fBDATE\fR type.
  748. X  .PP
  749. X  The \fIaflag\fR only affects date calculations if \fIhebmon\fR is
  750. X  specified as "Adar".  In leap years, the following algorithm is followed:
  751. X***************
  752. X*** 3306,3312 ****
  753. X  .PP
  754. X  A jahrzeit is a yearly commemoration of someone's death.  It normally takes
  755. X  place on the anniversary of the death, but may be delayed if burial is
  756. X! delayed - consult a rabbi.
  757. X  .PP
  758. X  In addition, because some months change length, it is not obvious which day
  759. X  the anniversary of a death is.  The following rules are used:
  760. X--- 3308,3314 ----
  761. X  .PP
  762. X  A jahrzeit is a yearly commemoration of someone's death.  It normally takes
  763. X  place on the anniversary of the death, but may be delayed if burial is
  764. X! delayed - consult a rabbi for more information.
  765. X  .PP
  766. X  In addition, because some months change length, it is not obvious which day
  767. X  the anniversary of a death is.  The following rules are used:
  768. X***************
  769. X*** 3313,3327 ****
  770. X  .TP
  771. X  o
  772. X  If the death occurred on 30 Heshvan, and Heshvan in the year after the
  773. X! death is chaser, then the jahrzeit is observed on 29 Heshvan in years
  774. X! when Heshvan is chaser.  Otherwise, the yahrzeit is observed on 1
  775. X! Kislev when Heshvan is chaser.
  776. X  .TP
  777. X  o
  778. X  If the death occurred on 30 Kislev, and Kislev in the year after the
  779. X! death is chaser, then the jahrzeit is observed on 29 Kislev in years
  780. X! when Kislev is chaser.  Otherwise, the yahrzeit is observed on 1
  781. X! Tevet when Kislev is chaser.
  782. X  .TP
  783. X  o
  784. X  If the death occurred on 1-29 Adar A, it is observed on 1-29 Adar in
  785. X--- 3315,3329 ----
  786. X  .TP
  787. X  o
  788. X  If the death occurred on 30 Heshvan, and Heshvan in the year after the
  789. X! death is \fIchaser\fR, then the jahrzeit is observed on 29 Heshvan in years
  790. X! when Heshvan is \fIchaser\fR.  Otherwise, the yahrzeit is observed on 1
  791. X! Kislev when Heshvan is \fIchaser\fR.
  792. X  .TP
  793. X  o
  794. X  If the death occurred on 30 Kislev, and Kislev in the year after the
  795. X! death is \fIchaser\fR, then the jahrzeit is observed on 29 Kislev in years
  796. X! when Kislev is \fIchaser\fR.  Otherwise, the yahrzeit is observed on 1
  797. X! Tevet when Kislev is \fIchaser\fR.
  798. X  .TP
  799. X  o
  800. X  If the death occurred on 1-29 Adar A, it is observed on 1-29 Adar in
  801. X***************
  802. X*** 3513,3522 ****
  803. X  .SH AUTHOR
  804. X  .PP
  805. X  David F. Skoll wrote \fBRemind\fR.  The moon code was copied largely
  806. X! unmodified from "moontool" by John Walker.  The Hebrew calendar
  807. X! support was taken from "hdate" by Amos Shapir.  OS/2 support was
  808. X! done by Darrel Hankerson, Russ Herman, and Norman Walsh.  The
  809. X! supported foreign languages and their translators are:
  810. X  .PP
  811. X  \fBGerman\fR --
  812. X  Wolfgang Thronicke
  813. X--- 3515,3528 ----
  814. X  .SH AUTHOR
  815. X  .PP
  816. X  David F. Skoll wrote \fBRemind\fR.  The moon code was copied largely
  817. X! unmodified from "moontool" by John Walker.  The sunrise and sunset
  818. X! functions use ideas from programs by Michael Schwartz and Marc
  819. X! T. Kaufman.  The Hebrew calendar support was taken from "hdate" by
  820. X! Amos Shapir.  OS/2 support was done by Darrel Hankerson, Russ Herman,
  821. X! and Norman Walsh.  The supported foreign languages and their
  822. X! translators are listed below.  Languages marked "complete" support
  823. X! error messages and usage instructions in that language; all others
  824. X! only support the substitution filter mechanism and month/day names.
  825. X  .PP
  826. X  \fBGerman\fR --
  827. X  Wolfgang Thronicke
  828. X***************
  829. X*** 3525,3537 ****
  830. X  Willem Kasdorp and Erik-Jan Vens
  831. X  .PP
  832. X  \fBFinnish\fR --
  833. X! Mikko Silvonen
  834. X  .PP
  835. X  \fBFrench\fR --
  836. X! Laurent Duperval
  837. X  .PP
  838. X  \fBNorwegian\fR --
  839. X  Trygve Randen
  840. X  .SH BUGS
  841. X  .PP
  842. X  There's no good reason why read-only system variables are not
  843. X--- 3531,3549 ----
  844. X  Willem Kasdorp and Erik-Jan Vens
  845. X  .PP
  846. X  \fBFinnish\fR --
  847. X! Mikko Silvonen (complete)
  848. X  .PP
  849. X  \fBFrench\fR --
  850. X! Laurent Duperval (complete)
  851. X  .PP
  852. X  \fBNorwegian\fR --
  853. X  Trygve Randen
  854. X+ .PP
  855. X+ \fBDanish\fR --
  856. X+ Mogens Lynnerup
  857. X+ .PP
  858. X+ \fBPolish\fR --
  859. X+ Jerzy Sobczyk (complete)
  860. X  .SH BUGS
  861. X  .PP
  862. X  There's no good reason why read-only system variables are not
  863. X***************
  864. X*** 3538,3546 ****
  865. X  implemented as functions, or why functions like \fBversion()\fR, etc.
  866. X  are not implemented as read-only system variables.
  867. X  .PP
  868. X! Hebrew dates change at midnight, not sunset.
  869. X  .PP
  870. X! The UTC functions are not reliable under MS-DOS.
  871. X  .PP
  872. X  The MS-DOS version of \fBRemind\fR does not support queuing or timed
  873. X  activation of reminders.
  874. X--- 3550,3558 ----
  875. X  implemented as functions, or why functions like \fBversion()\fR, etc.
  876. X  are not implemented as read-only system variables.
  877. X  .PP
  878. X! Hebrew dates in \fBRemind\fR change at midnight instead of sunset.
  879. X  .PP
  880. X! The UTC functions may not be reliable under MS-DOS.
  881. X  .PP
  882. X  The MS-DOS version of \fBRemind\fR does not support queuing or timed
  883. X  activation of reminders.
  884. X***************
  885. X*** 3547,3552 ****
  886. X--- 3559,3576 ----
  887. X  .PP
  888. X  \fBRemind\fR has some built-in limits on total line length,
  889. X  substitution buffer length, number of global \fBOMIT\fRs, etc.
  890. X+ .PP
  891. X+ .SH BIBLIOGRAPHY
  892. X+ .PP
  893. X+ Nachum Dershowitz and Edward M. Reingold, "Calendrical Calculations",
  894. X+ \fISoftware\-Practice and Experience\fR, Vol. 20(9), Sept. 1990,
  895. X+ pp 899-928.
  896. X+ .PP
  897. X+ L. E. Doggett, \fIAlmanac for computers for the year 1978\fR, Nautical
  898. X+ Almanac Office, USNO.
  899. X+ .PP
  900. X+ Richard Siegel and Michael and Sharon Strassfeld, \fIThe First Jewish
  901. X+ Catalog\fR, Jewish Publication Society of America.
  902. X  .PP
  903. X  .SH SEE ALSO
  904. X  .PP
  905. X*** ../prev/test.cmp    Thu Oct 21 12:39:24 1993
  906. X--- ./test.cmp    Tue Nov 23 11:51:03 1993
  907. X***************
  908. X*** 631,637 ****
  909. X  "a05" + "6" => "a056"
  910. X  value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
  911. X  set a058 version()
  912. X! version() => "03.00.11"
  913. X  set a059 wkday(today())
  914. X  today() => 1991/02/16
  915. X  wkday(1991/02/16) => "Saturday"
  916. X--- 631,637 ----
  917. X  "a05" + "6" => "a056"
  918. X  value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
  919. X  set a058 version()
  920. X! version() => "03.00.12"
  921. X  set a059 wkday(today())
  922. X  today() => 1991/02/16
  923. X  wkday(1991/02/16) => "Saturday"
  924. X***************
  925. X*** 772,778 ****
  926. X          a048  "foo"
  927. X          a067  "INT"
  928. X          a039  "February"
  929. X!         a058  "03.00.11"
  930. X          a077  "1992 92
  931. X  "
  932. X          a049  21
  933. X--- 772,778 ----
  934. X          a048  "foo"
  935. X          a067  "INT"
  936. X          a039  "February"
  937. X!         a058  "03.00.12"
  938. X          a077  "1992 92
  939. X  "
  940. X          a049  21
  941. X*** ../prev/test1.cmp    Thu Oct 21 12:42:22 1993
  942. X--- ./test1.cmp    Tue Nov 23 11:50:57 1993
  943. X***************
  944. X*** 631,637 ****
  945. X  "a05" + "6" => "a056"
  946. X  value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
  947. X  set a058 version()
  948. X! version() => "03.00.11"
  949. X  set a059 wkday(today())
  950. X  today() => 1991/02/16
  951. X  wkday(1991/02/16) => "Saturday"
  952. X--- 631,637 ----
  953. X  "a05" + "6" => "a056"
  954. X  value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
  955. X  set a058 version()
  956. X! version() => "03.00.12"
  957. X  set a059 wkday(today())
  958. X  today() => 1991/02/16
  959. X  wkday(1991/02/16) => "Saturday"
  960. X***************
  961. X*** 772,778 ****
  962. X          a048  "foo"
  963. X          a067  "INT"
  964. X          a039  "February"
  965. X!         a058  "03.00.11"
  966. X          a077  "1992 92
  967. X  "
  968. X          a049  21
  969. X--- 772,778 ----
  970. X          a048  "foo"
  971. X          a067  "INT"
  972. X          a039  "February"
  973. X!         a058  "03.00.12"
  974. X          a077  "1992 92
  975. X  "
  976. X          a049  21
  977. X*** ../prev/test2.cmp    Thu Oct 21 12:42:18 1993
  978. X--- ./test2.cmp    Tue Nov 23 11:50:50 1993
  979. X***************
  980. X*** 631,637 ****
  981. X  "a05" + "6" => "a056"
  982. X  value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
  983. X  set a058 version()
  984. X! version() => "03.00.11"
  985. X  set a059 wkday(today())
  986. X  today() => 1991/02/16
  987. X  wkday(1991/02/16) => "Saturday"
  988. X--- 631,637 ----
  989. X  "a05" + "6" => "a056"
  990. X  value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
  991. X  set a058 version()
  992. X! version() => "03.00.12"
  993. X  set a059 wkday(today())
  994. X  today() => 1991/02/16
  995. X  wkday(1991/02/16) => "Saturday"
  996. X***************
  997. X*** 772,778 ****
  998. X          a048  "foo"
  999. X          a067  "INT"
  1000. X          a039  "February"
  1001. X!         a058  "03.00.11"
  1002. X          a077  "1992 92
  1003. X  "
  1004. X          a049  21
  1005. X--- 772,778 ----
  1006. X          a048  "foo"
  1007. X          a067  "INT"
  1008. X          a039  "February"
  1009. X!         a058  "03.00.12"
  1010. X          a077  "1992 92
  1011. X  "
  1012. X          a049  21
  1013. SHAR_EOF
  1014. $TOUCH -am 0131163394 patch.12 &&
  1015. chmod 0600 patch.12 ||
  1016. echo "restore of patch.12 failed"
  1017. set `wc -c patch.12`;Wc_c=$1
  1018. if test "$Wc_c" != "29831"; then
  1019.     echo original size 29831, current size $Wc_c
  1020. fi
  1021. # ============= danish.h ==============
  1022. echo "x - extracting danish.h (Text)"
  1023. sed 's/^X//' << 'SHAR_EOF' > danish.h &&
  1024. X/***************************************************************/
  1025. X/*                                                             */
  1026. X/*  DANISH.H                                                   */
  1027. X/*                                                             */
  1028. X/*  Support for the Danish language.                           */
  1029. X/*                                                             */
  1030. X/*  This file is part of REMIND.                               */
  1031. X/*                                                             */
  1032. X/*  REMIND is Copyright (C) 1992, 1993 by David F. Skoll.      */
  1033. X/*  This file is Copyright (C) 1993 by Mogens Lynnerup.        */
  1034. X/*                                                             */
  1035. X/***************************************************************/
  1036. X
  1037. X/* The very first define in a language support file must be L_LANGNAME: */
  1038. X#define L_LANGNAME "Danish"
  1039. X
  1040. X/* Day names */
  1041. X#ifdef ISOLATIN1
  1042. X#  define L_SUNDAY "S\370ndag"
  1043. X#else
  1044. X#  define L_SUNDAY "Soendag"
  1045. X#endif
  1046. X#define L_MONDAY "Mandag"
  1047. X#define L_TUESDAY "Tirsdag"
  1048. X#define L_WEDNESDAY "Onsdag"
  1049. X#define L_THURSDAY "Torsdag"
  1050. X#define L_FRIDAY "Fredag"
  1051. X#ifdef ISOLATIN1
  1052. X#  define L_SATURDAY "L\370rdag"
  1053. X#else
  1054. X#  define L_SATURDAY "Loerdag"
  1055. X#endif
  1056. X
  1057. X/* Day initials - first letter only */
  1058. X#define L_DAYINIT "SMTOTFL"
  1059. X
  1060. X/* Month names */
  1061. X#define L_JAN "Januar"
  1062. X#define L_FEB "Februar"
  1063. X#define L_MAR "Mars"
  1064. X#define L_APR "April"
  1065. X#define L_MAY "Maj"
  1066. X#define L_JUN "Juni"
  1067. X#define L_JUL "Juli"
  1068. X#define L_AUG "August"
  1069. X#define L_SEP "September"
  1070. X#define L_OCT "Oktober"
  1071. X#define L_NOV "November"
  1072. X#define L_DEC "December"
  1073. X
  1074. X/* Today and tomorrow */
  1075. X#define L_TODAY "i dag"
  1076. X#define L_TOMORROW "i morgen"
  1077. X
  1078. X/* The default banner */
  1079. X#ifdef ISOLATIN1
  1080. X#  define L_BANNER "P\345mindelse for %w, %d. %m, %y%o:"
  1081. X#else
  1082. X#  define L_BANNER "Paamindelse for %w, %d. %m, %y%o:"
  1083. X#endif
  1084. X
  1085. X/* "am" and "pm" */
  1086. X#define L_AM "am"
  1087. X#define L_PM "pm"
  1088. X
  1089. X/*** The following are only used in dosubst.c ***/
  1090. X#ifdef L_IN_DOSUBST
  1091. X
  1092. X/* Ago and from now */
  1093. X#define L_AGO "siden"
  1094. X#define L_FROMNOW "fra nu"
  1095. X
  1096. X/* "in %d days' time" */
  1097. X#define L_INXDAYS "om %d dage"
  1098. X
  1099. X/* "on" as in "on date..." */
  1100. X#ifdef ISOLATIN1
  1101. X#  define L_ON "p\345"
  1102. X#else
  1103. X#  define L_ON "paa"
  1104. X#endif 
  1105. X
  1106. X/* Pluralizing - this is a problem for many languages and may require
  1107. X   a more drastic fix */
  1108. X#define L_PLURAL "e"
  1109. X
  1110. X/* Minutes, hours, at, etc */
  1111. X#define L_NOW "nu"
  1112. X#define L_AT "kl."
  1113. X#define L_MINUTE "minut"
  1114. X#define L_HOUR "time"
  1115. X#define L_IS "er"
  1116. X#define L_WAS "var"
  1117. X#define L_AND "og"
  1118. X/* What to add to make "hour" plural */
  1119. X#define L_HPLU "r"  
  1120. X/* What to add to make "minute" plural */
  1121. X#define L_MPLU "ter"
  1122. X
  1123. X/* Define any overrides here, such as L_ORDINAL_OVERRIDE, L_A_OVER, etc.
  1124. X   See the file dosubst.c for more info. */
  1125. X
  1126. X#define L_AMPM_OVERRIDE(ampm, hour)    ampm = (hour < 12) ? (hour<5) ? " om natten" : " om formiddagen" : (hour > 17) ? " om aftenen" : " om eftermiddagen";
  1127. X#define L_ORDINAL_OVERRIDE        plu = ".";
  1128. X#define L_A_OVER                        sprintf(s, "%s %s, den %d. %s %d", L_ON, DayName[jul%7], d, MonthName[m], y);
  1129. X#define L_E_OVER                        sprintf(s, "den %02d%c%02d%c%04d", d, DATESEP, m+1, DATESEP, y);
  1130. X#define L_F_OVER                        sprintf(s, "den %02d%c%02d%c%04d", m+1, DATESEP, d, DATESEP, y);
  1131. X#define    L_G_OVER            sprintf(s, "%s %s, den %d. %s", L_ON, DayName[jul%7], d, MonthName[m]);
  1132. X#define L_H_OVER                        sprintf(s, "den %02d%c%02d", d, DATESEP, m+1);
  1133. X#define L_I_OVER                        sprintf(s, "den %02d%c%02d", m+1, DATESEP, d);
  1134. X#define L_U_OVER            L_A_OVER
  1135. X#define L_V_OVER            L_G_OVER
  1136. X
  1137. X#endif /* L_IN_DOSUBST */
  1138. SHAR_EOF
  1139. $TOUCH -am 1201104593 danish.h &&
  1140. chmod 0600 danish.h ||
  1141. echo "restore of danish.h failed"
  1142. set `wc -c danish.h`;Wc_c=$1
  1143. if test "$Wc_c" != "3612"; then
  1144.     echo original size 3612, current size $Wc_c
  1145. fi
  1146. # ============= polish.h ==============
  1147. echo "x - extracting polish.h (Text)"
  1148. sed 's/^X//' << 'SHAR_EOF' > polish.h &&
  1149. X/***************************************************************/
  1150. X/*                                                             */
  1151. X/*  POLISH.H                                                   */
  1152. X/*                                                             */
  1153. X/*  Support for the Polish language.                           */
  1154. X/*                                                             */
  1155. X/*  This file was submitted by Jerzy Sobczyk.  I don't         */
  1156. X/*  guarantee that there are no mistakes - I don't speak       */
  1157. X/*  Polish.                                                    */
  1158. X/*                                                             */
  1159. X/*  This file is part of REMIND.                               */
  1160. X/*  Copyright (C) 1992, 1993, 1994 by David F. Skoll.          */
  1161. X/*                                                             */
  1162. X/***************************************************************/
  1163. X
  1164. X/* The very first define in a language support file must be L_LANGNAME: */
  1165. X#define L_LANGNAME "Polish"
  1166. X
  1167. X/* Day names */
  1168. X#ifdef ISOLATIN1
  1169. X#  define L_SUNDAY "Niedziela"
  1170. X#  define L_MONDAY "Poniedzia\263ek"
  1171. X#  define L_TUESDAY "Wtorek"
  1172. X#  define L_WEDNESDAY "\246roda"
  1173. X#  define L_THURSDAY "Czwartek"
  1174. X#  define L_FRIDAY "Pi\261tek"
  1175. X#  define L_SATURDAY "Sobota"
  1176. X#else
  1177. X#  define L_SUNDAY "Niedziela"
  1178. X#  define L_MONDAY "Poniedzialek"
  1179. X#  define L_TUESDAY "Wtorek"
  1180. X#  define L_WEDNESDAY "Sroda"
  1181. X#  define L_THURSDAY "Czwartek"
  1182. X#  define L_FRIDAY "Piatek"
  1183. X#  define L_SATURDAY "Sobota"
  1184. X#endif
  1185. X
  1186. X/* Day initials - first letter only */
  1187. X#ifdef ISOLATIN1
  1188. X#define L_DAYINIT "NPW\246CPS"
  1189. X#else
  1190. X#define L_DAYINIT "NPWSCPS"
  1191. X#endif
  1192. X
  1193. X/* Month names */
  1194. X#ifdef ISOLATIN1
  1195. X#  define L_JAN "Stycze\361"
  1196. X#  define L_FEB "Luty"
  1197. X#  define L_MAR "Marzec"
  1198. X#  define L_APR "Kwiecie\361"
  1199. X#  define L_MAY "Maj"
  1200. X#  define L_JUN "Czerwiec"
  1201. X#  define L_JUL "Lipiec"
  1202. X#  define L_AUG "Sierpie\361"
  1203. X#  define L_SEP "Wrzesie\361"
  1204. X#  define L_OCT "Pa\274dziernik"
  1205. X#  define L_NOV "Listopad"
  1206. X#  define L_DEC "Grudzie\361"
  1207. X#else
  1208. X#  define L_JAN "Styczen"
  1209. X#  define L_FEB "Luty"
  1210. X#  define L_MAR "Marzec"
  1211. X#  define L_APR "Kwiecien"
  1212. X#  define L_MAY "Maj"
  1213. X#  define L_JUN "Czerwiec"
  1214. X#  define L_JUL "Lipiec"
  1215. X#  define L_AUG "Sierpien"
  1216. X#  define L_SEP "Wrzesien"
  1217. X#  define L_OCT "Pazdziernik"
  1218. X#  define L_NOV "Listopad"
  1219. X#  define L_DEC "Grudzien"
  1220. X#endif
  1221. X
  1222. X/* Today and tomorrow */
  1223. X#define L_TODAY "dzisiaj"
  1224. X#define L_TOMORROW "jutro"
  1225. X
  1226. X/* The default banner */
  1227. X#define L_BANNER "Terminarz na %w, %d. %m %y%o:"
  1228. X
  1229. X/* "am" and "pm" */
  1230. X#define L_AM "am"
  1231. X#define L_PM "pm"
  1232. X
  1233. X/*** The following are only used in dosubst.c ***/
  1234. X#ifdef L_IN_DOSUBST
  1235. X
  1236. X/* Ago and from now */
  1237. X#define L_AGO "temu"
  1238. X#define L_FROMNOW "od teraz"
  1239. X
  1240. X/* "in %d days' time" */
  1241. X#define L_INXDAYS "za %d dni"
  1242. X
  1243. X/* "on" as in "on date..." */
  1244. X#define L_ON "-"
  1245. X
  1246. X/* Pluralizing - this is a problem for many languages and may require
  1247. X   a more drastic fix */
  1248. X#define L_PLURAL ""
  1249. X
  1250. X/* Minutes, hours, at, etc */
  1251. X#define L_NOW "teraz"
  1252. X#define L_AT "o"
  1253. X#define L_MINUTE "minut"
  1254. X#define L_HOUR "godzin"
  1255. X#ifdef ISOLATIN1
  1256. X#  define L_IS "b\352dzie"
  1257. X#  define L_WAS "by\263o"
  1258. X#else
  1259. X#  define L_IS "bedzie"
  1260. X#  define L_WAS "bylo"
  1261. X#endif
  1262. X#define L_AND "i"
  1263. X/* What to add to make "hour" or "minute" plural */
  1264. X#ifdef ISOLATIN1
  1265. X#define L_NPLU( N ) ((N == 1) ? "\352" : ((N==12) || (N==13) || (N==14)) ? "" : \
  1266. X            ((N%10==2) || (N%10==3) || (N%10==4)) ? "y" : "" )
  1267. X#else
  1268. X#define L_NPLU( N ) ((N == 1) ? "e" : ((N==12) || (N==13) || (N==14)) ? "" : \
  1269. X            ((N%10==2) || (N%10==3) || (N%10==4)) ? "y" : "" )
  1270. X#endif
  1271. X/* What to add to make "hour" plural */
  1272. X#define L_HPLU L_NPLU( hdiff )
  1273. X/* What to add to make "minute" plural */
  1274. X#define L_MPLU L_NPLU( mdiff )
  1275. X
  1276. X/* Define any overrides here, such as L_ORDINAL_OVERRIDE, L_A_OVER, etc.
  1277. X   See the file dosubst.c for more info. */
  1278. X#ifdef ISOLATIN1
  1279. X#define L_AMPM_OVERRIDE(ampm, hour) \
  1280. X   ampm = (hour<12) ? \
  1281. X         (hour<5) ? " w nocy" \
  1282. X              : (hour<10) ? " rano" \
  1283. X                  : " przed po\263udniem" \
  1284. X             : (hour<18) ? " po po\263udniu" \
  1285. X             : (hour<22) ? " wieczorem" \
  1286. X                     : " w nocy";
  1287. X#else
  1288. X#define L_AMPM_OVERRIDE(ampm, hour) \
  1289. X   ampm = (hour<12) ? \
  1290. X         (hour<5) ? " w nocy" \
  1291. X              : (hour<10) ? " rano" \
  1292. X                  : " przed poludniem" \
  1293. X             : (hour<18) ? " po poludniu" \
  1294. X             : (hour<22) ? " wieczorem" \
  1295. X                     : " w nocy";
  1296. X#endif
  1297. X#define L_ORDINAL_OVERRIDE        plu = "";
  1298. X#define L_A_OVER            sprintf(s, "%s %s, %d. %s %d", L_ON, DayName[jul%7], d, MonthName[m], y);
  1299. X#define    L_G_OVER            sprintf(s, "%s %s, %d. %s", L_ON, DayName[jul%7], d, MonthName[m]);
  1300. X#define L_U_OVER            L_A_OVER
  1301. X#define L_V_OVER            L_G_OVER
  1302. X
  1303. X#endif /* L_IN_DOSUBST */
  1304. X
  1305. X#define L_0_OVER sprintf(s, L_HPLU);
  1306. X#define L_9_OVER sprintf(s, L_MPLU);
  1307. X#define L_1_OVER \
  1308. X        if (tdiff == 0)  \
  1309. X           sprintf(s, L_NOW); \
  1310. X        else if (tdiff > 0) \
  1311. X          { \
  1312. X          if (hdiff == 0)  \
  1313. X         sprintf(s, "za %d %s%s", mdiff, L_MINUTE, L_MPLU); \
  1314. X          else if (mdiff == 0) \
  1315. X         sprintf(s, "za %d %s%s", hdiff, L_HOUR, L_HPLU); \
  1316. X          else \
  1317. X         sprintf(s, "za %d %s%s %s %d %s%s", hdiff, L_HOUR, L_HPLU, \
  1318. X                     L_AND, mdiff, L_MINUTE, L_MPLU); \
  1319. X          } \
  1320. X        else \
  1321. X          { \
  1322. X          if (hdiff == 0)  \
  1323. X         sprintf(s, "%d %s%s temu", mdiff, L_MINUTE, L_MPLU); \
  1324. X          else if (mdiff == 0) \
  1325. X         sprintf(s, "%d %s%s temu", hdiff, L_HOUR, L_HPLU); \
  1326. X          else \
  1327. X         sprintf(s, "%d %s%s %s %d %s%s temu", hdiff, L_HOUR, L_HPLU, \
  1328. X                     L_AND, mdiff, L_MINUTE, L_MPLU); \
  1329. X          } 
  1330. X
  1331. X/* The next ones are used only when MK_GLOBALS is set */
  1332. X#ifdef MK_GLOBALS
  1333. X#define L_ERR_OVERRIDE 1
  1334. XEXTERN char *ErrMsg[] =
  1335. X{
  1336. X#ifdef ISOLATIN1
  1337. X   "OK",
  1338. X   "Brakuj\261cy ']'",
  1339. X   "Brakuj\261cy nawias",
  1340. X   "Zbyt skomplikowane wyra\277enie - za du\277o operator\363w",
  1341. X   "Zbyt skomplikowane wyra\277enie - za du\277o argument\363w",
  1342. X   "Brakuj\261cy ')'",
  1343. X   "Nie zdefiniowana funkcja",
  1344. X   "Nielegalny znak",
  1345. X   "Spodziewany operator binarny",
  1346. X   "Brak pami\352ci",
  1347. X   "Niepoprawny numer",
  1348. X   "Pusty stos operator\363w - b\263\261d wewn\352trzny",
  1349. X   "Pusty stos zmiennych - b\263\261d wewn\352trzny",
  1350. X   "Niemo\277liwa konwersja",
  1351. X   "B\263\261d typu",
  1352. X   "Nadmiar daty",
  1353. X   "B\263\261d stosu - b\263\261d wewn\352trzny",
  1354. X   "Dzielenie przez zero",
  1355. X   "Niezdefiniowana zmienna",
  1356. X   "Niespodziewany koniec linii",
  1357. X   "Niespodziewany koniec pliku",
  1358. X   "B\263\261d wejscia/wyjscia",
  1359. X   "Za d\263uga linia",
  1360. X   "B\263\261d wewn\352trzny",
  1361. X   "Z\263a specyfikacja daty",
  1362. X   "Za ma\263o argument\363w",
  1363. X   "Za du\277o argument\363w",
  1364. X   "Nieprawid\263owy czas",
  1365. X   "Liczba za du\277a",
  1366. X   "Liczba za ma\263a",
  1367. X   "Nie mog\352 otworzy\346 pliku",
  1368. X   "Zbyt zagnie\277d\277one INCLUDE",
  1369. X   "B\263\261d sk\263adniowy",
  1370. X   "Nie mog\352 obliczy\346 przypomnienia",
  1371. X   "Zbyt zagnie\277d\277one IF",
  1372. X   "ELSE bez IF do pary",
  1373. X   "ENDIF bez IF do pary",
  1374. X   "Nie mog\352 omin\261\346 (OMIT) wszystkich dni",
  1375. X   "Niespodziewany wyraz w lini",
  1376. X   "POP-OMIT-CONTEXT bez PUSH-OMIT-CONTEXT",
  1377. X   "Komenda RUN zablokowana",
  1378. X   "B\263\261d dziedziny",
  1379. X   "Niepoprawny identyfikator",
  1380. X   "Wykryto rekursywne wywo\263anie funkcji",
  1381. X   "",
  1382. X   "Nie mog\352 zmieni\346 zmiennej systemowej",
  1383. X   "Funkcja biblioteki C nie mo\277e reprezentowac daty/czasu",
  1384. X   "Pr\363ba redefinicji funkcji wbudowanej",
  1385. X   "Nie wolno zagnie\277d\277a\346 definicji funkcji w wyra\277eniu",
  1386. X   "Aby u\277yc powt\363rzenia trzeba w pe\263ni wyspecyfikowa\346 dat\352",
  1387. X   "Rok podany dw\363krotnie",
  1388. X   "Miesi\261c podany dw\363krotnie",
  1389. X   "Dzie\361 podany dw\363krotnie",
  1390. X   "Nieznane s\263owo",
  1391. X   "W komendzie OMIT trzeba poda\346 miesi\261c i dzie\361",
  1392. X   "Za du\277o cz\352\266ciowych komend OMIT",
  1393. X   "Za du\277o pe\263nych komend OMIT",
  1394. X   "Ostrze\277enie: PUSH-OMIT-CONTEXT bez POP-OMIT-CONTEXT",
  1395. X   "B\263\261d odczytu pliku",
  1396. X   "Oczekiwany koniec linii",
  1397. X   "B\263\352dna data hebrajska",
  1398. X   "IIF wymaga nieparzystej liczby argument\363w",
  1399. X   "Ostrze\277enie: Brakujacy ENDIF",
  1400. X   "Oczekiwany przecinek",
  1401. X   "Dzie\361 tygodnia podany dw\363krotnie",
  1402. X   "Dozwolone tylko jedno z:  BEFORE, AFTER i SKIP",
  1403. X   "Nie mo\277na zagnie\277d\277a\346 MSG, MSF, RUN, itp. w wyra\277eniu",
  1404. X   "Warto\266\346 powtorzenia podana dw\363krotnie",
  1405. X   "Warto\266\346 r\363\277nicy podana dw\363krotnie",
  1406. X   "Warto\266\346 cofni\352cia podana dw\363krotnie",
  1407. X   "S\263owo ONCE u\277yte dw\363krotnie.",
  1408. X   "Po AT oczekiwany jest czas",
  1409. X   "S\263owo UNTIL u\277yte dw\363krotnie",
  1410. X   "Niekompletna specyfikacja daty",
  1411. X   "S\263owo SCANFROM u\277yte dw\363krotnie",
  1412. X   "Zmienna",
  1413. SHAR_EOF
  1414. echo "End of Remind-3.0/Patch-12/part part 1"
  1415. echo "File polish.h is continued in part 2"
  1416. echo "2" > shar3_seq_.tmp
  1417. exit 0
  1418.  
  1419.  
  1420.  
  1421. exit 0 # Just in case...
  1422.