Skip to content

Commit

Permalink
Fix some typos (partially found by codespell)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 24, 2023
1 parent 1569e50 commit c7a55c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake-win64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: |
$git_info=$(git describe --tags HEAD)
echo "version=${git_info}" >> $env:GITHUB_OUTPUT
- name: Setup Instalation Location
- name: Setup Installation Location
run: |
mkdir ${{env.ILOC}}
- name: Uninstall Perl
Expand Down
2 changes: 1 addition & 1 deletion include/tesseract/ocrclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct EANYCODE_CHAR { /*single character */
// is UTF8 which means that ASCII characters will come out as one structure
// but other characters will be returned in two or more instances of this
// structure with a single byte of the UTF8 code in each, but each will have
// the same bounding box. Programs which want to handle languagues with
// the same bounding box. Programs which want to handle languages with
// different characters sets will need to handle extended characters
// appropriately, but *all* code needs to be prepared to receive UTF8 coded
// characters for characters such as bullet and fancy quotes.
Expand Down
2 changes: 1 addition & 1 deletion src/ccmain/resultiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void ResultIterator::CalculateBlobOrder(std::vector<int> *blob_indices) const {
for (int i = 0; i < word_length_; i++) {
letter_types.push_back(it_->word()->SymbolDirection(i));
}
// Convert a single separtor sandwiched between two EN's into an EN.
// Convert a single separator sandwiched between two ENs into an EN.
for (int i = 0; i + 2 < word_length_; i++) {
if (letter_types[i] == U_EURO_NUM && letter_types[i + 2] == U_EURO_NUM &&
(letter_types[i + 1] == U_EURO_NUM_SEP || letter_types[i + 1] == U_COMMON_NUM_SEP)) {
Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/stepblob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int32_t C_BLOB::outer_area() { // area
* C_BLOB::count_transitions
*
* Return the total x and y maxes and mins in the blob.
* Chlid outlines are not counted.
* Child outlines are not counted.
**********************************************************************/

int32_t C_BLOB::count_transitions( // area
Expand Down
4 changes: 2 additions & 2 deletions src/dict/dict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Dict::Dict(CCUtil *ccutil)
" for each dict char above small word size.",
getCCUtil()->params())
, double_MEMBER(stopper_allowable_character_badness, 3.0,
"Max certaintly variation allowed in a word (in sigma)", getCCUtil()->params())
"Max certainty variation allowed in a word (in sigma)", getCCUtil()->params())
, INT_MEMBER(stopper_debug_level, 0, "Stopper debug level", getCCUtil()->params())
, BOOL_MEMBER(stopper_no_acceptable_choices, false,
"Make AcceptableChoice() always return false. Useful"
Expand Down Expand Up @@ -171,7 +171,7 @@ Dict::~Dict() {

DawgCache *Dict::GlobalDawgCache() {
// This global cache (a singleton) will outlive every Tesseract instance
// (even those that someone else might declare as global statics).
// (even those that someone else might declare as global static variables).
static DawgCache cache;
return &cache;
}
Expand Down

0 comments on commit c7a55c1

Please sign in to comment.