home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-01-31 | 46.0 KB | 1,422 lines |
- Newsgroups: comp.sources.misc
- From: dfs@doe.carleton.ca (David F. Skoll)
- Subject: v41i122: remind - A replacement for calendar, Patch12a/2
- Message-ID: <csm-v41i122=remind.000244@sparky.Sterling.COM>
- X-Md4-Signature: b320c840c90c913ccae1ea918dbfadb3
- Sender: kent@sparky.sterling.com (Kent Landfield)
- Reply-To: dfs@doe.carleton.ca (David F. Skoll)
- Organization: Dept. of Electronics, Carleton University
- Date: Tue, 1 Feb 1994 06:03:38 GMT
- Approved: kent@sparky.sterling.com
-
- Submitted-by: dfs@doe.carleton.ca (David F. Skoll)
- Posting-number: Volume 41, Issue 122
- Archive-name: remind/patch12a
- Environment: UNIX, MS-DOS, OS/2
- Patch-To: remind: Volume 33, Issue 58-69
-
- This is patch 12 for version 3.0 of Remind.
-
- Remind is a sophisticated calendar/alarm program, which runs under
- MS-DOS, UNIX and OS/2. It produces alarms, reminders and PostScript
- calendars.
-
- This patch adds two languages to those supported by Remind, and fixes
- a few small portability problems. It does not add any major features.
- Languages supported are currently: English, French, Dutch, German,
- Finnish, Norwegian, Danish and Polish.
-
- AVAILABILITY: Remind is available via anonymous ftp at ftp.doe.carleton.ca
- (134.117.9.35) in the directory /pub/remind-3.0 - see the file README.1st
- in that directory for a list of files.
-
- DEMO: If you have Xmosaic or some other WWW browser, connect to the URL
- 'http://www.doe.carleton.ca/students/skoll/' and look near the bottom
- of the document. There are some hypertext links which run a few small
- demos of Remind.
-
- --
- David F. Skoll
-
- Here's what's new:
-
- * Version 3.0 Patch 12
-
- + MINOR ENHANCEMENTS
-
- - Added support for the Danish language, courtesy of Mogens Lynnerup.
-
- - Added support for the Polish language, courtesy of Jerzy Sobczyk.
-
- - Made the Makefile more portable, thanks to Jim Budler.
-
- - Removed some compiler warnings under Linux, thanks to Francois Pinard.
-
- - Tidied the man page a bit; added a small bibliography.
-
- + BUG FIXES
-
- - Fixed a problem with the '-k' option which resulted in a newline being
- placed after the message text. This was giving sh(1) heartburn...
- ---
- #!/bin/sh
- # This is Remind-3.0/Patch-12/part, a shell archive (shar 3.32)
- # made 01/31/1994 21:33 UTC by <dfs@doe.carleton.ca> (David F. Skoll)
- # Source directory /tmp_mnt/home/dfs/work/.rem/Remind-3.0/cur
- #
- # existing files WILL be overwritten
- #
- # This is part 1 of a multipart archive
- # do not concatenate these parts, unpack them in order with /bin/sh
- #
- # This shar contains:
- # length mode name
- # ------ ---------- ------------------------------------------
- # 29831 -rw------- patch.12
- # 3612 -rw------- danish.h
- # 16852 -rw------- polish.h
- #
- if touch 2>&1 | fgrep 'amc' > /dev/null
- then TOUCH=touch
- else TOUCH=true
- fi
- if test -r shar3_seq_.tmp; then
- echo "Must unpack archives in sequence!"
- next=`cat shar3_seq_.tmp`; echo "Please unpack part $next next"
- exit 1
- fi
- # ============= patch.12 ==============
- echo "x - extracting patch.12 (Text)"
- sed 's/^X//' << 'SHAR_EOF' > patch.12 &&
- XPrereq: "03.00.11"
- X*** ../prev/version.h Thu Oct 21 12:38:51 1993
- X--- ./version.h Tue Nov 23 11:50:39 1993
- X***************
- X*** 9,12 ****
- X /* */
- X /***************************************************************/
- X
- X! #define VERSION "03.00.11"
- X--- 9,12 ----
- X /* */
- X /***************************************************************/
- X
- X! #define VERSION "03.00.12"
- X*** ../prev/MANIFEST.DOS Tue Oct 12 16:25:54 1993
- X--- ./MANIFEST.DOS Mon Jan 31 10:41:47 1994
- X***************
- X*** 1,6 ****
- X--- 1,7 ----
- X calendar.c
- X config.h
- X copyrigh
- X+ danish.h
- X defs.rem
- X dorem.c
- X dosubst.c
- X***************
- X*** 36,41 ****
- X--- 37,43 ----
- X norwgian.h
- X omit.c
- X os2func.c
- X+ polish.h
- X protos.h
- X queue.c
- X readme.bcc
- X*** ../prev/MANIFEST.UNX Tue Oct 12 16:25:37 1993
- X--- ./MANIFEST.UNX Mon Jan 31 10:41:41 1994
- X***************
- X*** 9,14 ****
- X--- 9,15 ----
- X WHATSNEW.30
- X calendar.c
- X config.h
- X+ danish.h
- X defs.rem
- X dorem.c
- X dosubst.c
- X***************
- X*** 41,46 ****
- X--- 42,48 ----
- X norwgian.h
- X omit.c
- X os2func.c
- X+ polish.h
- X protos.h
- X queue.c
- X rem
- X*** ../prev/Makefile Thu Oct 21 12:40:51 1993
- X--- ./Makefile Mon Jan 31 10:41:23 1994
- X***************
- X*** 53,67 ****
- X # YOU SHOULDN'T EDIT ANYTHING BELOW HERE. You may want to change some things
- X # in config.h; then, you should be able to type 'make'.
- X #-----------------------------------------------------------------------------
- X! VERSION= 03.00.11
- X MATHLIB= -lm
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
- X init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
- X--- 53,69 ----
- X # YOU SHOULDN'T EDIT ANYTHING BELOW HERE. You may want to change some things
- X # in config.h; then, you should be able to type 'make'.
- X #-----------------------------------------------------------------------------
- X! VERSION= 03.00.12
- X MATHLIB= -lm
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
- X! danish.h polish.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
- X! polish.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
- X init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
- X***************
- X*** 119,126 ****
- X var.o: var.c $(STDHDRS) expr.h
- X
- X tarZ:
- X! tar cvf remind-3.0.11.tar $(MANIFEST)
- X! compress -v remind-3.0.11.tar
- X
- X shar:
- X shar -x -n"Remind $(VERSION)" -l45 -o./Shar $(MANIFEST)
- X--- 121,128 ----
- X var.o: var.c $(STDHDRS) expr.h
- X
- X tarZ:
- X! tar cvf remind-3.0.12.tar $(MANIFEST)
- X! compress -v remind-3.0.12.tar
- X
- X shar:
- X shar -x -n"Remind $(VERSION)" -l45 -o./Shar $(MANIFEST)
- X***************
- X*** 192,200 ****
- X release:
- X -mkdir RELEASE
- X -rm -f RELEASE/*
- X! mkpatch ../prev . patch.11 Shar "Remind-3.0/Patch-11/part"
- X mv Shar* RELEASE
- X! rm -f patch.11
- X for i in *.1; do nroff -man $$i | sed -e 's/_//g' > `basename $$i .1`.man; done
- X mv *.man RELEASE
- X for i in *.1; do groff -man -Tps $$i > `basename $$i .1`.ps; done
- X--- 194,202 ----
- X release:
- X -mkdir RELEASE
- X -rm -f RELEASE/*
- X! mkpatch ../prev . patch.12 Shar "Remind-3.0/Patch-12/part"
- X mv Shar* RELEASE
- X! rm -f patch.12
- X for i in *.1; do nroff -man $$i | sed -e 's/_//g' > `basename $$i .1`.man; done
- X mv *.man RELEASE
- X for i in *.1; do groff -man -Tps $$i > `basename $$i .1`.ps; done
- X*** ../prev/README.DOS Tue Oct 12 16:22:34 1993
- X--- ./README.DOS Wed Dec 1 10:39:36 1993
- X***************
- X*** 26,32 ****
- X Remind has support for languages other than English. See the file
- X "lang.h" for details. The language support may vary - you can change
- X only the substitution filter, or you can translate all of the usage
- X! instructions and error messages as well. See "french.h" for an
- X
- X If you add support for a non-English language, Remind will accept both the
- X English and non-English names of months and weekdays in an input script.
- X--- 26,32 ----
- X Remind has support for languages other than English. See the file
- X "lang.h" for details. The language support may vary - you can change
- X only the substitution filter, or you can translate all of the usage
- X! instructions and error messages as well. See "french.h" for an example.
- X
- X If you add support for a non-English language, Remind will accept both the
- X English and non-English names of months and weekdays in an input script.
- X*** ../prev/WHATSNEW.30 Tue Nov 16 17:42:21 1993
- X--- ./WHATSNEW.30 Mon Jan 31 16:25:21 1994
- X***************
- X*** 1,5 ****
- X--- 1,24 ----
- X CHANGES TO REMIND
- X
- X+ * Version 3.0 Patch 12
- X+
- X+ + MINOR ENHANCEMENTS
- X+
- X+ - Added support for the Danish language, courtesy of Mogens Lynnerup.
- X+
- X+ - Added support for the Polish language, courtesy of Jerzy Sobczyk.
- X+
- X+ - Made the Makefile more portable, thanks to Jim Budler.
- X+
- X+ - Removed some compiler warnings under Linux, thanks to Francois Pinard.
- X+
- X+ - Tidied the man page a bit; added a small bibliography.
- X+
- X+ + BUG FIXES
- X+
- X+ - Fixed a problem with the '-k' option which resulted in a newline being
- X+ placed after the message text. This was giving sh(1) heartburn...
- X+
- X * Version 3.0 Patch 11
- X
- X + MINOR ENHANCEMENTS
- X*** ../prev/config.h Mon Nov 15 14:25:26 1993
- X--- ./config.h Mon Jan 31 10:34:11 1994
- X***************
- X*** 190,195 ****
- X--- 190,203 ----
- X #endif
- X
- X /*---------------------------------------------------------------------*/
- X+ /* Does the function argument to the signal() function take an INT */
- X+ /* argument? If yes, uncomment the next line. If you get it wrong, */
- X+ /* the only bad side effect is a compiler warning, so don't worry too */
- X+ /* much about it. */
- X+ /*---------------------------------------------------------------------*/
- X+ /* #define SIGHANDLER_INT_ARG 1 */
- X+
- X+ /*---------------------------------------------------------------------*/
- X /* Do we have the <unistd.h> header? If not, use sys/files.h */
- X /*---------------------------------------------------------------------*/
- X #ifdef UNIX
- X*** ../prev/dorem.c Tue Nov 16 17:41:46 1993
- X--- ./dorem.c Mon Jan 31 16:23:42 1994
- X***************
- X*** 553,559 ****
- X DestroyValue(v);
- X }
- X }
- X! if (t->typ == MSG_TYPE || t->typ == MSF_TYPE) {
- X *s2++ = '\n';
- X }
- X *s2 = 0;
- X--- 553,559 ----
- X DestroyValue(v);
- X }
- X }
- X! if (!MsgCommand && (t->typ == MSG_TYPE || t->typ == MSF_TYPE)) {
- X *s2++ = '\n';
- X }
- X *s2 = 0;
- X*** ../prev/funcs.c Tue Nov 16 17:40:44 1993
- X--- ./funcs.c Mon Jan 31 10:28:55 1994
- X***************
- X*** 1921,1927 ****
- X /* by Michael Schwartz and Marc T. Kaufman. */
- X /* */
- X /***************************************************************/
- X! #define PI 3.1415926536
- X #define DEGRAD (PI/180.0)
- X #define RADDEG (180.0/PI)
- X
- X--- 1921,1930 ----
- X /* by Michael Schwartz and Marc T. Kaufman. */
- X /* */
- X /***************************************************************/
- X! #ifdef PI
- X! #undef PI
- X! #endif
- X! #define PI 3.14159265358979323846
- X #define DEGRAD (PI/180.0)
- X #define RADDEG (180.0/PI)
- X
- X*** ../prev/lang.h Tue Oct 12 16:22:46 1993
- X--- ./lang.h Mon Jan 31 10:37:10 1994
- X***************
- X*** 11,22 ****
- X
- X /* I'm chauvinistic and name each language with its English name... */
- X
- X! #define ENGLISH 0 /* original by David Skoll */
- X! #define GERMAN 1 /* translated by Wolfgang Thronicke */
- X #define DUTCH 2 /* translated by Willem Kasdorp and Erik-Jan Vens */
- X! #define FINNISH 3 /* translated by Mikko Silvonen */
- X! #define FRENCH 4 /* translated by Laurent Duperval */
- X! #define NORWEGIAN 5 /* translated by Trygve Randen */
- X
- X /* Add more languages here - but please e-mail dfs@doe.carleton.ca
- X to have your favorite language assigned a number. If you add a
- X--- 11,24 ----
- X
- X /* I'm chauvinistic and name each language with its English name... */
- X
- X! #define ENGLISH 0 /* original by David F. Skoll */
- X! #define GERMAN 1 /* translated by Wolfgang Thronicke */
- X #define DUTCH 2 /* translated by Willem Kasdorp and Erik-Jan Vens */
- X! #define FINNISH 3 /* translated by Mikko Silvonen */
- X! #define FRENCH 4 /* translated by Laurent Duperval */
- X! #define NORWEGIAN 5 /* translated by Trygve Randen */
- X! #define DANISH 6 /* translated by Mogens Lynnerup */
- X! #define POLISH 7 /* translated by Jerzy Sobczyk */
- X
- X /* Add more languages here - but please e-mail dfs@doe.carleton.ca
- X to have your favorite language assigned a number. If you add a
- X***************
- X*** 35,46 ****
- X #define LANG ENGLISH
- X #endif
- X
- X- /* If LANG is not defined, it defaults to English. */
- X- #ifndef LANG
- X- #define LANG ENGLISH
- X- #endif
- X-
- X-
- X /* Pick up the appropriate header file */
- X #if LANG == ENGLISH
- X #include "english.h"
- X--- 37,42 ----
- X***************
- X*** 54,59 ****
- X--- 50,59 ----
- X #include "french.h"
- X #elif LANG == NORWEGIAN
- X #include "norwgian.h"
- X+ #elif LANG == DANISH
- X+ #include "danish.h"
- X+ #elif LANG == POLISH
- X+ #include "polish.h"
- X
- X /* If no sensible language, choose English. I intended to use
- X the #error directive here, but some C compilers barf. */
- X*** ../prev/main.c Wed Nov 17 12:38:09 1993
- X--- ./main.c Mon Jan 31 10:34:45 1994
- X***************
- X*** 1493,1499 ****
- X--- 1493,1503 ----
- X void __cdecl SigIntHandler(int d)
- X #else
- X #ifdef HAVE_PROTOS
- X+ #ifdef SIGHANDLER_INT_ARG
- X+ void SigIntHandler(int d)
- X+ #else
- X void SigIntHandler(void)
- X+ #endif
- X #else
- X void SigIntHandler()
- X #endif
- X*** ../prev/makefile.bcc Mon Nov 15 14:25:32 1993
- X--- ./makefile.bcc Mon Jan 31 10:41:07 1994
- X***************
- X*** 1,6 ****
- X # Makefile for REMIND for Borland C++
- X
- X! VERSION= 03.00.11
- X
- X MODEL=l
- X
- X--- 1,6 ----
- X # Makefile for REMIND for Borland C++
- X
- X! VERSION= 03.00.12
- X
- X MODEL=l
- X
- X***************
- X*** 15,25 ****
- X !endif
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
- X main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c \
- X--- 15,27 ----
- X !endif
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
- X! danish.h polish.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
- X! polish.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
- X main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c \
- X*** ../prev/makefile.os2 Tue Nov 16 12:13:24 1993
- X--- ./makefile.os2 Mon Jan 31 10:40:54 1994
- X***************
- X*** 43,53 ****
- X OS2_POPUP = -DOS2_POPUP
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
- X init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
- X--- 43,55 ----
- X OS2_POPUP = -DOS2_POPUP
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
- X! danish.h polish.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
- X! polish.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c hbcal.c \
- X init.c main.c moon.c omit.c sort.c queue.c token.c trigger.c userfns.c \
- X*** ../prev/makefile.tc Thu Oct 21 12:39:34 1993
- X--- ./makefile.tc Mon Jan 31 10:40:39 1994
- X***************
- X*** 1,14 ****
- X # Makefile for REMIND for Turbo C for MSDOS
- X
- X CC= tcc
- X! VERSION= 03.00.11
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
- X moon.c main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c
- X--- 1,16 ----
- X # Makefile for REMIND for Turbo C for MSDOS
- X
- X CC= tcc
- X! VERSION= 03.00.12
- X
- X HDRS= config.h err.h expr.h globals.h protos.h types.h version.h \
- X! lang.h english.h german.h dutch.h finnish.h french.h norwgian.h \
- X! danish.h polish.h
- X
- X STDHDRS= config.h types.h protos.h globals.h err.h lang.h
- X
- X! LANGHDRS= english.h german.h dutch.h finnish.h french.h norwgian.h danish.h \
- X! polish.h
- X
- X SRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
- X moon.c main.c omit.c sort.c token.c trigger.c userfns.c utils.c var.c hbcal.c
- X*** ../prev/moon.c Tue Oct 12 16:22:48 1993
- X--- ./moon.c Mon Jan 31 10:29:38 1994
- X***************
- X*** 116,121 ****
- X--- 116,124 ----
- X /* Properties of the Earth */
- X
- X #define earthrad 6378.16 /* Radius of Earth in kilometres */
- X+ #ifdef PI
- X+ #undef PI
- X+ #endif
- X
- X #define PI 3.14159265358979323846
- X
- X*** ../prev/protos.h Tue Nov 16 15:58:54 1993
- X--- ./protos.h Mon Jan 31 10:35:37 1994
- X***************
- X*** 148,154 ****
- X--- 148,158 ----
- X #ifdef __BORLANDC__
- X void __cdecl SigIntHandler ARGS ((int d));
- X #else
- X+ #ifdef SIGHANDLER_INT_ARG
- X+ void SigIntHandler ARGS ((int d));
- X+ #else
- X void SigIntHandler ARGS ((void));
- X+ #endif
- X #endif
- X void GotSigInt ARGS ((void));
- X
- X*** ../prev/remind.1 Mon Nov 15 15:19:08 1993
- X--- ./remind.1 Mon Jan 31 11:01:39 1994
- X***************
- X*** 1,4 ****
- X! .TH REMIND 1 "13 October 1993"
- X .UC 4
- X .SH NAME
- X remind \- a sophisticated reminder service
- X--- 1,4 ----
- X! .TH REMIND 1 "31 January 1994"
- X .UC 4
- X .SH NAME
- X remind \- a sophisticated reminder service
- X***************
- X*** 80,95 ****
- X messages. In particular, if no reminders are triggered, this mode
- X produces no output.
- X .TP
- X! .B \-a
- X The \fB\-a\fR option causes \fBRemind\fR not to immediately trigger timed
- X reminders which would also be queued. It also causes \fBRemind\fR not to
- X place timed reminders in a calendar.
- X .TP
- X! .B \-q
- X The \fB\-q\fR option causes \fBRemind\fR not to queue timed reminders
- X for later execution.
- X .TP
- X! .B \-f
- X The \fB\-f\fR option causes \fBRemind\fR to remain in the foreground
- X when processing queued reminders, rather than forking off
- X a background process to handle them.
- X--- 80,95 ----
- X messages. In particular, if no reminders are triggered, this mode
- X produces no output.
- X .TP
- X! \fB\-a\fR (UNIX and OS/2 only)
- X The \fB\-a\fR option causes \fBRemind\fR not to immediately trigger timed
- X reminders which would also be queued. It also causes \fBRemind\fR not to
- X place timed reminders in a calendar.
- X .TP
- X! \fB\-q\fR (UNIX and OS/2 only)
- X The \fB\-q\fR option causes \fBRemind\fR not to queue timed reminders
- X for later execution.
- X .TP
- X! \fB\-f\fR (UNIX and OS/2 only)
- X The \fB\-f\fR option causes \fBRemind\fR to remain in the foreground
- X when processing queued reminders, rather than forking off
- X a background process to handle them.
- X***************
- X*** 172,178 ****
- X would cause havoc if run with the \fB\-k\fR option.
- X .RE
- X .TP
- X! \fB\-z\fR[\fIn\fR]
- X Runs \fBRemind\fR in the daemon mode. If \fIn\fR is supplied, it
- X specifies how often (in minutes) \fBRemind\fR should wake up to
- X check if the reminder script has been changed. \fIN\fR defaults
- X--- 172,178 ----
- X would cause havoc if run with the \fB\-k\fR option.
- X .RE
- X .TP
- X! \fB\-z\fR[\fIn\fR] (UNIX and OS/2 only)
- X Runs \fBRemind\fR in the daemon mode. If \fIn\fR is supplied, it
- X specifies how often (in minutes) \fBRemind\fR should wake up to
- X check if the reminder script has been changed. \fIN\fR defaults
- X***************
- X*** 179,185 ****
- X to 5, and can range from 5 to 60. Note that the use of the
- X \fB\-z\fR option also enables the \fB\-f\fR option.
- X .TP
- X! \fB\-u\fR\fIname\fR
- X Runs \fBRemind\fR with the uid and gid of the user specified by \fIname\fR.
- X The option changes the uid and gid as described, and sets the
- X environment variables HOME, SHELL and USER to the home directory, shell,
- X--- 179,185 ----
- X to 5, and can range from 5 to 60. Note that the use of the
- X \fB\-z\fR option also enables the \fB\-f\fR option.
- X .TP
- X! \fB\-u\fR\fIname\fR (UNIX version only)
- X Runs \fBRemind\fR with the uid and gid of the user specified by \fIname\fR.
- X The option changes the uid and gid as described, and sets the
- X environment variables HOME, SHELL and USER to the home directory, shell,
- X***************
- X*** 217,225 ****
- X in the section "Calendar Mode" for more information.
- X .SH REMINDER FILES
- X .PP
- X! \fBRemind\fR uses scripts to control its operation. The commands
- X! inside a script can range from
- X! the very simple and almost immediately understandable:
- X .PP
- X .nf
- X REM 6 Jan MSG David's birthday
- X--- 217,226 ----
- X in the section "Calendar Mode" for more information.
- X .SH REMINDER FILES
- X .PP
- X! \fBRemind\fR uses scripts to control its operation. You can use any
- X! text editor capable of creating plain ASCII files to create a
- X! \fBRemind\fR script. The commands inside a script can range from the
- X! very simple and almost immediately understandable:
- X .PP
- X .nf
- X REM 6 Jan MSG David's birthday
- X***************
- X*** 707,715 ****
- X \fBRemind\fR treats timed reminders specially. If the trigger date
- X for a timed reminder is the same as the current system date, the
- X reminder is queued for later activation. When \fBRemind\fR has
- X! finished processing the reminder file,
- X! it puts itself in the background, and activates timed reminders when the
- X! system time reached the specified time.
- X .PP
- X If the trigger date is \fInot\fR the same as the system date, the reminder
- X is not queued.
- X--- 708,718 ----
- X \fBRemind\fR treats timed reminders specially. If the trigger date
- X for a timed reminder is the same as the current system date, the
- X reminder is queued for later activation. When \fBRemind\fR has
- X! finished processing the reminder file, it puts itself in the
- X! background, and activates timed reminders when the system time reached
- X! the specified time. (Unfortunately, the MS-DOS version does not have
- X! this ability -- most of this section applies only to the UNIX and OS/2
- X! versions.)
- X .PP
- X If the trigger date is \fInot\fR the same as the system date, the reminder
- X is not queued.
- X***************
- X*** 3168,3175 ****
- X Thus, a regular year can have from 353 to 355 days, and a leap year from
- X 383 to 385.
- X .PP
- X! When Kislev or Heshvan is short, it is called "chaser", or lacking. When
- X! it is long, it is called "shalem", or full.
- X .PP
- X The Jewish date changes at sunset. However, \fBRemind\fR will change the date
- X at midnight, not sunset. So in the period between sunset and midnight,
- X--- 3171,3178 ----
- X Thus, a regular year can have from 353 to 355 days, and a leap year from
- X 383 to 385.
- X .PP
- X! When Kislev or Heshvan is short, it is called \fIchaser\fR, or lacking. When
- X! it is long, it is called \fIshalem\fR, or full.
- X .PP
- X The Jewish date changes at sunset. However, \fBRemind\fR will change the date
- X at midnight, not sunset. So in the period between sunset and midnight,
- X***************
- X*** 3247,3256 ****
- X If \fIjahr\fR is 1, then the date is modified as follows:
- X .TP
- X o
- X! 30 Heshvan is converted to 1 Kislev in years when Heshvan is chaser
- X .TP
- X o
- X! 30 Kislev is converted to 1 Tevet in years when Kislev is chaser
- X .TP
- X o
- X 30 Adar A is converted to 1 Nisan in non-leapyears
- X--- 3250,3259 ----
- X If \fIjahr\fR is 1, then the date is modified as follows:
- X .TP
- X o
- X! 30 Heshvan is converted to 1 Kislev in years when Heshvan is \fIchaser\fR
- X .TP
- X o
- X! 30 Kislev is converted to 1 Tevet in years when Kislev is \fIchaser\fR
- X .TP
- X o
- X 30 Adar A is converted to 1 Nisan in non-leapyears
- X***************
- X*** 3266,3272 ****
- X .TP
- X o
- X 30 Kislev and 30 Heshvan are converted to 29 Kislev and 29 Heshvan,
- X! respectively, if the month is chaser
- X .TP
- X o
- X 30 Adar A is converted to 30 Shvat in non-leapyears
- X--- 3269,3275 ----
- X .TP
- X o
- X 30 Kislev and 30 Heshvan are converted to 29 Kislev and 29 Heshvan,
- X! respectively, if the month is \fIchaser\fR
- X .TP
- X o
- X 30 Adar A is converted to 30 Shvat in non-leapyears
- X***************
- X*** 3281,3288 ****
- X .PP
- X The \fIaflag\fR parameter modifies the behaviour of the function for
- X dates in Adar during leap years. The \fIaflag\fR is \fIonly\fR used
- X! if \fIyrstart\fR is a \fBDATE\fR type (or is omitted, defaulting to
- X! \fBtoday()\fR.)
- X .PP
- X The \fIaflag\fR only affects date calculations if \fIhebmon\fR is
- X specified as "Adar". In leap years, the following algorithm is followed:
- X--- 3284,3290 ----
- X .PP
- X The \fIaflag\fR parameter modifies the behaviour of the function for
- X dates in Adar during leap years. The \fIaflag\fR is \fIonly\fR used
- X! if \fIyrstart\fR is a \fBDATE\fR type.
- X .PP
- X The \fIaflag\fR only affects date calculations if \fIhebmon\fR is
- X specified as "Adar". In leap years, the following algorithm is followed:
- X***************
- X*** 3306,3312 ****
- X .PP
- X A jahrzeit is a yearly commemoration of someone's death. It normally takes
- X place on the anniversary of the death, but may be delayed if burial is
- X! delayed - consult a rabbi.
- X .PP
- X In addition, because some months change length, it is not obvious which day
- X the anniversary of a death is. The following rules are used:
- X--- 3308,3314 ----
- X .PP
- X A jahrzeit is a yearly commemoration of someone's death. It normally takes
- X place on the anniversary of the death, but may be delayed if burial is
- X! delayed - consult a rabbi for more information.
- X .PP
- X In addition, because some months change length, it is not obvious which day
- X the anniversary of a death is. The following rules are used:
- X***************
- X*** 3313,3327 ****
- X .TP
- X o
- X If the death occurred on 30 Heshvan, and Heshvan in the year after the
- X! death is chaser, then the jahrzeit is observed on 29 Heshvan in years
- X! when Heshvan is chaser. Otherwise, the yahrzeit is observed on 1
- X! Kislev when Heshvan is chaser.
- X .TP
- X o
- X If the death occurred on 30 Kislev, and Kislev in the year after the
- X! death is chaser, then the jahrzeit is observed on 29 Kislev in years
- X! when Kislev is chaser. Otherwise, the yahrzeit is observed on 1
- X! Tevet when Kislev is chaser.
- X .TP
- X o
- X If the death occurred on 1-29 Adar A, it is observed on 1-29 Adar in
- X--- 3315,3329 ----
- X .TP
- X o
- X If the death occurred on 30 Heshvan, and Heshvan in the year after the
- X! death is \fIchaser\fR, then the jahrzeit is observed on 29 Heshvan in years
- X! when Heshvan is \fIchaser\fR. Otherwise, the yahrzeit is observed on 1
- X! Kislev when Heshvan is \fIchaser\fR.
- X .TP
- X o
- X If the death occurred on 30 Kislev, and Kislev in the year after the
- X! death is \fIchaser\fR, then the jahrzeit is observed on 29 Kislev in years
- X! when Kislev is \fIchaser\fR. Otherwise, the yahrzeit is observed on 1
- X! Tevet when Kislev is \fIchaser\fR.
- X .TP
- X o
- X If the death occurred on 1-29 Adar A, it is observed on 1-29 Adar in
- X***************
- X*** 3513,3522 ****
- X .SH AUTHOR
- X .PP
- X David F. Skoll wrote \fBRemind\fR. The moon code was copied largely
- X! unmodified from "moontool" by John Walker. The Hebrew calendar
- X! support was taken from "hdate" by Amos Shapir. OS/2 support was
- X! done by Darrel Hankerson, Russ Herman, and Norman Walsh. The
- X! supported foreign languages and their translators are:
- X .PP
- X \fBGerman\fR --
- X Wolfgang Thronicke
- X--- 3515,3528 ----
- X .SH AUTHOR
- X .PP
- X David F. Skoll wrote \fBRemind\fR. The moon code was copied largely
- X! unmodified from "moontool" by John Walker. The sunrise and sunset
- X! functions use ideas from programs by Michael Schwartz and Marc
- X! T. Kaufman. The Hebrew calendar support was taken from "hdate" by
- X! Amos Shapir. OS/2 support was done by Darrel Hankerson, Russ Herman,
- X! and Norman Walsh. The supported foreign languages and their
- X! translators are listed below. Languages marked "complete" support
- X! error messages and usage instructions in that language; all others
- X! only support the substitution filter mechanism and month/day names.
- X .PP
- X \fBGerman\fR --
- X Wolfgang Thronicke
- X***************
- X*** 3525,3537 ****
- X Willem Kasdorp and Erik-Jan Vens
- X .PP
- X \fBFinnish\fR --
- X! Mikko Silvonen
- X .PP
- X \fBFrench\fR --
- X! Laurent Duperval
- X .PP
- X \fBNorwegian\fR --
- X Trygve Randen
- X .SH BUGS
- X .PP
- X There's no good reason why read-only system variables are not
- X--- 3531,3549 ----
- X Willem Kasdorp and Erik-Jan Vens
- X .PP
- X \fBFinnish\fR --
- X! Mikko Silvonen (complete)
- X .PP
- X \fBFrench\fR --
- X! Laurent Duperval (complete)
- X .PP
- X \fBNorwegian\fR --
- X Trygve Randen
- X+ .PP
- X+ \fBDanish\fR --
- X+ Mogens Lynnerup
- X+ .PP
- X+ \fBPolish\fR --
- X+ Jerzy Sobczyk (complete)
- X .SH BUGS
- X .PP
- X There's no good reason why read-only system variables are not
- X***************
- X*** 3538,3546 ****
- X implemented as functions, or why functions like \fBversion()\fR, etc.
- X are not implemented as read-only system variables.
- X .PP
- X! Hebrew dates change at midnight, not sunset.
- X .PP
- X! The UTC functions are not reliable under MS-DOS.
- X .PP
- X The MS-DOS version of \fBRemind\fR does not support queuing or timed
- X activation of reminders.
- X--- 3550,3558 ----
- X implemented as functions, or why functions like \fBversion()\fR, etc.
- X are not implemented as read-only system variables.
- X .PP
- X! Hebrew dates in \fBRemind\fR change at midnight instead of sunset.
- X .PP
- X! The UTC functions may not be reliable under MS-DOS.
- X .PP
- X The MS-DOS version of \fBRemind\fR does not support queuing or timed
- X activation of reminders.
- X***************
- X*** 3547,3552 ****
- X--- 3559,3576 ----
- X .PP
- X \fBRemind\fR has some built-in limits on total line length,
- X substitution buffer length, number of global \fBOMIT\fRs, etc.
- X+ .PP
- X+ .SH BIBLIOGRAPHY
- X+ .PP
- X+ Nachum Dershowitz and Edward M. Reingold, "Calendrical Calculations",
- X+ \fISoftware\-Practice and Experience\fR, Vol. 20(9), Sept. 1990,
- X+ pp 899-928.
- X+ .PP
- X+ L. E. Doggett, \fIAlmanac for computers for the year 1978\fR, Nautical
- X+ Almanac Office, USNO.
- X+ .PP
- X+ Richard Siegel and Michael and Sharon Strassfeld, \fIThe First Jewish
- X+ Catalog\fR, Jewish Publication Society of America.
- X .PP
- X .SH SEE ALSO
- X .PP
- X*** ../prev/test.cmp Thu Oct 21 12:39:24 1993
- X--- ./test.cmp Tue Nov 23 11:51:03 1993
- X***************
- X*** 631,637 ****
- X "a05" + "6" => "a056"
- X value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
- X set a058 version()
- X! version() => "03.00.11"
- X set a059 wkday(today())
- X today() => 1991/02/16
- X wkday(1991/02/16) => "Saturday"
- X--- 631,637 ----
- X "a05" + "6" => "a056"
- X value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
- X set a058 version()
- X! version() => "03.00.12"
- X set a059 wkday(today())
- X today() => 1991/02/16
- X wkday(1991/02/16) => "Saturday"
- X***************
- X*** 772,778 ****
- X a048 "foo"
- X a067 "INT"
- X a039 "February"
- X! a058 "03.00.11"
- X a077 "1992 92
- X "
- X a049 21
- X--- 772,778 ----
- X a048 "foo"
- X a067 "INT"
- X a039 "February"
- X! a058 "03.00.12"
- X a077 "1992 92
- X "
- X a049 21
- X*** ../prev/test1.cmp Thu Oct 21 12:42:22 1993
- X--- ./test1.cmp Tue Nov 23 11:50:57 1993
- X***************
- X*** 631,637 ****
- X "a05" + "6" => "a056"
- X value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
- X set a058 version()
- X! version() => "03.00.11"
- X set a059 wkday(today())
- X today() => 1991/02/16
- X wkday(1991/02/16) => "Saturday"
- X--- 631,637 ----
- X "a05" + "6" => "a056"
- X value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
- X set a058 version()
- X! version() => "03.00.12"
- X set a059 wkday(today())
- X today() => 1991/02/16
- X wkday(1991/02/16) => "Saturday"
- X***************
- X*** 772,778 ****
- X a048 "foo"
- X a067 "INT"
- X a039 "February"
- X! a058 "03.00.11"
- X a077 "1992 92
- X "
- X a049 21
- X--- 772,778 ----
- X a048 "foo"
- X a067 "INT"
- X a039 "February"
- X! a058 "03.00.12"
- X a077 "1992 92
- X "
- X a049 21
- X*** ../prev/test2.cmp Thu Oct 21 12:42:18 1993
- X--- ./test2.cmp Tue Nov 23 11:50:50 1993
- X***************
- X*** 631,637 ****
- X "a05" + "6" => "a056"
- X value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
- X set a058 version()
- X! version() => "03.00.11"
- X set a059 wkday(today())
- X today() => 1991/02/16
- X wkday(1991/02/16) => "Saturday"
- X--- 631,637 ----
- X "a05" + "6" => "a056"
- X value("a056") => "SDFJHSDF KSJDFH KJSDFH KSJDFH"
- X set a058 version()
- X! version() => "03.00.12"
- X set a059 wkday(today())
- X today() => 1991/02/16
- X wkday(1991/02/16) => "Saturday"
- X***************
- X*** 772,778 ****
- X a048 "foo"
- X a067 "INT"
- X a039 "February"
- X! a058 "03.00.11"
- X a077 "1992 92
- X "
- X a049 21
- X--- 772,778 ----
- X a048 "foo"
- X a067 "INT"
- X a039 "February"
- X! a058 "03.00.12"
- X a077 "1992 92
- X "
- X a049 21
- SHAR_EOF
- $TOUCH -am 0131163394 patch.12 &&
- chmod 0600 patch.12 ||
- echo "restore of patch.12 failed"
- set `wc -c patch.12`;Wc_c=$1
- if test "$Wc_c" != "29831"; then
- echo original size 29831, current size $Wc_c
- fi
- # ============= danish.h ==============
- echo "x - extracting danish.h (Text)"
- sed 's/^X//' << 'SHAR_EOF' > danish.h &&
- X/***************************************************************/
- X/* */
- X/* DANISH.H */
- X/* */
- X/* Support for the Danish language. */
- X/* */
- X/* This file is part of REMIND. */
- X/* */
- X/* REMIND is Copyright (C) 1992, 1993 by David F. Skoll. */
- X/* This file is Copyright (C) 1993 by Mogens Lynnerup. */
- X/* */
- X/***************************************************************/
- X
- X/* The very first define in a language support file must be L_LANGNAME: */
- X#define L_LANGNAME "Danish"
- X
- X/* Day names */
- X#ifdef ISOLATIN1
- X# define L_SUNDAY "S\370ndag"
- X#else
- X# define L_SUNDAY "Soendag"
- X#endif
- X#define L_MONDAY "Mandag"
- X#define L_TUESDAY "Tirsdag"
- X#define L_WEDNESDAY "Onsdag"
- X#define L_THURSDAY "Torsdag"
- X#define L_FRIDAY "Fredag"
- X#ifdef ISOLATIN1
- X# define L_SATURDAY "L\370rdag"
- X#else
- X# define L_SATURDAY "Loerdag"
- X#endif
- X
- X/* Day initials - first letter only */
- X#define L_DAYINIT "SMTOTFL"
- X
- X/* Month names */
- X#define L_JAN "Januar"
- X#define L_FEB "Februar"
- X#define L_MAR "Mars"
- X#define L_APR "April"
- X#define L_MAY "Maj"
- X#define L_JUN "Juni"
- X#define L_JUL "Juli"
- X#define L_AUG "August"
- X#define L_SEP "September"
- X#define L_OCT "Oktober"
- X#define L_NOV "November"
- X#define L_DEC "December"
- X
- X/* Today and tomorrow */
- X#define L_TODAY "i dag"
- X#define L_TOMORROW "i morgen"
- X
- X/* The default banner */
- X#ifdef ISOLATIN1
- X# define L_BANNER "P\345mindelse for %w, %d. %m, %y%o:"
- X#else
- X# define L_BANNER "Paamindelse for %w, %d. %m, %y%o:"
- X#endif
- X
- X/* "am" and "pm" */
- X#define L_AM "am"
- X#define L_PM "pm"
- X
- X/*** The following are only used in dosubst.c ***/
- X#ifdef L_IN_DOSUBST
- X
- X/* Ago and from now */
- X#define L_AGO "siden"
- X#define L_FROMNOW "fra nu"
- X
- X/* "in %d days' time" */
- X#define L_INXDAYS "om %d dage"
- X
- X/* "on" as in "on date..." */
- X#ifdef ISOLATIN1
- X# define L_ON "p\345"
- X#else
- X# define L_ON "paa"
- X#endif
- X
- X/* Pluralizing - this is a problem for many languages and may require
- X a more drastic fix */
- X#define L_PLURAL "e"
- X
- X/* Minutes, hours, at, etc */
- X#define L_NOW "nu"
- X#define L_AT "kl."
- X#define L_MINUTE "minut"
- X#define L_HOUR "time"
- X#define L_IS "er"
- X#define L_WAS "var"
- X#define L_AND "og"
- X/* What to add to make "hour" plural */
- X#define L_HPLU "r"
- X/* What to add to make "minute" plural */
- X#define L_MPLU "ter"
- X
- X/* Define any overrides here, such as L_ORDINAL_OVERRIDE, L_A_OVER, etc.
- X See the file dosubst.c for more info. */
- X
- X#define L_AMPM_OVERRIDE(ampm, hour) ampm = (hour < 12) ? (hour<5) ? " om natten" : " om formiddagen" : (hour > 17) ? " om aftenen" : " om eftermiddagen";
- X#define L_ORDINAL_OVERRIDE plu = ".";
- X#define L_A_OVER sprintf(s, "%s %s, den %d. %s %d", L_ON, DayName[jul%7], d, MonthName[m], y);
- X#define L_E_OVER sprintf(s, "den %02d%c%02d%c%04d", d, DATESEP, m+1, DATESEP, y);
- X#define L_F_OVER sprintf(s, "den %02d%c%02d%c%04d", m+1, DATESEP, d, DATESEP, y);
- X#define L_G_OVER sprintf(s, "%s %s, den %d. %s", L_ON, DayName[jul%7], d, MonthName[m]);
- X#define L_H_OVER sprintf(s, "den %02d%c%02d", d, DATESEP, m+1);
- X#define L_I_OVER sprintf(s, "den %02d%c%02d", m+1, DATESEP, d);
- X#define L_U_OVER L_A_OVER
- X#define L_V_OVER L_G_OVER
- X
- X#endif /* L_IN_DOSUBST */
- SHAR_EOF
- $TOUCH -am 1201104593 danish.h &&
- chmod 0600 danish.h ||
- echo "restore of danish.h failed"
- set `wc -c danish.h`;Wc_c=$1
- if test "$Wc_c" != "3612"; then
- echo original size 3612, current size $Wc_c
- fi
- # ============= polish.h ==============
- echo "x - extracting polish.h (Text)"
- sed 's/^X//' << 'SHAR_EOF' > polish.h &&
- X/***************************************************************/
- X/* */
- X/* POLISH.H */
- X/* */
- X/* Support for the Polish language. */
- X/* */
- X/* This file was submitted by Jerzy Sobczyk. I don't */
- X/* guarantee that there are no mistakes - I don't speak */
- X/* Polish. */
- X/* */
- X/* This file is part of REMIND. */
- X/* Copyright (C) 1992, 1993, 1994 by David F. Skoll. */
- X/* */
- X/***************************************************************/
- X
- X/* The very first define in a language support file must be L_LANGNAME: */
- X#define L_LANGNAME "Polish"
- X
- X/* Day names */
- X#ifdef ISOLATIN1
- X# define L_SUNDAY "Niedziela"
- X# define L_MONDAY "Poniedzia\263ek"
- X# define L_TUESDAY "Wtorek"
- X# define L_WEDNESDAY "\246roda"
- X# define L_THURSDAY "Czwartek"
- X# define L_FRIDAY "Pi\261tek"
- X# define L_SATURDAY "Sobota"
- X#else
- X# define L_SUNDAY "Niedziela"
- X# define L_MONDAY "Poniedzialek"
- X# define L_TUESDAY "Wtorek"
- X# define L_WEDNESDAY "Sroda"
- X# define L_THURSDAY "Czwartek"
- X# define L_FRIDAY "Piatek"
- X# define L_SATURDAY "Sobota"
- X#endif
- X
- X/* Day initials - first letter only */
- X#ifdef ISOLATIN1
- X#define L_DAYINIT "NPW\246CPS"
- X#else
- X#define L_DAYINIT "NPWSCPS"
- X#endif
- X
- X/* Month names */
- X#ifdef ISOLATIN1
- X# define L_JAN "Stycze\361"
- X# define L_FEB "Luty"
- X# define L_MAR "Marzec"
- X# define L_APR "Kwiecie\361"
- X# define L_MAY "Maj"
- X# define L_JUN "Czerwiec"
- X# define L_JUL "Lipiec"
- X# define L_AUG "Sierpie\361"
- X# define L_SEP "Wrzesie\361"
- X# define L_OCT "Pa\274dziernik"
- X# define L_NOV "Listopad"
- X# define L_DEC "Grudzie\361"
- X#else
- X# define L_JAN "Styczen"
- X# define L_FEB "Luty"
- X# define L_MAR "Marzec"
- X# define L_APR "Kwiecien"
- X# define L_MAY "Maj"
- X# define L_JUN "Czerwiec"
- X# define L_JUL "Lipiec"
- X# define L_AUG "Sierpien"
- X# define L_SEP "Wrzesien"
- X# define L_OCT "Pazdziernik"
- X# define L_NOV "Listopad"
- X# define L_DEC "Grudzien"
- X#endif
- X
- X/* Today and tomorrow */
- X#define L_TODAY "dzisiaj"
- X#define L_TOMORROW "jutro"
- X
- X/* The default banner */
- X#define L_BANNER "Terminarz na %w, %d. %m %y%o:"
- X
- X/* "am" and "pm" */
- X#define L_AM "am"
- X#define L_PM "pm"
- X
- X/*** The following are only used in dosubst.c ***/
- X#ifdef L_IN_DOSUBST
- X
- X/* Ago and from now */
- X#define L_AGO "temu"
- X#define L_FROMNOW "od teraz"
- X
- X/* "in %d days' time" */
- X#define L_INXDAYS "za %d dni"
- X
- X/* "on" as in "on date..." */
- X#define L_ON "-"
- X
- X/* Pluralizing - this is a problem for many languages and may require
- X a more drastic fix */
- X#define L_PLURAL ""
- X
- X/* Minutes, hours, at, etc */
- X#define L_NOW "teraz"
- X#define L_AT "o"
- X#define L_MINUTE "minut"
- X#define L_HOUR "godzin"
- X#ifdef ISOLATIN1
- X# define L_IS "b\352dzie"
- X# define L_WAS "by\263o"
- X#else
- X# define L_IS "bedzie"
- X# define L_WAS "bylo"
- X#endif
- X#define L_AND "i"
- X/* What to add to make "hour" or "minute" plural */
- X#ifdef ISOLATIN1
- X#define L_NPLU( N ) ((N == 1) ? "\352" : ((N==12) || (N==13) || (N==14)) ? "" : \
- X ((N%10==2) || (N%10==3) || (N%10==4)) ? "y" : "" )
- X#else
- X#define L_NPLU( N ) ((N == 1) ? "e" : ((N==12) || (N==13) || (N==14)) ? "" : \
- X ((N%10==2) || (N%10==3) || (N%10==4)) ? "y" : "" )
- X#endif
- X/* What to add to make "hour" plural */
- X#define L_HPLU L_NPLU( hdiff )
- X/* What to add to make "minute" plural */
- X#define L_MPLU L_NPLU( mdiff )
- X
- X/* Define any overrides here, such as L_ORDINAL_OVERRIDE, L_A_OVER, etc.
- X See the file dosubst.c for more info. */
- X#ifdef ISOLATIN1
- X#define L_AMPM_OVERRIDE(ampm, hour) \
- X ampm = (hour<12) ? \
- X (hour<5) ? " w nocy" \
- X : (hour<10) ? " rano" \
- X : " przed po\263udniem" \
- X : (hour<18) ? " po po\263udniu" \
- X : (hour<22) ? " wieczorem" \
- X : " w nocy";
- X#else
- X#define L_AMPM_OVERRIDE(ampm, hour) \
- X ampm = (hour<12) ? \
- X (hour<5) ? " w nocy" \
- X : (hour<10) ? " rano" \
- X : " przed poludniem" \
- X : (hour<18) ? " po poludniu" \
- X : (hour<22) ? " wieczorem" \
- X : " w nocy";
- X#endif
- X#define L_ORDINAL_OVERRIDE plu = "";
- X#define L_A_OVER sprintf(s, "%s %s, %d. %s %d", L_ON, DayName[jul%7], d, MonthName[m], y);
- X#define L_G_OVER sprintf(s, "%s %s, %d. %s", L_ON, DayName[jul%7], d, MonthName[m]);
- X#define L_U_OVER L_A_OVER
- X#define L_V_OVER L_G_OVER
- X
- X#endif /* L_IN_DOSUBST */
- X
- X#define L_0_OVER sprintf(s, L_HPLU);
- X#define L_9_OVER sprintf(s, L_MPLU);
- X#define L_1_OVER \
- X if (tdiff == 0) \
- X sprintf(s, L_NOW); \
- X else if (tdiff > 0) \
- X { \
- X if (hdiff == 0) \
- X sprintf(s, "za %d %s%s", mdiff, L_MINUTE, L_MPLU); \
- X else if (mdiff == 0) \
- X sprintf(s, "za %d %s%s", hdiff, L_HOUR, L_HPLU); \
- X else \
- X sprintf(s, "za %d %s%s %s %d %s%s", hdiff, L_HOUR, L_HPLU, \
- X L_AND, mdiff, L_MINUTE, L_MPLU); \
- X } \
- X else \
- X { \
- X if (hdiff == 0) \
- X sprintf(s, "%d %s%s temu", mdiff, L_MINUTE, L_MPLU); \
- X else if (mdiff == 0) \
- X sprintf(s, "%d %s%s temu", hdiff, L_HOUR, L_HPLU); \
- X else \
- X sprintf(s, "%d %s%s %s %d %s%s temu", hdiff, L_HOUR, L_HPLU, \
- X L_AND, mdiff, L_MINUTE, L_MPLU); \
- X }
- X
- X/* The next ones are used only when MK_GLOBALS is set */
- X#ifdef MK_GLOBALS
- X#define L_ERR_OVERRIDE 1
- XEXTERN char *ErrMsg[] =
- X{
- X#ifdef ISOLATIN1
- X "OK",
- X "Brakuj\261cy ']'",
- X "Brakuj\261cy nawias",
- X "Zbyt skomplikowane wyra\277enie - za du\277o operator\363w",
- X "Zbyt skomplikowane wyra\277enie - za du\277o argument\363w",
- X "Brakuj\261cy ')'",
- X "Nie zdefiniowana funkcja",
- X "Nielegalny znak",
- X "Spodziewany operator binarny",
- X "Brak pami\352ci",
- X "Niepoprawny numer",
- X "Pusty stos operator\363w - b\263\261d wewn\352trzny",
- X "Pusty stos zmiennych - b\263\261d wewn\352trzny",
- X "Niemo\277liwa konwersja",
- X "B\263\261d typu",
- X "Nadmiar daty",
- X "B\263\261d stosu - b\263\261d wewn\352trzny",
- X "Dzielenie przez zero",
- X "Niezdefiniowana zmienna",
- X "Niespodziewany koniec linii",
- X "Niespodziewany koniec pliku",
- X "B\263\261d wejscia/wyjscia",
- X "Za d\263uga linia",
- X "B\263\261d wewn\352trzny",
- X "Z\263a specyfikacja daty",
- X "Za ma\263o argument\363w",
- X "Za du\277o argument\363w",
- X "Nieprawid\263owy czas",
- X "Liczba za du\277a",
- X "Liczba za ma\263a",
- X "Nie mog\352 otworzy\346 pliku",
- X "Zbyt zagnie\277d\277one INCLUDE",
- X "B\263\261d sk\263adniowy",
- X "Nie mog\352 obliczy\346 przypomnienia",
- X "Zbyt zagnie\277d\277one IF",
- X "ELSE bez IF do pary",
- X "ENDIF bez IF do pary",
- X "Nie mog\352 omin\261\346 (OMIT) wszystkich dni",
- X "Niespodziewany wyraz w lini",
- X "POP-OMIT-CONTEXT bez PUSH-OMIT-CONTEXT",
- X "Komenda RUN zablokowana",
- X "B\263\261d dziedziny",
- X "Niepoprawny identyfikator",
- X "Wykryto rekursywne wywo\263anie funkcji",
- X "",
- X "Nie mog\352 zmieni\346 zmiennej systemowej",
- X "Funkcja biblioteki C nie mo\277e reprezentowac daty/czasu",
- X "Pr\363ba redefinicji funkcji wbudowanej",
- X "Nie wolno zagnie\277d\277a\346 definicji funkcji w wyra\277eniu",
- X "Aby u\277yc powt\363rzenia trzeba w pe\263ni wyspecyfikowa\346 dat\352",
- X "Rok podany dw\363krotnie",
- X "Miesi\261c podany dw\363krotnie",
- X "Dzie\361 podany dw\363krotnie",
- X "Nieznane s\263owo",
- X "W komendzie OMIT trzeba poda\346 miesi\261c i dzie\361",
- X "Za du\277o cz\352\266ciowych komend OMIT",
- X "Za du\277o pe\263nych komend OMIT",
- X "Ostrze\277enie: PUSH-OMIT-CONTEXT bez POP-OMIT-CONTEXT",
- X "B\263\261d odczytu pliku",
- X "Oczekiwany koniec linii",
- X "B\263\352dna data hebrajska",
- X "IIF wymaga nieparzystej liczby argument\363w",
- X "Ostrze\277enie: Brakujacy ENDIF",
- X "Oczekiwany przecinek",
- X "Dzie\361 tygodnia podany dw\363krotnie",
- X "Dozwolone tylko jedno z: BEFORE, AFTER i SKIP",
- X "Nie mo\277na zagnie\277d\277a\346 MSG, MSF, RUN, itp. w wyra\277eniu",
- X "Warto\266\346 powtorzenia podana dw\363krotnie",
- X "Warto\266\346 r\363\277nicy podana dw\363krotnie",
- X "Warto\266\346 cofni\352cia podana dw\363krotnie",
- X "S\263owo ONCE u\277yte dw\363krotnie.",
- X "Po AT oczekiwany jest czas",
- X "S\263owo UNTIL u\277yte dw\363krotnie",
- X "Niekompletna specyfikacja daty",
- X "S\263owo SCANFROM u\277yte dw\363krotnie",
- X "Zmienna",
- SHAR_EOF
- echo "End of Remind-3.0/Patch-12/part part 1"
- echo "File polish.h is continued in part 2"
- echo "2" > shar3_seq_.tmp
- exit 0
-
-
-
- exit 0 # Just in case...
-