Skip to content

Commit e731324

Browse files
authored
Merge pull request #1841 from stweil/typo
Fix some typos
2 parents 4671e2b + 6412374 commit e731324

File tree

6 files changed

+12
-12
lines changed

6 files changed

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

src/textord/tabfind.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ TabFind::TabFind(int gridsize, const ICOORD& bleft, const ICOORD& tright,
7272
v_it_(&vectors_) {
7373
width_cb_ = nullptr;
7474
v_it_.add_list_after(vlines);
75-
SetVerticalSkewAndParellelize(vertical_x, vertical_y);
75+
SetVerticalSkewAndParallelize(vertical_x, vertical_y);
7676
width_cb_ = NewPermanentTessCallback(this, &TabFind::CommonWidth);
7777
}
7878

@@ -853,7 +853,7 @@ void TabFind::FindAllTabVectors(int min_gutter_width) {
853853
TabVector_IT v_it(&vectors_);
854854
v_it.add_list_after(&dummy_vectors);
855855
// Now use the summed (mean) vertical vector as the direction for everything.
856-
SetVerticalSkewAndParellelize(vertical_x, vertical_y);
856+
SetVerticalSkewAndParallelize(vertical_x, vertical_y);
857857
}
858858

859859
// Helper for FindAllTabVectors finds the vectors of a particular type.
@@ -905,7 +905,7 @@ TabVector* TabFind::FindTabVector(int search_size_multiple,
905905

906906
// Set the vertical_skew_ member from the given vector and refit
907907
// all vectors parallel to the skew vector.
908-
void TabFind::SetVerticalSkewAndParellelize(int vertical_x, int vertical_y) {
908+
void TabFind::SetVerticalSkewAndParallelize(int vertical_x, int vertical_y) {
909909
// Fit the vertical vector into an ICOORD, which is 16 bit.
910910
vertical_skew_.set_with_shrink(vertical_x, vertical_y);
911911
if (textord_debug_tabfind)
@@ -1285,7 +1285,7 @@ bool TabFind::Deskew(TabVector_LIST* hlines, BLOBNBOX_LIST* image_blobs,
12851285
TabVector* d = d_it.data();
12861286
d->Rotate(*deskew);
12871287
}
1288-
SetVerticalSkewAndParellelize(0, 1);
1288+
SetVerticalSkewAndParallelize(0, 1);
12891289
// Rebuild the grid to the new size.
12901290
TBOX grid_box(bleft_, tright_);
12911291
grid_box.rotate_large(*deskew);

src/textord/tabfind.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ class TabFind : public AlignedBlob {
287287

288288
// Set the vertical_skew_ member from the given vector and refit
289289
// all vectors parallel to the skew vector.
290-
void SetVerticalSkewAndParellelize(int vertical_x, int vertical_y);
290+
void SetVerticalSkewAndParallelize(int vertical_x, int vertical_y);
291291

292292
// Sort all the current vectors using the vertical_skew_ vector.
293293
void SortVectors();

0 commit comments

Comments
 (0)