From 878ab1a8bc7779e41a63a8b9c174b76ae93f75a1 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Tue, 15 Mar 2022 14:40:46 -0400 Subject: [PATCH] Fix a bunch of spelling mistakes found by Jens Schleusener --- build.tk | 2 +- contrib/ical2rem.pl | 4 ++-- contrib/rem2ics-0.93/rem2ics | 26 +++++++++++++------------- examples/defs.rem | 2 +- src/funcs.c | 4 ++-- src/globals.c | 2 +- src/main.c | 4 ++-- src/queue.c | 2 +- tests/tstlang.rem | 6 +++--- www/README | 2 +- 10 files changed, 27 insertions(+), 27 deletions(-) diff --git a/build.tk b/build.tk index d32022f6..41cfc397 100644 --- a/build.tk +++ b/build.tk @@ -355,7 +355,7 @@ proc RunCommand { cmd } { # %RETURNS: # Nothing # %DESCRIPTION: -# Reads characters from command pipelin and appends them to .msg. +# Reads characters from command pipeline and appends them to .msg. #*********************************************************************** proc CommandReadable { f } { global CmdDone diff --git a/contrib/ical2rem.pl b/contrib/ical2rem.pl index aab07d5f..a08be7f6 100755 --- a/contrib/ical2rem.pl +++ b/contrib/ical2rem.pl @@ -32,7 +32,7 @@ # version 0.5 2007-03-21 # - Add more help options # - --project-lead-time option -# - Supress printing of heading if there are no todos to print +# - Suppress printing of heading if there are no todos to print # version 0.4 # - Version 0.4 changes all written or inspired by, and thanks to Mark Stosberg # - Change to GetOptions @@ -84,7 +84,7 @@ How may days in advance to start getting reminders about the events. Defaults to ical2rem.pl --no-todos -If you don't care about the ToDos the calendar, this will surpress +If you don't care about the ToDos the calendar, this will suppress printing of the ToDo heading, as well as skipping ToDo processing. =head2 --heading diff --git a/contrib/rem2ics-0.93/rem2ics b/contrib/rem2ics-0.93/rem2ics index 7d15d246..a983d790 100755 --- a/contrib/rem2ics-0.93/rem2ics +++ b/contrib/rem2ics-0.93/rem2ics @@ -141,7 +141,7 @@ appear with exactly the text and exactly the same duration (including one VEVENT object, that will have a RFC2445 C property. B is not yet smart enough to derive an C based -recurrance. If you really want that feature, either implement it and +recurrence. If you really want that feature, either implement it and send in a patch, or contact the author and convince him to do it. =head2 Other iCalendar Properties @@ -164,7 +164,7 @@ runs. =head2 Other iCalendar Perl objects -Why does't B use any of the iCalendar Perl stuff in CPAN? +Why doesn't B use any of the iCalendar Perl stuff in CPAN? Because I don't trust them, and they are too big for this app. One links to a binary library. Another hasn't been maintained since 1991, and is full of notes as to how buggy and incomplete it is. And so @@ -218,7 +218,7 @@ Bug fix, error message for non-recurring events Bug fix, rem2ics 0.91 chokes on timed reminders with duration using `remind -s` as it functions in remind-03.01.03. - Remind 3.01 changed how the -s data is formated for events that have a duration + Remind 3.01 changed how the -s data is formatted for events that have a duration Patch by Paul Hinze Epaul dot t dot hinze at gmail dot comE and Michael Schultz Emjschultz at gmail dot comE @@ -376,7 +376,7 @@ foreach $v (@events) { my(%grovel); -# if the user doesnt want recurrance detection +# if the user doesn't want recurrence detection unless ($options{norecurr}) { # then dont put events in the grovel hash @@ -393,7 +393,7 @@ unless ($options{norecurr}) { $v = ${$grovel{$k}}[0]; $v->{recurlist} = \@{$grovel{$k}}; foreach my $v0 (@{$grovel{$k}}) { - $v0->{is_recurrance} = $v; + $v0->{is_recurrence} = $v; } } } @@ -409,12 +409,12 @@ unless ($options{norecurr}) { # might have a problem if a recurring event has two instances both on # the first day. -# Every event that is recurring has a "is_recurrance" property. +# Every event that is recurring has a "is_recurrence" property. # Additionally, (hopefully) the first/earliest event in a set of -# recurrances has a "recurlist" property. The "recurlist" is a +# recurrences has a "recurlist" property. The "recurlist" is a # reference to a list of references to each of the events. The first # one on that list will be the same event that has the "recurlist" -# property. The "is_recurrance" property is a reference back to the +# property. The "is_recurrence" property is a reference back to the # event that has the "recurlist" property. foreach my $k (keys %grovel) { @@ -466,8 +466,8 @@ foreach my $k (keys %grovel) { } foreach $v (@events) { - # for recurrant events, skip those that arnt the "head" - next if ($v->{is_recurrance} and (not $v->{recurlist})); + # for recurrent events, skip those that arnt the "head" + next if ($v->{is_recurrence} and (not $v->{recurlist})); if (${$v->{sf}}[4] eq "*") { # no time was given $v->{i_dtstart} = sprintf("DTSTART:%s", $v->{dts}); @@ -485,7 +485,7 @@ foreach $v (@events) { } if (${$v->{sf}}[3] ne "*") { # a duration was given - # It's convienient that RFC2445 defines DURATION, thus we + # It's convenient that RFC2445 defines DURATION, thus we # don't need to calculate DTEND, with awkward figuring out # crossing hours, days, months, year, etc. Instead we # will let the iCalendar consuming application worry about it. @@ -501,8 +501,8 @@ print "BEGIN:VCALENDAR\015\012" # output each vevent foreach $v (@events) { - # for recurrant events, only output the "head", skip the others - next if ($v->{is_recurrance} and (not $v->{recurlist})); + # for recurrent events, only output the "head", skip the others + next if ($v->{is_recurrence} and (not $v->{recurlist})); print "BEGIN:VEVENT\015\012"; my $tag = ${$v->{sf}}[2]; diff --git a/examples/defs.rem b/examples/defs.rem index e0ac7fb3..6d224dba 100644 --- a/examples/defs.rem +++ b/examples/defs.rem @@ -36,7 +36,7 @@ ENDIF ########################################################### SET Quote CHAR(34) -# Handy constants/function for specifing week of month... +# Handy constants/function for specifying week of month... SET Week_1 1 SET Week_2 8 SET Week_3 15 diff --git a/src/funcs.c b/src/funcs.c index 2406062a..bac93126 100644 --- a/src/funcs.c +++ b/src/funcs.c @@ -2237,10 +2237,10 @@ static int SunStuff(int rise, double cosz, int jul) /* Sometimes, we get roundoff error. Check for "reasonableness" of answer. */ if (rise) { - /* Sunrise so close to midnight it wrapped around -- permament light */ + /* Sunrise so close to midnight it wrapped around -- permanent light */ if (hours >= 23) return NO_TIME; } else { - /* Sunset so close to midnight it wrapped around -- permament light */ + /* Sunset so close to midnight it wrapped around -- permanent light */ if (hours <= 1) return -NO_TIME; } return hours*60 + mins; diff --git a/src/globals.c b/src/globals.c index 4b3243ca..dd51b811 100644 --- a/src/globals.c +++ b/src/globals.c @@ -14,7 +14,7 @@ #include "config.h" -#include /* For defintion of FILE - sigh! */ +#include /* For definition of FILE - sigh! */ #include "types.h" #include "custom.h" #define MK_GLOBALS 1 diff --git a/src/main.c b/src/main.c index c6ee3428..3e8574ee 100644 --- a/src/main.c +++ b/src/main.c @@ -1135,8 +1135,8 @@ int DoErrMsg(ParsePtr p) /* The array FoldArray[2][7] contains sample years which begin on the specified weekday. For example, FoldArray[0][2] is a - non-leapyear beginning on Wednesday, and FoldArray[1][5] is a - leapyear beginning on Saturday. Used to fold back dates which + non-leap year beginning on Wednesday, and FoldArray[1][5] is a + leap year beginning on Saturday. Used to fold back dates which are too high for the standard Unix representation. NOTE: This implies that you cannot set BASE > 2001!!!!! */ static int FoldArray[2][7] = { diff --git a/src/queue.c b/src/queue.c index 6d47fd4f..36ba9b1a 100644 --- a/src/queue.c +++ b/src/queue.c @@ -230,7 +230,7 @@ void HandleQueuedReminders(void) /* Do NOT trigger the reminder if tt.nexttime is more than a minute in the past. This can happen if the clock is changed or a laptop awakes from hibernation. - However, DO triger if tt.nexttime == tt.ttime so all + However, DO trigger if tt.nexttime == tt.ttime so all queued reminders are triggered at least once. */ if ((SystemTime(1) - (q->tt.nexttime * 60) <= 60) || (q->tt.nexttime == q->tt.ttime)) { diff --git a/tests/tstlang.rem b/tests/tstlang.rem index 83856b10..bbf301c4 100644 --- a/tests/tstlang.rem +++ b/tests/tstlang.rem @@ -129,7 +129,7 @@ set e a + " at " + tu [a] msg [show("y")] [a] msg [show("z")] -msg %_Time substititions for a time in the future:% +msg %_Time substitutions for a time in the future:% [d] msg [show("1")] [d] msg [show("2")] [d] msg [show("3")] @@ -143,7 +143,7 @@ msg %_Time substititions for a time in the future:% [d] msg [show("!")] [d] msg [show("@")] [d] msg [show("#")] -msg %_Time substititions for a time in the past:% +msg %_Time substitutions for a time in the past:% [e] msg [show("1")] [e] msg [show("2")] [e] msg [show("3")] @@ -158,7 +158,7 @@ msg %_Time substititions for a time in the past:% [e] msg [show("@")] [e] msg [show("#")] -msg %_Time substititions for the current time:% +msg %_Time substitutions for the current time:% set e a + " at " + now() [e] msg [show("1")] [e] msg [show("2")] diff --git a/www/README b/www/README index 9b87a2c1..d2015d71 100644 --- a/www/README +++ b/www/README @@ -10,7 +10,7 @@ it should work on any UNIX web server. To install it, you need the Remind package, available via ftp from https://dianne.skoll.ca/projects/remind/ You should install Remind, -setting the lattitude, longitude, location and time zone as appropriate +setting the latitude, longitude, location and time zone as appropriate for your machine. Once you have Remind installed, follow these steps to set up your WWW