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++;
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;
}

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
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

View File

@ -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.

View File

@ -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;

View File

@ -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

View File

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