Fix a few typos in docs/comments/strings
authorChris Bracken <chris@bracken.jp>
Mon, 24 Jun 2019 00:05:01 +0000 (17:05 -0700)
committerChris Bracken <chris@bracken.jp>
Mon, 24 Jun 2019 00:11:19 +0000 (17:11 -0700)
Fixes a few minor typos revealed by running a spell-checker [1] over the
repo. It also identified 'auxilary' -> 'auxiliary', but it's
consistently spelled throughout the code and this patch is limited to
changes to docs, comments, and string literals.

[1] https://github.com/client9/misspell

15 files changed:
BUGS
ChangeLog
HOW_TO_PLAY
doc/dfrotz.6
src/common/err.c
src/common/math.c
src/common/screen.c
src/curses/ux_blorb.c
src/curses/ux_init.c
src/dumb/dumb_blorb.c
src/sdl/generic.c
src/sdl/sf_video.c
src/test/README
src/test/etude/accents.inc
src/test/etude/timedstr.inc

diff --git a/BUGS b/BUGS
index 365dade83110efe0cd202565073a0e4579c17b59..9cf1747baaa07149455e8329d8070348771ab930 100644 (file)
--- a/BUGS
+++ b/BUGS
@@ -33,7 +33,7 @@ Bug-testing Programs ||
 =======================
 
 Unix Frotz now comes with crashme, TerpEtude, gntests, strictz, and
-Unicode Test.  These are intended to excercise the interpreter and
+Unicode Test.  These are intended to exercise the interpreter and
 verify that it is functioning according to spec.  You will find these
 programs in the src/test/ directory.
 
@@ -70,7 +70,7 @@ assumed to trade saves across platforms.
 Arrow Key Handling ||
 =====================
 
-Not really a bug, but an idiosyncracy.  In "Journey", sometimes you can't
+Not really a bug, but an idiosyncrasy.  In "Journey", sometimes you can't
 use the right-arrow key to move from the "party commands" menu to the
 "individual commands" menu.  IMHO, this is a bit sloppy, but it isn't
 Frotz's fault.  Instead, use the spacebar to jump from menu to menu.
index 8e72986ed572d9ebf72a15e36e3f21bbcb06cba4..27fcb7985474f9bc0c7ecbce53f81cb48583c133 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -152,7 +152,7 @@ NEW FEATURES
 
 BUG FIXES AND MINOR ENHANCEMENTS
 
-- In BUGS, an idiosyncracy of "Journey" by Infocom was mistakenly
+- In BUGS, an idiosyncrasy of "Journey" by Infocom was mistakenly
   identified as a bug in Frotz.
   (Reported by someone whom I forget)
 
@@ -246,5 +246,5 @@ NEW FEATURES
 
 - Faster undo functionality (borrowed from Nitfol).
 
-- History searchs has been added.  Type the beginning of a past command
+- History searches have been added.  Type the beginning of a past command
   and hit the up or down arrow key.
index a1a6e71de641272a6d947c13fc9df10c41698ec6..ee24691675c1e4c49f48491286cf81af93686642 100644 (file)
@@ -87,7 +87,7 @@ the word "AND" or by a comma.  Here are some examples:
 
 You can include several inputs on one line if you separate them by the
 word "THEN" or by a period.  Each input will be handled in order, as
-though you had typed them individually at seperate prompts.  For example,
+though you had typed them individually at separate prompts.  For example,
 you could type all of the following at once, before pressing the ENTER (or
 RETURN) key:
 
index 51218e6228742531047f2de6fa6455be1d0c8fc1..d401bb81dec0be2a935ce6c24ec0cda330694e12 100644 (file)
@@ -154,7 +154,7 @@ special circumstances.
 .TP
 .B \-x
 Expand the abbreviations "g", "x", and "z" to "again", "examine", and
-"wait".  This switch is for use iwth old Infocom games that lack these
+"wait".  This switch is for use with old Infocom games that lack these
 common abbreviations which were introduced in later games.  Use it with
 caution: A few games might use "g", "x" or "z" for different purposes.
 
index 296e6023121fd78f9281cdc6706f4847f0c10964..f630d3b68ab7c9404029ec8e63067186b111c019 100644 (file)
@@ -125,7 +125,7 @@ void runtime_error (int errnum)
        if (f_setup.err_report_mode == ERR_REPORT_ONCE) {
            print_string (" (will ignore further occurrences)");
        } else {
-           print_string (" (occurence ");
+           print_string (" (occurrence ");
            print_long (error_count[errnum - 1], 10);
            print_char (')');
        }
index fdc7cad5d358b7f2a1e9ddeda3e070be66e13f58..2d087a82c7dfca5b9b2f078fe934dffe7932b636 100644 (file)
@@ -218,7 +218,7 @@ void z_or (void)
 
 
 /*
- * z_sub, 16bit substraction.
+ * z_sub, 16bit subtraction.
  *
  *     zargs[0] = first value
  *     zargs[1] = second value
index 0e1e1188afe62da9b25f43f40354d90d000fc020..51a647328b4504f25abe5298d0e787de448fe9b8 100644 (file)
@@ -802,7 +802,7 @@ void restart_screen (void)
 /*
  * validate_click
  *
- * Return false if the last mouse click occured outside the current
+ * Return false if the last mouse click occurred outside the current
  * mouse window; otherwise write the mouse arrow coordinates to the
  * memory of the header extension table and return true.
  *
index c9aafc74f99c479adbb76e8707b71a8827378070..9c85027241aa13591bccbcffd2dbe0c83a5acf03 100644 (file)
@@ -54,7 +54,7 @@ static int isblorb(FILE *);
  * ux_blorb_init
  *
  * Check if we're opening a Blorb file directly.  If not, check
- * to see if there's a seperate Blorb file that looks like it goes
+ * to see if there's a separate Blorb file that looks like it goes
  * along with this Zcode file.  If we have a Blorb file one way or the
  * other, make a Blorb map.  If we opened a Blorb file directly, that
  * means that our executable is in that file and therefore we will look
@@ -77,7 +77,7 @@ bb_err_t ux_blorb_init(char *filename)
        return bb_err_Read;
 
     /* Is this really a Blorb file?  If not, maybe we're loading a naked
-     * zcode file and our resources are in a seperate blorb file.
+     * zcode file and our resources are in a separate blorb file.
      */
     if (isblorb(fp)) {                 /* Now we know to look */
        f_setup.exec_in_blorb = 1;      /* for zcode in the blorb */
@@ -110,7 +110,7 @@ bb_err_t ux_blorb_init(char *filename)
        }
 
        /* At this point we know that we're using a naked zcode file */
-       /* with resources in a seperate Blorb file. */
+       /* with resources in a separate Blorb file. */
        blorb_fp = fp;
        f_setup.use_blorb = 1;
     }
index b60b1ec2330ce0fda144e568a2a843fcb6afe081..5e09769d7ec2184e43944e4c7681a7eba0e056b7 100644 (file)
@@ -1053,7 +1053,7 @@ static int geterrmode(char *value)
 /*
  * sigwinch_handler
  *
- * Called whenever Frotz recieves a SIGWINCH signal to make curses
+ * Called whenever Frotz receives a SIGWINCH signal to make curses
  * cleanly resize the window.  To be safe, just set a flag here.
  * It is checked and cleared in unix_read_char.
  *
index ff3795d1b09e20c4c17a8996cf2cf5c13f0e7183..1cf77bc80f4617a6d52136c8e52494570330afed 100644 (file)
@@ -50,7 +50,7 @@ static int isblorb(FILE *);
  * dumb_blorb_init
  *
  * Check if we're opening a Blorb file directly.  If not, check
- * to see if there's a seperate Blorb file that looks like it goes
+ * to see if there's a separate Blorb file that looks like it goes
  * along with this Zcode file.  If we have a Blorb file one way or the
  * other, make a Blorb map.  If we opened a Blorb file directly, that
  * means that our executable is in that file and therefore we will look
@@ -73,7 +73,7 @@ bb_err_t dumb_blorb_init(char *filename)
        return bb_err_Read;
 
     /* Is this really a Blorb file?  If not, maybe we're loading a naked
-     * zcode file and our resources are in a seperate blorb file.
+     * zcode file and our resources are in a separate blorb file.
      */
     if (isblorb(fp)) {                 /* Now we know to look */
        f_setup.exec_in_blorb = 1;      /* for zcode in the blorb */
@@ -107,7 +107,7 @@ bb_err_t dumb_blorb_init(char *filename)
            return bb_err_NoBlorb;
 
        /* At this point we know that we're using a naked zcode file */
-       /* with resources in a seperate Blorb file. */
+       /* with resources in a separate Blorb file. */
        f_setup.use_blorb = 1;
     }
 
index 148eec981cf113b4df919304cc642d774bc4da1a..8d0ef1986ba330a65d05fefa0afd17f94f9e5958 100644 (file)
@@ -50,7 +50,7 @@ static int isblorb(FILE *fp)
  * gen_blorb_init
  *
  * Check if we're opening a Blorb file directly.  If not, check
- * to see if there's a seperate Blorb file that looks like it goes
+ * to see if there's a separate Blorb file that looks like it goes
  * along with this Zcode file.  If we have a Blorb file one way or the
  * other, make a Blorb map.  If we opened a Blorb file directly, that
  * means that our executable is in that file and therefore we will look
@@ -73,7 +73,7 @@ bb_err_t gen_blorb_init(char *filename)
         return bb_err_Read;
 
     /* Is this really a Blorb file?  If not, maybe we're loading a naked
-     * zcode file and our resources are in a seperate blorb file.
+     * zcode file and our resources are in a separate blorb file.
      */
     if (isblorb(fp)) {                  /* Now we know to look */
         f_setup.exec_in_blorb = 1;      /* for zcode in the blorb */
@@ -106,7 +106,7 @@ bb_err_t gen_blorb_init(char *filename)
         }
 
         /* At this point we know that we're using a naked zcode file */
-        /* with resources in a seperate Blorb file. */
+        /* with resources in a separate Blorb file. */
         blorb_fp = fp;
         f_setup.use_blorb = 1;
     }
index d10782aaf11fcb889004ef79e8d77932368f5cd1..8c73aa9f2a370da0527bcb6ecd8dec9a16ceb8a7 100644 (file)
@@ -503,7 +503,7 @@ void os_draw_picture(int picture, int y, int x)
   ew = m_gfxScale*pic->width;
   eh = m_gfxScale*pic->height;
 
-       // this takes care of the fact taht x, y are really 16 bit values
+       // this takes care of the fact that x, y are really 16 bit values
   if (x & 0x8000) x |= 0xffff0000;
   if (y & 0x8000) y |= 0xffff0000;
 
index d58dc965ebc74140fb5c12b2dbe7120022ceadea..09b66bf52be9ed5e080c718449ca7834de19014e 100644 (file)
@@ -1,4 +1,4 @@
-These programs are intended to excercise the interpreter that it is
+These programs are intended to exercise the interpreter that it is
 functioning according to spec.  As far as I can determine, the programs
 are in the public domain or made freely available with no restrictions.
 Copyrights are retained by the original authors where noted.
index 4233b70518279c38b3fabfd69c8d47c84b3c67d5..17601e342d418b9fc85c1a566d4b91cbcaf60d60 100644 (file)
@@ -92,7 +92,7 @@ Array AccentList table [;
     like '>>' and '<<'). The Z-Spec says that the character '>>' is
     code 162, and '<<' is 163. However, Inform 6.11 (following the
     Z-Spec 0.2) compiles
-    '@@64>>' as 163, and '@@64<<' as 162. The concensus is that the
+    '@@64>>' as 163, and '@@64<<' as 162. The consensus is that the
     Z-Spec 0.2 and Inform 6.11 are wrong, and Z-Spec 0.99 and later
     are correct.^^";
 
index 5ef3c7e19960c63d5a3c1554bd8d3ea9993299c4..358c980d2951de60c5be4c9635fd2fb3bda31fdc 100644 (file)
@@ -18,7 +18,7 @@
     of text will appear. (If the lines appear at the rate of one
     every thirty seconds, your interpreter is using the incorrect
     timing rate caused by an old bug in ZIP.)^^";
-  print "Interrupts actually are occuring once per second; every
+  print "Interrupts actually are occurring once per second; every
     third interrupt prints a line of text, and the other two have no
     visible effect. After each line, your input should be redrawn so
     that you can continue typing and editing it.^^";