fixed a few spelling errors, mostly in comments and debug messages

This commit is contained in:
Jean-Francois Dockes 2018-05-03 16:20:36 +02:00
parent 7eaa23a4e4
commit 9244e31574
6 changed files with 11 additions and 11 deletions

View File

@ -530,7 +530,7 @@ bool TextSplit::text_to_words(const string &in)
nonalnumcnt++; nonalnumcnt++;
if (c == (unsigned int)-1) { 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; return false;
} }

View File

@ -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 can be set to precede each term with its occurrence count (only if no
docid is specified). docid is specified).
.B \-n .B \-n
can be set to ommit the enclosing brackets. can be set to omit the enclosing brackets.
.B \-l .B \-l
can be set to skip prefixed terms. can be set to skip prefixed terms.
.B \-r .B \-r

View File

@ -105,7 +105,7 @@ namespace Dijon
* Filter object is destroyed, as some filters may not need to * Filter object is destroyed, as some filters may not need to
* do a deep copy of the data. * do a deep copy of the data.
* Call next_document() to position the filter onto the first document. * 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, virtual bool set_document_data(const std::string& mtype,
const char *data_ptr, const char *data_ptr,
@ -113,21 +113,21 @@ namespace Dijon
/** (Re)initializes the filter with the given data. /** (Re)initializes the filter with the given data.
* Call next_document() to position the filter onto the first document. * 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, virtual bool set_document_string(const std::string& mtype,
const std::string &data_str) = 0; const std::string &data_str) = 0;
/** (Re)initializes the filter with the given file. /** (Re)initializes the filter with the given file.
* Call next_document() to position the filter onto the first document. * 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, virtual bool set_document_file(const std::string& mtype,
const std::string &file_path) = 0; const std::string &file_path) = 0;
/** (Re)initializes the filter with the given URI. /** (Re)initializes the filter with the given URI.
* Call next_document() to position the filter onto the first document. * 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, virtual bool set_document_uri(const std::string& mtype,
const std::string &uri) = 0; const std::string &uri) = 0;
@ -147,7 +147,7 @@ namespace Dijon
/** Returns true if there are nested documents left to extract. /** Returns true if there are nested documents left to extract.
* Returns false if the end of the parent document was reached * 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; virtual bool has_documents(void) const = 0;
@ -164,7 +164,7 @@ namespace Dijon
// Accessing documents' contents. // 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; virtual std::string get_error(void) const = 0;
/** Returns a dictionary of metadata extracted from the current document. /** Returns a dictionary of metadata extracted from the current document.

View File

@ -493,7 +493,7 @@ bool MimeHandlerMbox::next_document()
// Non-empty line with empty line flag set, reset flag // Non-empty line with empty line flag set, reset flag
// and check regex. // and check regex.
if (!(m_quirks & MBOXQUIRK_TBIRD)) { 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 // resetting state (initially true) and hope for
// the best // the best
hademptyline = false; hademptyline = false;

View File

@ -750,7 +750,7 @@ bool Preview::loadDocInCurrentTab(const Rcl::Doc &idoc, int docnum)
} }
} }
} else { } else {
LOGDEB("Preview: no hilighting, loading " << lthr.fdoc.text.size() << LOGDEB("Preview: no highlighting, loading " << lthr.fdoc.text.size() <<
" bytes\n"); " bytes\n");
// No plaintorich() call. In this case, either the text is // No plaintorich() call. In this case, either the text is
// html and the html quoting is hopefully correct, or it's // html and the html quoting is hopefully correct, or it's

View File

@ -26,7 +26,7 @@
* *
* <SD> <!-- Search Data --> * <SD> <!-- Search Data -->
* <CL> <!-- Clause List --> * <CL> <!-- Clause List -->
* <CLT>AND|OR</CLT> <!-- conjunction AND is default, omitted --> * <CLT>AND|OR</CLT> <!-- conjunction AND is default, ommitted -->
* <C> <!-- Clause --> * <C> <!-- Clause -->
* [<NEG/>] <!-- Possible negation --> * [<NEG/>] <!-- Possible negation -->
* <CT>AND|OR|FN|PH|NE</CT> <!-- Clause type --> * <CT>AND|OR|FN|PH|NE</CT> <!-- Clause type -->