From 9b553048642c09d3b4604fb81625bb2b1b99d39d Mon Sep 17 00:00:00 2001
From: "luz.paz" <luzpaz@users.noreply.github.com>
Date: Sat, 3 Feb 2018 15:49:16 -0500
Subject: [PATCH] Misc. typos

Found via `codespell -q 3`
---
 ChangeLog.old                       | 16 ++++++++--------
 THANKS                              |  2 +-
 lib/fribidi-arabic.h                |  2 +-
 lib/fribidi-bidi.c                  |  2 +-
 lib/fribidi-bidi.h                  |  4 ++--
 lib/fribidi-deprecated.h            |  8 ++++----
 lib/fribidi-joining.h               |  2 +-
 lib/fribidi-run.c                   |  2 +-
 test/test_CapRTL_explicit.input     |  2 +-
 test/test_CapRTL_explicit.reference |  2 +-
 10 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/ChangeLog.old b/ChangeLog.old
index 22679e5..ba4caa2 100644
--- a/ChangeLog.old
+++ b/ChangeLog.old
@@ -129,7 +129,7 @@
 	UNI_MAX_BIDI_LEVEL and moved to fribidi_unicode.h, should not check
 	fribidi with debug-enabled reference code anymore.  Updated
 	conformance/test to reflect this change.
-	* README: Sample input and output removed, refered to tests directory
+	* README: Sample input and output removed, referred to tests directory
 	* fribidi_config.h.in: Added, configure creates fribidi_config.h from
 	this.
 	* fribidi.spec.in: Added, configure creates fribidi.spec from this.
@@ -221,7 +221,7 @@
 	target fribidi_tab_char_type_N.i added, which N is replaced with
 	a digit between 2 and 9, and makes a table with compress level N.
 	* acinclude.m4: glib material removed.
-	* configure.in: VERISON update, INTERFACE_VERSION added. glib
+	* configure.in: VERSION update, INTERFACE_VERSION added. glib
 	material removed, fribidi_tab_char_types_N.i configuration added,
 	option --without-charsets added.  Also creates fribidi_config.h.
 	* fribidi-config.in: A small bug fixed, to set the --cflags output
@@ -305,7 +305,7 @@
 	conversion.
 
 2001-04-10  Behdad Esfahbod <behdad@bamdad.org>
-	* *.c/*.h: Changed all "guchar"s to "gchar" and neede casts done.
+	* *.c/*.h: Changed all "guchar"s to "gchar" and needed casts done.
 	* Makefile.am: Added MAINTAINERCLEANFILES to remove files
 	"configure", "config.h.in", "Makefile.in", "aclocal.m4" by
 	maintainer-clean target.
@@ -368,7 +368,7 @@
 	if successful and FALSE otherwise.
 	* fribidi_main.c, fribidi_benchmark.c: Changed to use getopt library,
 	to handle command line parameters better.
-	* fribidi_main.c: Changed to if COLUMNS enviroment variable is
+	* fribidi_main.c: Changed to if COLUMNS environment variable is
 	defined, use its value for text width.
 
 2001-03-29  Behdad Esfahbod <behdad@bamdad.org>
@@ -455,7 +455,7 @@
 	Option --test simulates the old test_fribidi (same as --fill
 	--showinput --clean)
 	Option --clean now works for all charsets.
-	Option --fill implementated.
+	Option --fill implemented.
 	Options --version, --showinput, --ltov, --vtol, --levels, --changes,
 	--novisual, --charsetdesc added.
 	Now use the charset conventions, lots of code removed.
@@ -504,7 +504,7 @@
 	* fribidi.c: Define symbol NO_STDIO changed to DEBUG, to turn on or
 	off all debug codes compile time, also a function fribidi_set_debug,
 	turns on and off the debug output generations in run time.
-	* fribidi.c: Added some more debug information, all debug informations
+	* fribidi.c: Added some more debug information, all debug information
 	revised and go to stderr now.
 	* fribidi.c: Fixed a bug in rule W5, that is when some european
 	terminators are between some arabic letters and some european
@@ -650,7 +650,7 @@
 	  patterns that are common in Bidi supported programs.
 
 1999-04-28  Dov Grobgeld  <dov.grobgeld@gmail.com>
-	* Fixed bug in fribidi_log2vis which occured if only the v2l
+	* Fixed bug in fribidi_log2vis which occurred if only the v2l
 	  array was requested and not the l2v array.
 	* Fixed bug in test_fribidi when using option test_vtol .
 	* Changed types in call to fribidi_log2vis to be more memory 
@@ -667,7 +667,7 @@
 
 1999-02-08  Dov Grobgeld  <dov.grobgeld@gmail.com>
 	* Released 0.1.3 to match the perl module FriBidi.
-	* Added length paramater to fribidi_unicode_to_iso8859_8().
+	* Added length parameter to fribidi_unicode_to_iso8859_8().
 	* Fixed bug in fribidi.c related to zero length strings.
 	* Released 0.1.2.
 	* Added options -ltr and -rtl to fribidi to force LTR and RTL 
diff --git a/THANKS b/THANKS
index a934939..6e138b9 100644
--- a/THANKS
+++ b/THANKS
@@ -18,7 +18,7 @@ Tomas Frydrych <tomas@frydrych.uklinux.net>
 	* Contirbuted patches for compiling GNU FriBidi under other OSes.
 
 Franck Portaneri
-	* For the Mozilla BiDi languges support document;
+	* For the Mozilla BiDi languages support document;
 
 Roozbeh Pournader <roozbeh@sharif.edu>
 	* Fixed things here and there.
diff --git a/lib/fribidi-arabic.h b/lib/fribidi-arabic.h
index 195caa0..3eaec43 100644
--- a/lib/fribidi-arabic.h
+++ b/lib/fribidi-arabic.h
@@ -54,7 +54,7 @@
  *					   rendering capabilities.
  *
  * Of the above, FRIBIDI_FLAG_SHAPE_ARAB_CONSOLE is only used in special
- * cases, but the rest are recommended in any enviroment that doesn't have
+ * cases, but the rest are recommended in any environment that doesn't have
  * other means for doing Arabic shaping.  The set of extra flags that enable
  * this level of Arabic support has a shortcut named FRIBIDI_FLAGS_ARABIC.
  */
diff --git a/lib/fribidi-bidi.c b/lib/fribidi-bidi.c
index 12cb44e..911a470 100644
--- a/lib/fribidi-bidi.c
+++ b/lib/fribidi-bidi.c
@@ -1498,7 +1498,7 @@ fribidi_reorder_line (
 		if (i < off || embedding_levels[i] != level)
 		  {
 		    i++;
-		    DBG ("warning: NSM(s) at the beggining of level run");
+		    DBG ("warning: NSM(s) at the beginning of level run");
 		  }
 
 		if (visual_str)
diff --git a/lib/fribidi-bidi.h b/lib/fribidi-bidi.h
index 1596056..de98d7a 100644
--- a/lib/fribidi-bidi.h
+++ b/lib/fribidi-bidi.h
@@ -75,7 +75,7 @@ FRIBIDI_ENTRY FriBidiParType fribidi_get_par_direction (
  * There are a few macros defined in fribidi-bidi-types.h to work with this
  * embedding levels.
  *
- * Returns: Maximum level found plus one, or zero if any error occured
+ * Returns: Maximum level found plus one, or zero if any error occurred
  * (memory allocation failure most probably).
  */
 FRIBIDI_ENTRY FriBidiLevel
@@ -119,7 +119,7 @@ fribidi_get_par_embedding_levels_ex (
  * in FRIBIDI_FLAGS_DEFAULT.
  *
  * Returns: Maximum level found in this line plus one, or zero if any error
- * occured (memory allocation failure most probably).
+ * occurred (memory allocation failure most probably).
  */
      FRIBIDI_ENTRY FriBidiLevel fribidi_reorder_line (
   FriBidiFlags flags, /* reorder flags */
diff --git a/lib/fribidi-deprecated.h b/lib/fribidi-deprecated.h
index adc0bcb..9177f1f 100644
--- a/lib/fribidi-deprecated.h
+++ b/lib/fribidi-deprecated.h
@@ -51,8 +51,8 @@
  *
  * This function is used to turn character mirroring on or off.
  * Character mirroring is the act of replacing a mirrorable glyph
- * (character), eg. left paranthesis, with the matching glyph, 
- * eg. right paranthesis, in a right-to-left resolved context.
+ * (character), eg. left parenthesis, with the matching glyph, 
+ * eg. right parenthesis, in a right-to-left resolved context.
  * If your rendering engine does mirroring itself, you may want to 
  * turn it off here.
  *
@@ -156,7 +156,7 @@ fribidi_get_type_internal (
  * lines; but feel free to do otherwise if you know what you are doing.
  * Deprecated.  Use fribidi_remove_special_chars instead.
  *
- * Returns: New length of the string, or \-1 if an error occured (memory
+ * Returns: New length of the string, or \-1 if an error occurred (memory
  * allocation failure most probably).
  */
 FRIBIDI_ENTRY FriBidiStrIndex
@@ -186,7 +186,7 @@ fribidi_remove_bidi_marks (
  * This function is obsolete because it only handles one-line paragraphs. 
  * Please consider using other functions instead.  Deprecated.
  *
- * Returns: Maximum level found plus one, or zero if any error occured
+ * Returns: Maximum level found plus one, or zero if any error occurred
  * (memory allocation failure most probably).
  */
      FRIBIDI_ENTRY FriBidiLevel fribidi_log2vis (
diff --git a/lib/fribidi-joining.h b/lib/fribidi-joining.h
index d282776..fb35098 100644
--- a/lib/fribidi-joining.h
+++ b/lib/fribidi-joining.h
@@ -62,7 +62,7 @@ FRIBIDI_ENTRY void fribidi_join_arabic (
   const FriBidiLevel *embedding_levels,	/* input list of embedding
 					   levels, as returned by
 					   fribidi_get_par_embedding_levels */
-  FriBidiArabicProp *ar_props	/* Arabic properties to analyze, initilized by
+  FriBidiArabicProp *ar_props	/* Arabic properties to analyze, initialized by
 				   joining types, as returned by
 				   fribidi_get_joining_types */
 );
diff --git a/lib/fribidi-run.c b/lib/fribidi-run.c
index 68c8c99..5d806f6 100644
--- a/lib/fribidi-run.c
+++ b/lib/fribidi-run.c
@@ -269,7 +269,7 @@ shadow_run_list (
 	/* r needed? */
 	if (r->pos + r->len > pos2)
 	  {
-	    /* cut the begining of r. */
+	    /* cut the beginning of r. */
 	    r->len = r->pos + r->len - pos2;
 	    r->pos = pos2;
 	  }
diff --git a/test/test_CapRTL_explicit.input b/test/test_CapRTL_explicit.input
index 7de582a..70711e2 100644
--- a/test/test_CapRTL_explicit.input
+++ b/test/test_CapRTL_explicit.input
@@ -11,4 +11,4 @@ A REAL BIG_l_o BUG!
 a _L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_Rbug
 AN ARABIC _l_o 123-456 NICE ONE!
 AN ARABIC _l _o 123-456 PAIR
-this bug 67_r_o89 catched!
+this bug 67_r_o89 caught!
diff --git a/test/test_CapRTL_explicit.reference b/test/test_CapRTL_explicit.reference
index c7deb28..8af2e90 100644
--- a/test/test_CapRTL_explicit.reference
+++ b/test/test_CapRTL_explicit.reference
@@ -11,4 +11,4 @@ A REAL BIG_l_o BUG!                 =>                     !GUB GIB LAER A
 a _L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_L_Rbug => a gub
 AN ARABIC _l_o 123-456 NICE ONE!    =>        !ENO ECIN 456-123  CIBARA NA
 AN ARABIC _l _o 123-456 PAIR        =>            RIAP   123-456 CIBARA NA
-this bug 67_r_o89 catched!          => this bug 6789 catched!
+this bug 67_r_o89 caught!          => this bug 6789 caught!
-- 
2.40.0