Skip to content

Commit e1c387c

Browse files
stweilShreeshrii
authored andcommitted
Fix typo in comments and variable name
Signed-off-by: Stefan Weil <[email protected]>
1 parent bf33301 commit e1c387c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/ccmain/pagesegmain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ int Tesseract::SegmentPage(const STRING* input_file, BLOCK_LIST* blocks,
188188
* of non-uniform linespacing.
189189
*
190190
* If diacritic_blobs is non-null, then diacritics/noise blobs, that would
191-
* confuse layout anaylsis by causing textline overlap, are placed there,
191+
* confuse layout analysis by causing textline overlap, are placed there,
192192
* with the expectation that they will be reassigned to words later and
193193
* noise/diacriticness determined via classification.
194194
*

src/classify/mastertrainer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ MasterTrainer::MasterTrainer(NormalizationMode norm_mode,
5555
: norm_mode_(norm_mode), samples_(fontinfo_table_),
5656
junk_samples_(fontinfo_table_), verify_samples_(fontinfo_table_),
5757
charsetsize_(0),
58-
enable_shape_anaylsis_(shape_analysis),
58+
enable_shape_analysis_(shape_analysis),
5959
enable_replication_(replicate_samples),
6060
fragments_(nullptr), prev_unichar_id_(-1), debug_level_(debug_level) {
6161
}
@@ -205,13 +205,13 @@ void MasterTrainer::LoadPageImages(const char* filename) {
205205

206206
// Cleans up the samples after initial load from the tr files, and prior to
207207
// saving the MasterTrainer:
208-
// Remaps fragmented chars if running shape anaylsis.
208+
// Remaps fragmented chars if running shape analysis.
209209
// Sets up the samples appropriately for class/fontwise access.
210210
// Deletes outlier samples.
211211
void MasterTrainer::PostLoadCleanup() {
212212
if (debug_level_ > 0)
213213
tprintf("PostLoadCleanup...\n");
214-
if (enable_shape_anaylsis_)
214+
if (enable_shape_analysis_)
215215
ReplaceFragmentedSamples();
216216
SampleIterator sample_it;
217217
sample_it.Init(nullptr, nullptr, true, &verify_samples_);

src/classify/mastertrainer.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class MasterTrainer {
103103

104104
// Cleans up the samples after initial load from the tr files, and prior to
105105
// saving the MasterTrainer:
106-
// Remaps fragmented chars if running shape anaylsis.
106+
// Remaps fragmented chars if running shape analysis.
107107
// Sets up the samples appropriately for class/fontwise access.
108108
// Deletes outlier samples.
109109
void PostLoadCleanup();
@@ -284,7 +284,7 @@ class MasterTrainer {
284284
int charsetsize_;
285285
// Flag to indicate that we are running shape analysis and need fragments
286286
// fixing.
287-
bool enable_shape_anaylsis_;
287+
bool enable_shape_analysis_;
288288
// Flag to indicate that sample replication is required.
289289
bool enable_replication_;
290290
// Array of classids of fragments that replace the correctly segmented chars.

src/textord/colfind.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void ColumnFinder::CorrectOrientation(TO_BLOCK* block,
278278
// can be an integer factor reduction of the grey_pix. It represents the
279279
// thresholds that were used to create the binary_pix from the grey_pix.
280280
// If diacritic_blobs is non-null, then diacritics/noise blobs, that would
281-
// confuse layout anaylsis by causing textline overlap, are placed there,
281+
// confuse layout analysis by causing textline overlap, are placed there,
282282
// with the expectation that they will be reassigned to words later and
283283
// noise/diacriticness determined via classification.
284284
// Returns -1 if the user hits the 'd' key in the blocks window while running

0 commit comments

Comments
 (0)