Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Feb 22, 2024
1 parent 8e6af37 commit fbff936
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion include/tesseract/baseapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ class TESS_API TessBaseAPI {
* timeout_millisec terminates processing if any single page
* takes too long. Set to 0 for unlimited time.
*
* renderer is responible for creating the output. For example,
* renderer is responsible for creating the output. For example,
* use the TessTextRenderer if you want plaintext output, or
* the TessPDFRender to produce searchable PDF.
*
Expand Down
2 changes: 1 addition & 1 deletion src/ccmain/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ bool Tesseract::ReassignDiacritics(int pass, PAGE_RES_IT *pr_it, bool *make_next
}
}
if (debug_noise_removal) {
tprintf("Used %d/%d overlapped %d/%d non-overlaped diacritics on word:", num_overlapped_used,
tprintf("Used %d/%d overlapped %d/%d non-overlapped diacritics on word:", num_overlapped_used,
num_overlapped, non_overlapped_used, non_overlapped);
real_word->bounding_box().print();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/blobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ TBLOB *TBLOB::ClassifyNormalizeIfNeeded() const {
rotated_blob = new TBLOB(*this);
const FCOORD &rotation = denorm_.block()->classify_rotation();
// Move the rotated blob back to the same y-position so that we
// can still distinguish similar glyphs with differeny y-position.
// can still distinguish similar glyphs with different y-position.
float target_y =
kBlnBaselineOffset + (rotation.y() > 0 ? x_middle - box.left() : box.right() - x_middle);
rotated_blob->Normalize(nullptr, &rotation, &denorm_, x_middle, y_middle, 1.0f, 1.0f, 0.0f,
Expand Down
2 changes: 1 addition & 1 deletion src/classify/shapetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class TESS_API Shape {
// Flag indicates that the unichars are sorted, allowing faster set
// operations with another shape.
bool unichars_sorted_ = false;
// If this Shape is part of a ShapeTable the destiation_index_ is the index
// If this Shape is part of a ShapeTable the destination_index_ is the index
// of some other shape in the ShapeTable with which this shape is merged.
int destination_index_ = 0;
// Array of unichars, each with a set of fonts. Each unichar has at most
Expand Down
2 changes: 1 addition & 1 deletion src/textord/colpartitionset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ void ColPartitionSet::AddPartition(ColPartition *new_part,
// | Double width heading |
// |-----------------------------------------------------------------|
// |-------------------------------| |-------------------------------|
// | Common width ColParition | | Common width ColPartition |
// | Common width ColPartition | | Common width ColPartition |
// |-------------------------------| |-------------------------------|
// the layout with two common-width columns has better coverage than the
// double width heading, because the coverage is "good," even though less in
Expand Down
2 changes: 1 addition & 1 deletion src/textord/colpartitionset.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class ColPartitionSet : public ELIST_LINK {
// | Double width heading |
// |-----------------------------------------------------------------|
// |-------------------------------| |-------------------------------|
// | Common width ColParition | | Common width ColPartition |
// | Common width ColPartition | | Common width ColPartition |
// |-------------------------------| |-------------------------------|
// the layout with two common-width columns has better coverage than the
// double width heading, because the coverage is "good," even though less in
Expand Down
2 changes: 1 addition & 1 deletion src/textord/edgblob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ C_OUTLINE_LIST *OL_BUCKETS::scan_next(decltype(buckets)::iterator in_it) {

int32_t OL_BUCKETS::outline_complexity(C_OUTLINE *outline, // parent outline
int32_t max_count, // max output
int16_t depth // recurion depth
int16_t depth // recursion depth
) {
TDimension xmin, xmax; // coord limits
TDimension ymin, ymax;
Expand Down
2 changes: 1 addition & 1 deletion src/textord/strokewidth.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef TESSERACT_TEXTORD_STROKEWIDTH_H_
#define TESSERACT_TEXTORD_STROKEWIDTH_H_

#include "blobbox.h" // BlobNeighourDir.
#include "blobbox.h" // BlobNeighbourDir.
#include "blobgrid.h" // Base class.
#include "colpartitiongrid.h"
#include "textlineprojection.h"
Expand Down
2 changes: 1 addition & 1 deletion src/textord/tablefind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,7 @@ void TableFinder::GrowTableToIncludeLines(const TBOX &table_box,
}

// Checks whether the horizontal line belong to the table by looking at the
// side spacing of extra ColParitions that will be included in the table
// side spacing of extra ColPartitions that will be included in the table
// due to expansion
bool TableFinder::HLineBelongsToTable(const ColPartition &part,
const TBOX &table_box) {
Expand Down
2 changes: 1 addition & 1 deletion src/textord/tablefind.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class TESS_API TableFinder {
void GrowTableToIncludeLines(const TBOX &table_box, const TBOX &search_range,
TBOX *result_box);
// Checks whether the horizontal line belong to the table by looking at the
// side spacing of extra ColParitions that will be included in the table
// side spacing of extra ColPartitions that will be included in the table
// due to expansion
bool HLineBelongsToTable(const ColPartition &part, const TBOX &table_box);

Expand Down
2 changes: 1 addition & 1 deletion src/textord/textlineprojection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <allheaders.h>
#include "bbgrid.h" // Base class.
#include "blobbox.h" // BlobNeighourDir.
#include "blobbox.h" // BlobNeighbourDir.
#include "blobs.h"
#include "colpartition.h"
#include "helpers.h" // for IntCastRounded
Expand Down
2 changes: 1 addition & 1 deletion src/training/unicharset/normstrngs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static bool is_single_quote(const char32 ch) {
0x2018, // left single quotation mark (English, others)
0x2019, // right single quotation mark (Danish, Finnish, Swedish, Norw.)
// We may have to introduce a comma set with 0x201a
0x201B, // single high-reveresed-9 quotation mark (PropList.txt)
0x201B, // single high-reversed-9 quotation mark (PropList.txt)
0x2032, // prime
0x300C, // left corner bracket (East Asian languages)
0xFF07, // fullwidth apostrophe
Expand Down
2 changes: 1 addition & 1 deletion src/wordrec/associate.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace tesseract {

class WERD_RES;

// Statisitcs about character widths, gaps and seams.
// Statistics about character widths, gaps and seams.
struct AssociateStats {
AssociateStats() {
Clear();
Expand Down
2 changes: 1 addition & 1 deletion src/wordrec/tface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int Wordrec::end_recog() {
* This function holds any necessary post processing for the Wise Owl
* program.
*/
void Wordrec::program_editdown(int32_t elasped_time) {
void Wordrec::program_editdown(int32_t elapsed_time) {
#ifndef DISABLED_LEGACY_ENGINE
EndAdaptiveClassifier();
#endif // ndef DISABLED_LEGACY_ENGINE
Expand Down
4 changes: 2 additions & 2 deletions src/wordrec/wordrec.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class TESS_API Wordrec : public Classify {
// tface.cpp
void program_editup(const std::string &textbase, TessdataManager *init_classifier,
TessdataManager *init_dict);
void program_editdown(int32_t elasped_time);
void program_editdown(int32_t elapsed_time);
int end_recog();
int dict_word(const WERD_CHOICE &word);

Expand Down Expand Up @@ -246,7 +246,7 @@ class TESS_API Wordrec : public Classify {
void program_editup(const std::string &textbase, TessdataManager *init_classifier,
TessdataManager *init_dict);
void cc_recog(WERD_RES *word);
void program_editdown(int32_t elasped_time);
void program_editdown(int32_t elapsed_time);
void set_pass1();
void set_pass2();
int end_recog();
Expand Down
2 changes: 1 addition & 1 deletion unittest/unicharcompress_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ TEST_F(UnicharcompressTest, DoesLigaturesWithDoubles) {
LoadUnicharset("por.unicharset");
ExpectCorrect("por");
// Check that any unichar-id that is encoded with multiple codes has the
// correct encoded_nulll_char_ in between.
// correct encoded_null_char_ in between.
for (int u = 0; u <= unicharset_.size(); ++u) {
RecodedCharID code;
int len = compressed_.EncodeUnichar(u, &code);
Expand Down

0 comments on commit fbff936

Please sign in to comment.