From 9244e315744932ffd62b2f70a6b6f6f35745c471 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Thu, 3 May 2018 16:20:36 +0200 Subject: [PATCH] fixed a few spelling errors, mostly in comments and debug messages --- src/common/textsplit.cpp | 2 +- src/doc/man/xadump.1 | 2 +- src/internfile/Filter.h | 12 ++++++------ src/internfile/mh_mbox.cpp | 2 +- src/qtgui/preview_w.cpp | 2 +- src/qtgui/xmltosd.h | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/common/textsplit.cpp b/src/common/textsplit.cpp index ae85127a..c5b47d27 100644 --- a/src/common/textsplit.cpp +++ b/src/common/textsplit.cpp @@ -530,7 +530,7 @@ bool TextSplit::text_to_words(const string &in) nonalnumcnt++; if (c == (unsigned int)-1) { - LOGERR("Textsplit: error occured while scanning UTF-8 string\n"); + LOGERR("Textsplit: error occurred while scanning UTF-8 string\n"); return false; } diff --git a/src/doc/man/xadump.1 b/src/doc/man/xadump.1 index 7edceb8f..946186f5 100644 --- a/src/doc/man/xadump.1 +++ b/src/doc/man/xadump.1 @@ -142,7 +142,7 @@ option will list the whole index term list. can be set to precede each term with its occurrence count (only if no docid is specified). .B \-n -can be set to ommit the enclosing brackets. +can be set to omit the enclosing brackets. .B \-l can be set to skip prefixed terms. .B \-r diff --git a/src/internfile/Filter.h b/src/internfile/Filter.h index 5256ffa9..841175ce 100644 --- a/src/internfile/Filter.h +++ b/src/internfile/Filter.h @@ -105,7 +105,7 @@ namespace Dijon * Filter object is destroyed, as some filters may not need to * do a deep copy of the data. * Call next_document() to position the filter onto the first document. - * Returns false if this input is not supported or an error occured. + * Returns false if this input is not supported or an error occurred. */ virtual bool set_document_data(const std::string& mtype, const char *data_ptr, @@ -113,21 +113,21 @@ namespace Dijon /** (Re)initializes the filter with the given data. * Call next_document() to position the filter onto the first document. - * Returns false if this input is not supported or an error occured. + * Returns false if this input is not supported or an error occurred. */ virtual bool set_document_string(const std::string& mtype, const std::string &data_str) = 0; /** (Re)initializes the filter with the given file. * Call next_document() to position the filter onto the first document. - * Returns false if this input is not supported or an error occured. + * Returns false if this input is not supported or an error occurred. */ virtual bool set_document_file(const std::string& mtype, const std::string &file_path) = 0; /** (Re)initializes the filter with the given URI. * Call next_document() to position the filter onto the first document. - * Returns false if this input is not supported or an error occured. + * Returns false if this input is not supported or an error occurred. */ virtual bool set_document_uri(const std::string& mtype, const std::string &uri) = 0; @@ -147,7 +147,7 @@ namespace Dijon /** Returns true if there are nested documents left to extract. * Returns false if the end of the parent document was reached - * or an error occured. + * or an error occurred. */ virtual bool has_documents(void) const = 0; @@ -164,7 +164,7 @@ namespace Dijon // Accessing documents' contents. - /// Returns the message for the most recent error that has occured. + /// Returns the message for the most recent error that has occurred. virtual std::string get_error(void) const = 0; /** Returns a dictionary of metadata extracted from the current document. diff --git a/src/internfile/mh_mbox.cpp b/src/internfile/mh_mbox.cpp index 9a078f22..9f4700d4 100644 --- a/src/internfile/mh_mbox.cpp +++ b/src/internfile/mh_mbox.cpp @@ -493,7 +493,7 @@ bool MimeHandlerMbox::next_document() // Non-empty line with empty line flag set, reset flag // and check regex. if (!(m_quirks & MBOXQUIRK_TBIRD)) { - // Tbird sometimes omits the empty line, so avoid + // Tbird sometimes ommits the empty line, so avoid // resetting state (initially true) and hope for // the best hademptyline = false; diff --git a/src/qtgui/preview_w.cpp b/src/qtgui/preview_w.cpp index 2ae2f0f0..c2727649 100644 --- a/src/qtgui/preview_w.cpp +++ b/src/qtgui/preview_w.cpp @@ -750,7 +750,7 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum) } } } else { - LOGDEB("Preview: no hilighting, loading " << lthr.fdoc.text.size() << + LOGDEB("Preview: no highlighting, loading " << lthr.fdoc.text.size() << " bytes\n"); // No plaintorich() call. In this case, either the text is // html and the html quoting is hopefully correct, or it's diff --git a/src/qtgui/xmltosd.h b/src/qtgui/xmltosd.h index 143ac89c..5f253d78 100644 --- a/src/qtgui/xmltosd.h +++ b/src/qtgui/xmltosd.h @@ -26,7 +26,7 @@ * * * - * AND|OR + * AND|OR * * [] * AND|OR|FN|PH|NE