Skip to content

Commit 38f3db8

Browse files
committed
Fix more typos in comments (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 2591396 commit 38f3db8

14 files changed

+14
-14
lines changed

ccstruct/rect.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*
3030
**********************************************************************/
3131

32-
TBOX::TBOX( //construtor
32+
TBOX::TBOX( //constructor
3333
const ICOORD pt1, //one corner
3434
const ICOORD pt2 //the other corner
3535
) {

ccstruct/rect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class DLLSYM TBOX { // bounding box
307307
*
308308
**********************************************************************/
309309

310-
inline TBOX::TBOX( // construtor
310+
inline TBOX::TBOX( // constructor
311311
const FCOORD pt // floating centre
312312
) {
313313
bot_left = ICOORD ((inT16) floor (pt.x ()), (inT16) floor (pt.y ()));

ccutil/genericvector.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ class GenericVector {
331331
void init(int size);
332332

333333
// We are assuming that the object generally placed in thie
334-
// vector are small enough that for efficiency it makes sence
334+
// vector are small enough that for efficiency it makes sense
335335
// to start with a larger initial size.
336336
static const int kDefaultVectorSize = 4;
337337
inT32 size_used_;

ccutil/unicharset.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class UNICHARSET {
219219

220220
// Return the UTF8 representation corresponding to the given UNICHAR_ID after
221221
// resolving any private encodings internal to Tesseract. This method is
222-
// preferrable to id_to_unichar for outputting text that will be visible to
222+
// preferable to id_to_unichar for outputting text that will be visible to
223223
// external applications.
224224
const char* const id_to_unichar_ext(UNICHAR_ID id) const;
225225

cube/char_samp.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class CharSamp : public Bmp8 {
8181
label32_ = NULL;
8282
}
8383
if (label32 != NULL) {
84-
// remove any byte order markes if any
84+
// remove any byte order marks if any
8585
if (label32[0] == 0xfeff) {
8686
label32++;
8787
}

textord/alignedblob.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ BLOBNBOX* AlignedBlob::FindAlignedBlob(const AlignedBlobParams& p,
502502
}
503503
if ((p.right_tab && neighbour->leader_on_right()) ||
504504
(!p.right_tab && neighbour->leader_on_left()))
505-
continue; // Neigbours of leaders are not allowed to be used.
505+
continue; // Neighbours of leaders are not allowed to be used.
506506
if (n_x <= x_at_n_y + p.r_align_tolerance &&
507507
n_x >= x_at_n_y - p.l_align_tolerance) {
508508
// Aligned so keep it. If it is a marked tab save it as result,

textord/colpartition.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ int ColPartition::CountOverlappingBoxes(const TBOX& box) {
981981
return overlap_count;
982982
}
983983

984-
// Computes and sets the type_ and first_colum_, last_column_ and column_set_.
984+
// Computes and sets the type_ and first_column_, last_column_ and column_set_.
985985
// resolution refers to the ppi resolution of the image.
986986
void ColPartition::SetPartitionType(int resolution, ColPartitionSet* columns) {
987987
int first_spanned_col = -1;

textord/colpartition.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ class ColPartition : public ELIST2_LINK {
695695
// one partner. This makes block creation simpler.
696696
// If get_desperate is true, goes to more desperate merge methods
697697
// to merge flowing text before breaking partnerships.
698-
void RefinePartners(PolyBlockType type, bool get_desparate,
698+
void RefinePartners(PolyBlockType type, bool get_desperate,
699699
ColPartitionGrid* grid);
700700

701701
// Returns true if this column partition is in the same column as

textord/colpartitiongrid.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ void ColPartitionGrid::FindMergeCandidates(const ColPartition* part,
14381438
}
14391439

14401440
// Smoothes the region type/flow type of the given part by looking at local
1441-
// neigbours and the given image mask. Searches a padded rectangle with the
1441+
// neighbours and the given image mask. Searches a padded rectangle with the
14421442
// padding truncated on one size of the part's box in turn for each side,
14431443
// using the result (if any) that has the least distance to all neighbours
14441444
// that contribute to the decision. This biases in favor of rectangular

textord/colpartitiongrid.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class ColPartitionGrid : public BBGrid<ColPartition,
200200
bool debug, ColPartition_CLIST* candidates);
201201

202202
// Smoothes the region type/flow type of the given part by looking at local
203-
// neigbours and the given image mask. Searches a padded rectangle with the
203+
// neighbours and the given image mask. Searches a padded rectangle with the
204204
// padding truncated on one size of the part's box in turn for each side,
205205
// using the result (if any) that has the least distance to all neighbours
206206
// that contribute to the decision. This biases in favor of rectangular

textord/makerow.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ BOOL8 find_best_dropout_row( //find neighbours
671671
TO_ROW_IT *row_it, //current position
672672
BOOL8 testing_on //correct orientation
673673
) {
674-
inT32 next_index; //of neigbouring row
674+
inT32 next_index; //of neighbouring row
675675
inT32 row_offset; //from current row
676676
inT32 abs_dist; //absolute distance
677677
inT8 row_inc; //increment to row_index

textord/tablerecog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ StructuredTable* TableRecognizer::RecognizeTable(const TBOX& guess) {
740740
table->set_line_grid(line_grid_);
741741
table->set_max_text_height(max_text_height_);
742742

743-
// Try to solve ths simple case, a table with *both*
743+
// Try to solve this simple case, a table with *both*
744744
// vertical and horizontal lines.
745745
if (RecognizeLinedTable(guess, table))
746746
return table;

training/pango_font_info.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ typedef signed int char32;
3333

3434
namespace tesseract {
3535

36-
// Data holder class for a font, intented to avoid having to work with Pango or
36+
// Data holder class for a font, intended to avoid having to work with Pango or
3737
// FontConfig-specific objects directly.
3838
class PangoFontInfo {
3939
public:

wordrec/measure.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ typedef struct
7979
/**********************************************************************
8080
* new_measurement
8181
*
82-
* Initalize a record to hold a measurement of a group of individual
82+
* Initialize a record to hold a measurement of a group of individual
8383
* samples.
8484
**********************************************************************/
8585

0 commit comments

Comments
 (0)