mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Fix some typos
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
8e6af37da2
commit
fbff9362ce
@ -474,7 +474,7 @@ public:
|
||||
* 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.
|
||||
*
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -212,7 +212,7 @@ private:
|
||||
// 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
|
||||
|
@ -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
|
||||
|
@ -142,7 +142,7 @@ private:
|
||||
// | 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
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
@ -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) {
|
||||
|
@ -329,7 +329,7 @@ protected:
|
||||
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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
@ -52,7 +52,7 @@ public:
|
||||
// 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);
|
||||
|
||||
@ -246,7 +246,7 @@ public:
|
||||
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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user