mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
dict: Fix typos in comments and strings
All of them were found by codespell. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
72ee298e4d
commit
e9cf8cf95e
@ -33,7 +33,7 @@ static const int kMinAbsoluteGarbageWordLength = 10;
|
||||
static const float kMinAbsoluteGarbageAlphanumFrac = 0.5f;
|
||||
|
||||
const int case_state_table[6][4] = { {
|
||||
/* 0. Begining of word */
|
||||
/* 0. Beginning of word */
|
||||
/* P U L D */
|
||||
/* -1. Error on case */
|
||||
0, 1, 5, 4
|
||||
|
@ -447,7 +447,7 @@ class SquishedDawg : public Dawg {
|
||||
EDGE_REF edge = node;
|
||||
if (!edge_occupied(edge) || edge == NO_EDGE) return;
|
||||
assert(forward_edge(edge)); // we don't expect any backward edges to
|
||||
do { // be present when this funciton is called
|
||||
do { // be present when this function is called
|
||||
if (!word_end || end_of_word_from_edge_rec(edges_[edge])) {
|
||||
vec->push_back(NodeChild(unichar_id_from_edge_rec(edges_[edge]), edge));
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ Dict::Dict(CCUtil* ccutil)
|
||||
" when there is a need to explore all segmentations",
|
||||
getCCUtil()->params()),
|
||||
BOOL_MEMBER(save_raw_choices, false,
|
||||
"Deprecated- backward compatablity only",
|
||||
"Deprecated- backward compatibility only",
|
||||
getCCUtil()->params()),
|
||||
INT_MEMBER(tessedit_truncate_wordchoice_log, 10,
|
||||
"Max words to keep in list",
|
||||
|
@ -614,7 +614,7 @@ class Dict {
|
||||
"Make AcceptableChoice() always return false. Useful"
|
||||
" when there is a need to explore all segmentations");
|
||||
BOOL_VAR_H(save_raw_choices, false,
|
||||
"Deprecated- backward compatability only");
|
||||
"Deprecated- backward compatibility only");
|
||||
INT_VAR_H(tessedit_truncate_wordchoice_log, 10, "Max words to keep in list");
|
||||
STRING_VAR_H(word_to_debug, "", "Word for which stopper debug information"
|
||||
" should be printed to stdout");
|
||||
|
@ -303,7 +303,7 @@ void Dict::append_choices(
|
||||
*
|
||||
* The given prev_char_frag_info contains:
|
||||
* - fragment: if not NULL contains information about immediately
|
||||
* preceeding fragmented character choice
|
||||
* preceding fragmented character choice
|
||||
* - num_fragments: number of fragments that have been used so far
|
||||
* to construct a character
|
||||
* - certainty: certainty of the current choice or minimum
|
||||
|
Loading…
Reference in New Issue
Block a user