[gimp] Fix typos



commit bb322d94d765632ee7c7bc92022fc5cdedaa524c
Author: luz paz <luzpaz users noreply github com>
Date:   Thu Nov 5 11:43:53 2020 -0500

    Fix typos
    
    Found via:
    ```
    codespell -q 3 -S ./ChangeLog*,*.po,./.git,./NEWS* -L 
als,ang,ba,chello,daa,doubleclick,foto,hist,iff,inport,klass,mut,nd,ower,paeth,params,pard,pevent,sinc,thru,tim,uint
    ```

 NEWS                                                        |  2 +-
 app/config/gimpguiconfig.c                                  |  2 +-
 app/core/gimp-transform-utils.c                             |  2 +-
 app/core/gimpbacktrace-linux.c                              |  2 +-
 app/core/gimpboundary.c                                     |  2 +-
 app/core/gimpimage-convert-indexed.c                        |  2 +-
 app/core/gimpimage.c                                        |  2 +-
 app/display/gimpdisplayshell-transform.h                    |  2 +-
 app/display/gimptooltransformgrid.c                         |  4 ++--
 app/pdb/image-cmds.c                                        |  2 +-
 build/flatpak/gimp-flatpak-cron.sh                          |  2 +-
 build/windows/crossbuild-gitlab-ci/dll_link.py              |  8 ++++----
 devel-docs/GIMP3-plug-in-porting-guide/removed_functions.md |  2 +-
 devel-docs/xcf.txt                                          |  2 +-
 libgimp/gimpimage_pdb.c                                     |  2 +-
 libgimp/gimpprocedureconfig.c                               |  2 +-
 libgimpwidgets/gimpscaleentry.c                             |  2 +-
 pdb/groups/image.pdb                                        |  2 +-
 plug-ins/common/file-pdf-save.c                             | 12 ++++++------
 plug-ins/common/file-xmc.c                                  |  2 +-
 plug-ins/common/nl-filter.c                                 |  6 +++---
 plug-ins/common/wavelet-decompose.c                         |  2 +-
 plug-ins/file-fits/fits-io.c                                |  2 +-
 plug-ins/file-psd/psd-util.c                                |  2 +-
 plug-ins/python/spyro-plus.py                               |  2 +-
 25 files changed, 36 insertions(+), 36 deletions(-)
---
diff --git a/NEWS b/NEWS
index 2d3e670d35..9fc6b8b584 100644
--- a/NEWS
+++ b/NEWS
@@ -194,7 +194,7 @@ API:
   - `GimpPlugIn` is a class which every plug-in should now subclass as a
     way to create their plug-in, and override at least the methods
     query_procedures() and create_procedure(). Two other methods
-    (init_procedures() and quit()) can be optionally overrided.
+    (init_procedures() and quit()) can be optionally overridden.
     The new subclass must be declared to gimp by calling gimp_main() to
     make it available to the core (PDB procedure, menu items, etc.).
     A plug-in can obtain its own GimpPlugIn instance with
diff --git a/app/config/gimpguiconfig.c b/app/config/gimpguiconfig.c
index 5c9f147a71..83b3b51745 100644
--- a/app/config/gimpguiconfig.c
+++ b/app/config/gimpguiconfig.c
@@ -160,7 +160,7 @@ gimp_gui_config_class_init (GimpGuiConfigClass *klass)
 
   GIMP_CONFIG_PROP_BOOLEAN (object_class, PROP_FILTER_TOOL_SHOW_COLOR_OPTIONS,
                             "filter-tool-show-color-options",
-                            "Show avanced color options in filters",
+                            "Show advanced color options in filters",
                             FILTER_TOOL_SHOW_COLOR_OPTIONS_BLURB,
                             FALSE,
                             GIMP_PARAM_STATIC_STRINGS);
diff --git a/app/core/gimp-transform-utils.c b/app/core/gimp-transform-utils.c
index 555ff09dbd..0e459ee06d 100644
--- a/app/core/gimp-transform-utils.c
+++ b/app/core/gimp-transform-utils.c
@@ -450,7 +450,7 @@ gimp_transform_matrix_generic (GimpMatrix3       *matrix,
   g_return_val_if_fail (output_points != NULL, FALSE);
 
   /* find the matrix that transforms 'input_points' to 'output_points', whose
-   * (3, 3) coeffcient is 1, by solving a system of linear equations whose
+   * (3, 3) coefficient is 1, by solving a system of linear equations whose
    * solution is the remaining 8 coefficients.
    */
   for (i = 0; i < 4; i++)
diff --git a/app/core/gimpbacktrace-linux.c b/app/core/gimpbacktrace-linux.c
index a8593f8a10..e4166e3406 100644
--- a/app/core/gimpbacktrace-linux.c
+++ b/app/core/gimpbacktrace-linux.c
@@ -373,7 +373,7 @@ gimp_backtrace_stop (void)
   if (n_initializations == 0 && initialized)
     {
       if (sigaction (BACKTRACE_SIGNAL, &orig_action, NULL) < 0)
-        g_warning ("failed to restore origianl backtrace signal handler");
+        g_warning ("failed to restore original backtrace signal handler");
 
       initialized = FALSE;
     }
diff --git a/app/core/gimpboundary.c b/app/core/gimpboundary.c
index 939c671084..253fe475c5 100644
--- a/app/core/gimpboundary.c
+++ b/app/core/gimpboundary.c
@@ -59,7 +59,7 @@ static GimpBoundary * gimp_boundary_new        (const GeglRectangle *region);
 static GimpBoundSeg * gimp_boundary_free       (GimpBoundary        *boundary,
                                                 gboolean             free_segs);
 
-static void           gimp_boundary_add_seg    (GimpBoundary        *bounrady,
+static void           gimp_boundary_add_seg    (GimpBoundary        *boundary,
                                                 gint                 x1,
                                                 gint                 y1,
                                                 gint                 x2,
diff --git a/app/core/gimpimage-convert-indexed.c b/app/core/gimpimage-convert-indexed.c
index d2f7dcc02e..a564e0a560 100644
--- a/app/core/gimpimage-convert-indexed.c
+++ b/app/core/gimpimage-convert-indexed.c
@@ -3482,7 +3482,7 @@ median_cut_pass2_fixed_dither_rgb (QuantizeObj *quantobj,
 
               color2 = &quantobj->cmap[pixval2];
 
-              /* now figure out the relative probabilites of choosing
+              /* now figure out the relative probabilities of choosing
                  either of our candidates. */
 #define DISTP(R1,G1,B1,R2,G2,B2,D) do {D = sqrt( 30*SQR((R1)-(R2)) + \
                                                  59*SQR((G1)-(G2)) + \
diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c
index 42a0699a35..7002935dcd 100644
--- a/app/core/gimpimage.c
+++ b/app/core/gimpimage.c
@@ -2397,7 +2397,7 @@ gimp_image_set_imported_file (GimpImage *image,
        * use higher default resolution, or explicitly chosen templates),
        * imported files have a more backward-compatible value.
        *
-       * 72 PPI is traditionnally the default value when none other had
+       * 72 PPI is traditionally the default value when none other had
        * been explicitly set (for instance it is the default when no
        * resolution metadata was set in Exif version 2.32, and below,
        * standard). This historical value will only ever apply to loaded
diff --git a/app/display/gimpdisplayshell-transform.h b/app/display/gimpdisplayshell-transform.h
index 1877b13f03..4b0a7d9dbb 100644
--- a/app/display/gimpdisplayshell-transform.h
+++ b/app/display/gimpdisplayshell-transform.h
@@ -62,7 +62,7 @@ void  gimp_display_shell_zoom_segments                 (GimpDisplayShell   *shel
 
 
 /*  rotate: functions to transform from unrotated and unflipped but
- *  zoomed display space to rotated and filpped display space and back
+ *  zoomed display space to rotated and flipped display space and back
  */
 
 void  gimp_display_shell_rotate_coords                 (GimpDisplayShell   *shell,
diff --git a/app/display/gimptooltransformgrid.c b/app/display/gimptooltransformgrid.c
index b186b91c33..76ca13b93a 100644
--- a/app/display/gimptooltransformgrid.c
+++ b/app/display/gimptooltransformgrid.c
@@ -1482,7 +1482,7 @@ gimp_tool_transform_grid_motion (GimpToolWidget   *widget,
 
       /* when the keep aspect transformation constraint is enabled,
        * the translation shall only be along the diagonal that runs
-       * trough this corner point.
+       * through this corner point.
        */
       if (private->constrain_scale)
         {
@@ -1726,7 +1726,7 @@ gimp_tool_transform_grid_motion (GimpToolWidget   *widget,
           /* when the constrain transformation constraint is enabled,
            * the translation shall only be either along the side
            * angles of the two sides that run to this corner point, or
-           * along the diagonal that runs trough this corner point.
+           * along the diagonal that runs through this corner point.
            */
           GimpVector2 proj[4];
           gdouble     rej[4];
diff --git a/app/pdb/image-cmds.c b/app/pdb/image-cmds.c
index 58a5ecb4be..eb3f3f7d19 100644
--- a/app/pdb/image-cmds.c
+++ b/app/pdb/image-cmds.c
@@ -5625,7 +5625,7 @@ register_image_procs (GimpPDB *pdb)
                                   "Execute the color profile conversion policy.",
                                   "Process the image according to the color profile policy as set in 
Preferences.\n"
                                      "If GIMP is running as a GUI and interactive is TRUE, a dialog may be 
presented to the user depending on the policy. Otherwise, if the policy does not mandate the conversion to 
perform, the conversion to the preferred RGB or grayscale profile will happen, defaulting to built-in 
profiles if no preferred profiles were set in `Preferences`.\n"
-                                     "This function should be used only if you want to follow user settings. 
If you intend to convert to a specific profile, call preferrably 'gimp-image-convert-color-profile'. And if 
you wish to leave whatever profile an image has, do not call any of these functions.\n"
+                                     "This function should be used only if you want to follow user settings. 
If you intend to convert to a specific profile, call preferably 'gimp-image-convert-color-profile'. And if 
you wish to leave whatever profile an image has, do not call any of these functions.\n"
                                      "Finally it is unnecessary to call this function in a format load 
procedure because this is called automatically by the core code when loading any image. You should only call 
this function explicitly when loading an image through a PDB call.",
                                   NULL);
   gimp_procedure_set_static_attribution (procedure,
diff --git a/build/flatpak/gimp-flatpak-cron.sh b/build/flatpak/gimp-flatpak-cron.sh
index c956500b15..20f6d33f1c 100755
--- a/build/flatpak/gimp-flatpak-cron.sh
+++ b/build/flatpak/gimp-flatpak-cron.sh
@@ -69,7 +69,7 @@ flatpak_build_branch() {
   mkdir -p ${INSTALLDIR}
 
   # Use ccache to improve build speed. Clean previous build directories.
-  # Keep build dirs for later debugging if ever any build issue arised.
+  # Keep build dirs for later debugging if ever any build issue arises.
   BUILD_OPTIONS="--ccache --force-clean --keep-build-dirs --jobs=1"
 
   SKIP=""
diff --git a/build/windows/crossbuild-gitlab-ci/dll_link.py b/build/windows/crossbuild-gitlab-ci/dll_link.py
index 942bad82ea..59190098e3 100755
--- a/build/windows/crossbuild-gitlab-ci/dll_link.py
+++ b/build/windows/crossbuild-gitlab-ci/dll_link.py
@@ -1,7 +1,7 @@
 #!/usr/bin/python3
 
 ################################################################################
-# Small python script to retrieve DLL depencies with objdump
+# Small python script to retrieve DLL dependencies with objdump
 ################################################################################
 
 ################################################################################
@@ -9,9 +9,9 @@
 #
 # python3 dll_link.py /path/to/run.exe /winenv/ /path/install
 #
-# In this case, the DLL depencies for executable run.exe will be extracted and
-# copied into /path/install/bin folder. To copy the DLL, the root path to
-# Windows environnement should be passed, here /winenv/.
+# In this case, the DLL dependencies for executable run.exe will be extracted
+# and copied into /path/install/bin folder. To copy the DLL, the root path to
+# Windows environnment should be passed, here /winenv/.
 
 import argparse
 import os
diff --git a/devel-docs/GIMP3-plug-in-porting-guide/removed_functions.md 
b/devel-docs/GIMP3-plug-in-porting-guide/removed_functions.md
index 2c56c9c465..12913cc32b 100644
--- a/devel-docs/GIMP3-plug-in-porting-guide/removed_functions.md
+++ b/devel-docs/GIMP3-plug-in-porting-guide/removed_functions.md
@@ -4,7 +4,7 @@ These functions have been removed from GIMP 3. Most of them were deprecated
 since GIMP 2.10.x or older versions. As we bump the major version, it is time
 to start with a clean slate.
 
-Below is a correspondance table with replacement function. The replacement is
+Below is a correspondence table with replacement function. The replacement is
 not necessarily a direct search-and-replace equivalent. Some may have different
 parameters, and in some case, it may require to think a bit about how things
 work to reproduce the same functionality. Nevertheless everything which was
diff --git a/devel-docs/xcf.txt b/devel-docs/xcf.txt
index 51003487e5..0a64c1a944 100644
--- a/devel-docs/xcf.txt
+++ b/devel-docs/xcf.txt
@@ -1359,7 +1359,7 @@ PROP_MODE (essential)
                      31: Screen
                      32: Difference
                      33: Addition
-                     34: Substract
+                     34: Subtract
                      35: Darken only
                      36: Lighten only
                      37: Hue (HSV)
diff --git a/libgimp/gimpimage_pdb.c b/libgimp/gimpimage_pdb.c
index 0e57f168e4..24480f8727 100644
--- a/libgimp/gimpimage_pdb.c
+++ b/libgimp/gimpimage_pdb.c
@@ -3492,7 +3492,7 @@ gimp_image_policy_rotate (GimpImage *image,
  * `Preferences`.
  * This function should be used only if you want to follow user
  * settings. If you intend to convert to a specific profile, call
- * preferrably gimp_image_convert_color_profile(). And if you wish to
+ * preferably gimp_image_convert_color_profile(). And if you wish to
  * leave whatever profile an image has, do not call any of these
  * functions.
  * Finally it is unnecessary to call this function in a format load
diff --git a/libgimp/gimpprocedureconfig.c b/libgimp/gimpprocedureconfig.c
index 33aeea80a3..a7e71f4cd3 100644
--- a/libgimp/gimpprocedureconfig.c
+++ b/libgimp/gimpprocedureconfig.c
@@ -461,7 +461,7 @@ gimp_procedure_config_set_parasite (GimpProcedureConfig *config,
  * String properties are set to the value of the image parasite if
  * @run_mode is %GIMP_RUN_INTERACTIVE or %GIMP_RUN_WITH_LAST_VALS, or
  * if the corresponding argument is an auxiliary argument. As a
- * special case, a propery named "gimp-comment" will default to
+ * special case, a property named "gimp-comment" will default to
  * gimp_get_default_comment() if there is no "gimp-comment" parasite.
  *
  * After calling this function, the @args passed to run() should be
diff --git a/libgimpwidgets/gimpscaleentry.c b/libgimpwidgets/gimpscaleentry.c
index 8fe8108f3c..e2cb49073b 100644
--- a/libgimpwidgets/gimpscaleentry.c
+++ b/libgimpwidgets/gimpscaleentry.c
@@ -307,7 +307,7 @@ gimp_scale_entry_new  (const gchar *text,
  * useful if you need to customize some aspects of the widget
  *
  * By default, it is a #GtkScale, but it can be any other type of
- * #GtkRange if a subclass overrided the new_range_widget() protected
+ * #GtkRange if a subclass overrode the new_range_widget() protected
  * method.
  *
  * Returns: (transfer none): The #GtkRange contained in @entry.
diff --git a/pdb/groups/image.pdb b/pdb/groups/image.pdb
index 2e775239d8..e1005af05e 100644
--- a/pdb/groups/image.pdb
+++ b/pdb/groups/image.pdb
@@ -3033,7 +3033,7 @@ preferred RGB or grayscale profile will happen, defaulting to built-in
 profiles if no preferred profiles were set in `Preferences`.
 
 This function should be used only if you want to follow user settings.
-If you intend to convert to a specific profile, call preferrably
+If you intend to convert to a specific profile, call preferably
 gimp_image_convert_color_profile(). And if you wish to leave whatever
 profile an image has, do not call any of these functions.
 
diff --git a/plug-ins/common/file-pdf-save.c b/plug-ins/common/file-pdf-save.c
index 23d786cef8..1e420e705e 100644
--- a/plug-ins/common/file-pdf-save.c
+++ b/plug-ins/common/file-pdf-save.c
@@ -1576,7 +1576,7 @@ get_layer_color (GimpLayer *layer,
   GimpRGB col;
   gdouble red, green, blue, alpha;
   gdouble dev, devSum;
-  gdouble median, pixels, count, precentile;
+  gdouble median, pixels, count, percentile;
 
   devSum = 0;
   red = 0;
@@ -1599,17 +1599,17 @@ get_layer_color (GimpLayer *layer,
 
       gimp_drawable_histogram (GIMP_DRAWABLE (layer),
                                GIMP_HISTOGRAM_RED, 0.0, 1.0,
-                               &red, &dev, &median, &pixels, &count, &precentile);
+                               &red, &dev, &median, &pixels, &count, &percentile);
       devSum += dev;
 
       gimp_drawable_histogram (GIMP_DRAWABLE (layer),
                                GIMP_HISTOGRAM_GREEN, 0.0, 1.0,
-                               &green, &dev, &median, &pixels, &count, &precentile);
+                               &green, &dev, &median, &pixels, &count, &percentile);
       devSum += dev;
 
       gimp_drawable_histogram (GIMP_DRAWABLE (layer),
                                GIMP_HISTOGRAM_BLUE, 0.0, 1.0,
-                               &blue, &dev, &median, &pixels, &count, &precentile);
+                               &blue, &dev, &median, &pixels, &count, &percentile);
       devSum += dev;
     }
   else
@@ -1618,7 +1618,7 @@ get_layer_color (GimpLayer *layer,
 
       gimp_drawable_histogram (GIMP_DRAWABLE (layer),
                                GIMP_HISTOGRAM_VALUE, 0.0, 1.0,
-                               &red, &dev, &median, &pixels, &count, &precentile);
+                               &red, &dev, &median, &pixels, &count, &percentile);
       devSum += dev;
       green = red;
       blue = red;
@@ -1627,7 +1627,7 @@ get_layer_color (GimpLayer *layer,
   if (gimp_drawable_has_alpha (GIMP_DRAWABLE (layer)))
     gimp_drawable_histogram (GIMP_DRAWABLE (layer),
                              GIMP_HISTOGRAM_ALPHA, 0.0, 1.0,
-                             &alpha, &dev, &median, &pixels, &count, &precentile);
+                             &alpha, &dev, &median, &pixels, &count, &percentile);
   else
     alpha = 255;
 
diff --git a/plug-ins/common/file-xmc.c b/plug-ins/common/file-xmc.c
index c09f911e49..180cf67fae 100644
--- a/plug-ins/common/file-xmc.c
+++ b/plug-ins/common/file-xmc.c
@@ -1303,7 +1303,7 @@ load_default_hotspot (GimpImage     *image,
 
   if (/* if we cannot load hotspot correctly */
       ! get_hotspot_from_parasite (image, &hot_spot_x, &hot_spot_y) ||
-      /* or hostspot is out of range */
+      /* or hotspot is out of range */
       ! pix_in_region (hot_spot_x, hot_spot_y, hotspot_range))
     {
       /* then use top left point of hotspot_range as fallback. */
diff --git a/plug-ins/common/nl-filter.c b/plug-ins/common/nl-filter.c
index dcbc056259..da484d5796 100644
--- a/plug-ins/common/nl-filter.c
+++ b/plug-ins/common/nl-filter.c
@@ -398,7 +398,7 @@ nlfiltRow (guchar *srclast, guchar *srcthis, guchar *srcnext, guchar *dst,
 /* the pixel in question needs to be read. Given this, we only */
 /* need 3 or 4 weightings per hexagon, as follows: */
 /*                  _ _                         */
-/* Virtical hex:   |_|_|  1 2                   */
+/* Vertical hex:   |_|_|  1 2                   */
 /*                 |X|_|  0 3                   */
 /*                                       _      */
 /*              _                      _|_|   1 */
@@ -512,10 +512,10 @@ nlfiltInit (gdouble alpha, gdouble radius, FilterType filter)
       gdouble tabscale,mtabscale;
       gdouble v0,v1,v2,v3,m0,m1,m2,h0,h1,h2,h3;
 
-          /* horizontal offset of virtical hex centers */
+          /* horizontal offset of vertical hex centers */
       hexhoff = radius/2;
 
-          /* vertical offset of virtical hex centers */
+          /* vertical offset of vertical hex centers */
       hexvoff = 3.0 * radius/sqrt(12.0);
 
           /*
diff --git a/plug-ins/common/wavelet-decompose.c b/plug-ins/common/wavelet-decompose.c
index e874e2f7a8..e07bf4857d 100644
--- a/plug-ins/common/wavelet-decompose.c
+++ b/plug-ins/common/wavelet-decompose.c
@@ -142,7 +142,7 @@ wavelet_create_procedure (GimpPlugIn  *plug_in,
                          G_PARAM_READWRITE);
 
       GIMP_PROC_ARG_BOOLEAN (procedure, "create-group",
-                             "Create grooup",
+                             "Create group",
                              "Create a layer group to store the "
                              "decomposition",
                              TRUE,
diff --git a/plug-ins/file-fits/fits-io.c b/plug-ins/file-fits/fits-io.c
index fe524d2b50..2fbd4aab36 100644
--- a/plug-ins/file-fits/fits-io.c
+++ b/plug-ins/file-fits/fits-io.c
@@ -56,7 +56,7 @@
 /*                                                                            */
 /******************************************************************************/
 
-#define                                    VERSIO  0.12
+#define                                    VERSION 0.12
 
 /******************************************************************************/
 /* FITS reading/writing library                                               */
diff --git a/plug-ins/file-psd/psd-util.c b/plug-ins/file-psd/psd-util.c
index 5686bb7970..a292aac065 100644
--- a/plug-ins/file-psd/psd-util.c
+++ b/plug-ins/file-psd/psd-util.c
@@ -101,7 +101,7 @@ static const LayerModeMapping layer_mode_map[] =
   { "Hue",           "hue ", GIMP_LAYER_MODE_HSV_HUE,               FALSE },
   { "Hue",           "hue ", GIMP_LAYER_MODE_HSV_HUE_LEGACY,        FALSE },
 
-  /* Stauration (ps3) */
+  /* Saturation (ps3) */
   { "Saturation",    "sat ", GIMP_LAYER_MODE_LCH_CHROMA,            FALSE },
   { "Saturation",    "sat ", GIMP_LAYER_MODE_HSV_SATURATION,        FALSE },
   { "Saturation",    "sat ", GIMP_LAYER_MODE_HSV_SATURATION_LEGACY, FALSE },
diff --git a/plug-ins/python/spyro-plus.py b/plug-ins/python/spyro-plus.py
index d2b7dd9deb..6c9819882d 100755
--- a/plug-ins/python/spyro-plus.py
+++ b/plug-ins/python/spyro-plus.py
@@ -1156,7 +1156,7 @@ RIGHT_MARGIN = 2
 TOTAL_MARGIN = CIRCLE_CENTER_X + RIGHT_MARGIN
 
 # A widget for displaying and setting the pattern of a spirograph, using a "doughnut" as
-# a visual metaphore.  This widget replaces two scale widgets.
+# a visual metaphor.  This widget replaces two scale widgets.
 class DoughnutWidget(Gtk.DrawingArea):
     __gtype_name__ = 'DoughnutWidget'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]