From f790dbda9d498eef9c9c0a49078adbeecf768d56 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 20 Aug 2017 20:39:15 +0200 Subject: [PATCH] Fix some typos (found by codespell) Most of them were in documentation and comments. Signed-off-by: Stefan Weil --- Bug-administration | 2 +- NEWS | 2 +- README.Git | 2 +- doc/dev/i18n.texi | 2 +- doc/expressions.texi | 2 +- lib/gtk-contrib/gtkxpaned.c | 2 +- src/data/casereader-translator.c | 2 +- src/data/dictionary.c | 2 +- src/data/sys-file-reader.c | 2 +- src/language/control/loop.c | 2 +- src/language/lexer/variable-parser.h | 2 +- src/language/stats/kruskal-wallis.c | 2 +- src/language/stats/logistic.c | 2 +- src/language/stats/quick-cluster.c | 2 +- src/language/stats/rank.c | 2 +- src/language/stats/regression.c | 2 +- src/language/stats/roc.c | 2 +- src/libpspp/hmap.c | 2 +- src/libpspp/i18n.c | 4 ++-- src/libpspp/zip-reader.h | 2 +- src/math/categoricals.c | 2 +- src/ui/gui/psppire-dict.c | 2 +- src/ui/gui/psppire-import-assistant.c | 4 ++-- tests/data/datasheet-test.c | 2 +- tests/language/data-io/matrix-data.at | 2 +- tests/language/stats/quick-cluster.at | 2 +- tests/language/stats/roc.at | 2 +- 27 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Bug-administration b/Bug-administration index d6a5348472..3a760b52b2 100644 --- a/Bug-administration +++ b/Bug-administration @@ -3,7 +3,7 @@ at http://sv.gnu.org/bugs/?group=pspp We use the following conventions for classiying / ranking bugs: -Relase: +Release: * Bugs which we think must be fixed before a release get their "Release" field set accordingly. * Bugs which need not be fixed before any particular release, get their "Release" field set to "Future". * Bugs where we have not get decided are left at "None". diff --git a/NEWS b/NEWS index fc7e597e51..1ce6229c76 100644 --- a/NEWS +++ b/NEWS @@ -172,7 +172,7 @@ Changes from 0.8.4 to 0.8.5: * SYSFILE INFO can now read SPSS/PC+ system files and SPSS portable files. - * FREQUENCIES: A bug was fixed where an assertion failure occured + * FREQUENCIES: A bug was fixed where an assertion failure occurred when an empty dataset was presented. * The GRAPH command is now available. Initially it supports diff --git a/README.Git b/README.Git index 46bc0818eb..3dd09b9f15 100644 --- a/README.Git +++ b/README.Git @@ -97,7 +97,7 @@ Then you need to run psppire uses some self defined widgets. To use glade these widgets have to be announced to glade such that you can view the interface. The install process will install the psppire glade library, icons and -psppire.xml files in the appropiate system locations. You cannot override +psppire.xml files in the appropriate system locations. You cannot override this with --prefix. After that you can run "glade" and open the ui files. Building from git on Mac OS diff --git a/doc/dev/i18n.texi b/doc/dev/i18n.texi index 09b5b419cf..876f359bff 100644 --- a/doc/dev/i18n.texi +++ b/doc/dev/i18n.texi @@ -27,7 +27,7 @@ It's rarely, if ever, necessary to interrogate the system to find out the values of the 3 locales. However it's important to be aware of the source (destination) locale when reading (writing) string data. -When transfering data between a source and a destination, the appropriate +When transferring data between a source and a destination, the appropriate recoding must be performed. diff --git a/doc/expressions.texi b/doc/expressions.texi index 463d598865..c530f7a7a8 100644 --- a/doc/expressions.texi +++ b/doc/expressions.texi @@ -7,7 +7,7 @@ @c A copy of the license is included in the section entitled "GNU @c Free Documentation License". @c -@c Use @func when refering to a function. +@c Use @func when referring to a function. @c Use @deftypefn for their definitions @macro func{NAME} @code{\NAME\} diff --git a/lib/gtk-contrib/gtkxpaned.c b/lib/gtk-contrib/gtkxpaned.c index 4b98059ee3..d5b9c843e5 100644 --- a/lib/gtk-contrib/gtkxpaned.c +++ b/lib/gtk-contrib/gtkxpaned.c @@ -952,7 +952,7 @@ gtk_xpaned_size_allocate (GtkWidget * widget, GtkAllocation * allocation) xpaned->handle_pos_middle.height); } - /* Now allocate the childen, making sure, when resizing not to + /* Now allocate the children, making sure, when resizing not to * overlap the windows */ if (gtk_widget_get_mapped (widget)) diff --git a/src/data/casereader-translator.c b/src/data/casereader-translator.c index f0411d1fa1..d3388aa68b 100644 --- a/src/data/casereader-translator.c +++ b/src/data/casereader-translator.c @@ -357,7 +357,7 @@ static struct ccase *car_translate (struct ccase *input, void *car_); If DISTINCT_CALLBACK is non-null, then it will be called exactly once for every case containing a distinct value of V. AUX is - an auxilliary pointer passed to DISTINCT_CALLBACK. + an auxiliary pointer passed to DISTINCT_CALLBACK. After this function is called, SUBREADER must not ever again be referenced directly. It will be destroyed automatically diff --git a/src/data/dictionary.c b/src/data/dictionary.c index 6dd1b99f87..413c974fb4 100644 --- a/src/data/dictionary.c +++ b/src/data/dictionary.c @@ -285,7 +285,7 @@ dict_destroy (struct dictionary *d) { if (d != NULL) { - /* In general, we don't want callbacks occuring, if the dictionary + /* In general, we don't want callbacks occurring, if the dictionary is being destroyed */ d->callbacks = NULL ; diff --git a/src/data/sys-file-reader.c b/src/data/sys-file-reader.c index 9d7e392d01..2ad146e880 100644 --- a/src/data/sys-file-reader.c +++ b/src/data/sys-file-reader.c @@ -2986,7 +2986,7 @@ open_text_record (struct sfm_reader *r, } /* Closes TEXT, frees its storage, and issues a final warning - about suppressed warnings if necesary. */ + about suppressed warnings if necessary. */ static void close_text_record (struct sfm_reader *r, struct text_record *text) { diff --git a/src/language/control/loop.c b/src/language/control/loop.c index cece7f68f6..10d57105cc 100644 --- a/src/language/control/loop.c +++ b/src/language/control/loop.c @@ -61,7 +61,7 @@ struct loop_trns /* Iteration limit. */ int max_pass_count; /* Maximum number of passes (-1=unlimited). */ - int pass; /* Number of passes thru the loop so far. */ + int pass; /* Number of passes through the loop so far. */ /* a=a TO b [BY c]. */ struct variable *index_var; /* Index variable. */ diff --git a/src/language/lexer/variable-parser.h b/src/language/lexer/variable-parser.h index 798851d1a7..57b4e47063 100644 --- a/src/language/lexer/variable-parser.h +++ b/src/language/lexer/variable-parser.h @@ -134,7 +134,7 @@ lex_match_variable (struct lexer *lexer, const struct dictionary *dict, const st struct interaction; /* Parse an interaction. - If not successfull return false. + If not successful return false. Otherwise, a newly created interaction will be placed in IACT. It is the caller's responsibility to destroy this interaction. */ diff --git a/src/language/stats/kruskal-wallis.c b/src/language/stats/kruskal-wallis.c index a9c269efed..65ce0868ad 100644 --- a/src/language/stats/kruskal-wallis.c +++ b/src/language/stats/kruskal-wallis.c @@ -193,7 +193,7 @@ kruskal_wallis_execute (const struct dataset *ds, rank->n += dict_get_case_weight (dict, c, &warn); /* If this assertion fires, then either the data wasn't sorted or some other - problem occured */ + problem occurred */ assert (rerr == 0); } diff --git a/src/language/stats/logistic.c b/src/language/stats/logistic.c index b8ebb70cf7..4ab3f6f6db 100644 --- a/src/language/stats/logistic.c +++ b/src/language/stats/logistic.c @@ -598,7 +598,7 @@ run_lr (const struct lr_spec *cmd, struct casereader *input, work.hessian = NULL; /* Get the initial estimates of \beta and their standard errors. - And perform other auxilliary initialisation. */ + And perform other auxiliary initialisation. */ if (! initial_pass (cmd, &work, input)) goto error; diff --git a/src/language/stats/quick-cluster.c b/src/language/stats/quick-cluster.c index bd22fd1800..b171951557 100644 --- a/src/language/stats/quick-cluster.c +++ b/src/language/stats/quick-cluster.c @@ -237,7 +237,7 @@ min_dist_from (const struct Kmeans *kmeans, const struct qc *qc, int which) -/* Calculate the intial cluster centers. */ +/* Calculate the initial cluster centers. */ static void kmeans_initial_centers (struct Kmeans *kmeans, const struct casereader *reader, const struct qc *qc) { diff --git a/src/language/stats/rank.c b/src/language/stats/rank.c index ee835e6b6a..65a0fb8b57 100644 --- a/src/language/stats/rank.c +++ b/src/language/stats/rank.c @@ -162,7 +162,7 @@ try_new_name (const char *new_name, } /* Returns a variable name for storing ranks of a variable named SRC_NAME - accoring to the rank function F. The name chosen will not be one already in + according to the rank function F. The name chosen will not be one already in DICT or NEW_NAMES. If successful, adds the new name to NEW_NAMES and returns the name added. diff --git a/src/language/stats/regression.c b/src/language/stats/regression.c index 5650ca4592..72649ba4ac 100644 --- a/src/language/stats/regression.c +++ b/src/language/stats/regression.c @@ -137,7 +137,7 @@ create_aux_var (struct dataset *ds, const char *prefix) return var; } -/* Auxilliary data for transformation when /SAVE is entered */ +/* Auxiliary data for transformation when /SAVE is entered */ struct save_trans_data { int n_dep_vars; diff --git a/src/language/stats/roc.c b/src/language/stats/roc.c index 73e00f905b..7d13c2c2cb 100644 --- a/src/language/stats/roc.c +++ b/src/language/stats/roc.c @@ -557,7 +557,7 @@ process_group (const struct variable *var, struct casereader *reader, /* Some more indeces into case data */ #define N_POS_EQ 1 /* number of positive cases with values equal to n */ -#define N_POS_GT 2 /* number of postive cases with values greater than n */ +#define N_POS_GT 2 /* number of positive cases with values greater than n */ #define N_NEG_EQ 3 /* number of negative cases with values equal to n */ #define N_NEG_LT 4 /* number of negative cases with values less than n */ diff --git a/src/libpspp/hmap.c b/src/libpspp/hmap.c index 471ff61f6e..f3cbf23a61 100644 --- a/src/libpspp/hmap.c +++ b/src/libpspp/hmap.c @@ -187,7 +187,7 @@ hmap_moved (struct hmap *map, static size_t capacity_to_mask (size_t capacity) { - /* Calculate the minimum mask necesary to support the given + /* Calculate the minimum mask necessary to support the given capacity. */ size_t mask = 0; while (hmap_mask_to_capacity__ (mask) < capacity) diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 380a96ae88..bc0db0b896 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -667,7 +667,7 @@ set_default_encoding (const char *enc) /* Attempts to set the encoding from a locale name - returns true if successfull. + returns true if successful. This function does not (should not!) alter the current locale. */ bool @@ -747,7 +747,7 @@ valid_encoding (const char *enc) /* Return the system local's idea of the - decimal seperator character */ + decimal separator character */ char get_system_decimal (void) { diff --git a/src/libpspp/zip-reader.h b/src/libpspp/zip-reader.h index 81c1a766dd..6277b768e0 100644 --- a/src/libpspp/zip-reader.h +++ b/src/libpspp/zip-reader.h @@ -70,7 +70,7 @@ void zip_reader_destroy (struct zip_reader *zr); /* Return the zip member in the reader ZR, called MEMBER */ struct zip_member *zip_member_open (struct zip_reader *zr, const char *member); -/* Read upto N bytes from ZM, storing them in BUF. +/* Read up to N bytes from ZM, storing them in BUF. Returns the number of bytes read, or -1 on error */ int zip_member_read (struct zip_member *zm, void *buf, size_t n); diff --git a/src/math/categoricals.c b/src/math/categoricals.c index 2227d4bb20..e1bbe1f99b 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -126,7 +126,7 @@ struct interact_params /* An array of integers df_n * df_{n-1} * df_{n-2} ... These are the products of the degrees of freedom for the current - variable and all preceeding variables */ + variable and all preceding variables */ int *df_prod; double *enc_sum; diff --git a/src/ui/gui/psppire-dict.c b/src/ui/gui/psppire-dict.c index 0ee608cade..239f3ce2f3 100644 --- a/src/ui/gui/psppire-dict.c +++ b/src/ui/gui/psppire-dict.c @@ -327,7 +327,7 @@ psppire_dict_generate_name (const PsppireDict *dict, char *name, size_t size) - The string may not contain whitespace. - The first character may not be '$' - The first character may not be a digit - - The final charactor may not be '.' or '_' + - The final character may not be '.' or '_' */ len = snprintf (name, size, _("Var%04d"), d); if (len + 1 >= size) diff --git a/src/ui/gui/psppire-import-assistant.c b/src/ui/gui/psppire-import-assistant.c index 5f8793186b..487c89b68e 100644 --- a/src/ui/gui/psppire-import-assistant.c +++ b/src/ui/gui/psppire-import-assistant.c @@ -1523,11 +1523,11 @@ set_quote_list (GtkComboBox *cb) GtkListStore *list = gtk_list_store_new (1, G_TYPE_STRING); GtkTreeIter iter; gint i; - const gchar *seperator[3] = {"'\"", "\'", "\""}; + const gchar *separator[3] = {"'\"", "\'", "\""}; for (i = 0; i < 3; i++) { - const gchar *s = seperator[i]; + const gchar *s = separator[i]; /* Add a new row to the model */ gtk_list_store_append (list, &iter); diff --git a/tests/data/datasheet-test.c b/tests/data/datasheet-test.c index db21ff33fe..e3dad3b32c 100644 --- a/tests/data/datasheet-test.c +++ b/tests/data/datasheet-test.c @@ -895,7 +895,7 @@ main (int argc, char *argv[]) params.n_widths = 3; params.next_value = 1; - /* Parse comand line. */ + /* Parse command line. */ parser = argv_parser_create (); options = mc_options_create (); mc_options_register_argv_parser (options, parser); diff --git a/tests/language/data-io/matrix-data.at b/tests/language/data-io/matrix-data.at index 67a3787299..f26cbe8642 100644 --- a/tests/language/data-io/matrix-data.at +++ b/tests/language/data-io/matrix-data.at @@ -334,7 +334,7 @@ AT_SETUP([Matrix reader - read integrity]) dnl Check that matrices presented are read correctly. dnl The example below is an unlikely one since all -dnl covariance/correlation matrices must be symetrical +dnl covariance/correlation matrices must be symmetrical dnl but it serves a purpose for this test. AT_DATA([matrix-reader.pspp], [dnl matrix data diff --git a/tests/language/stats/quick-cluster.at b/tests/language/stats/quick-cluster.at index d547dc7656..4580e412d2 100644 --- a/tests/language/stats/quick-cluster.at +++ b/tests/language/stats/quick-cluster.at @@ -173,7 +173,7 @@ AT_CLEANUP AT_SETUP([QUICK CLUSTER with pairwise missing]) dnl This test runs two programs, which are identical except that one -dnl has an extra case with one missing value. Becuase the syntax uses +dnl has an extra case with one missing value. Because the syntax uses dnl NOINITIAL and NOUPDATE, the results should be identical except for dnl the final classification. diff --git a/tests/language/stats/roc.at b/tests/language/stats/roc.at index 34c5b0011f..c1fa369b44 100644 --- a/tests/language/stats/roc.at +++ b/tests/language/stats/roc.at @@ -146,7 +146,7 @@ begin data. 20 1 "" 20 1 "" 22 0 "here and" -22 0 "here is the anomoly" +22 0 "here is the anomaly" 25 1 "" 25 0 "" 30 1 "" -- 2.30.2