mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Fix some typos (most found and fixed by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
41f50b19bb
commit
28a521fec2
@ -36,7 +36,7 @@ Design notes from Ken Sharp, with light editing.
|
||||
|
||||
We think one solution is a font with a single glyph (.notdef) and a
|
||||
CIDToGIDMap which maps all the CIDs to 0. That map would then be
|
||||
stored as a stream in the PDF file, and when flate compressed should
|
||||
stored as a stream in the PDF file, and when flat compressed should
|
||||
be pretty small. The font, of course, will be approximately the same
|
||||
size as the one you currently use.
|
||||
|
||||
|
@ -1102,7 +1102,7 @@ bool EquationDetect::ExpandSeed(ColPartition* seed) {
|
||||
|
||||
// Merge all partitions in parts_to_merge with seed. We first remove seed
|
||||
// from part_grid_ as its bounding box is going to expand. Then we add it
|
||||
// back after it aborbs all parts_to_merge parititions.
|
||||
// back after it absorbs all parts_to_merge partitions.
|
||||
part_grid_->RemoveBBox(seed);
|
||||
for (int i = 0; i < parts_to_merge.size(); ++i) {
|
||||
ColPartition* part = parts_to_merge[i];
|
||||
|
@ -181,7 +181,7 @@ class EquationDetect : public EquationDetectBase {
|
||||
bool ExpandSeed(ColPartition* seed);
|
||||
|
||||
// Starting from the seed position, we search the part_grid_
|
||||
// horizontally/vertically, find all parititions that can be
|
||||
// horizontally/vertically, find all partitions that can be
|
||||
// merged with seed, remove them from part_grid_, and put them into
|
||||
// parts_to_merge.
|
||||
void ExpandSeedHorizontal(const bool search_left,
|
||||
|
@ -958,7 +958,7 @@ class FPAnalyzer {
|
||||
std::vector<FPRow> rows_;
|
||||
unsigned num_tall_rows_;
|
||||
unsigned num_bad_rows_;
|
||||
// TODO: num_empty_rows_ is incremented, but never used overwise.
|
||||
// TODO: num_empty_rows_ is incremented, but never used otherwise.
|
||||
unsigned num_empty_rows_;
|
||||
unsigned max_chars_per_row_;
|
||||
};
|
||||
|
@ -622,7 +622,7 @@ void ColPartitionSet::AddPartition(ColPartition* new_part,
|
||||
// Coverage is split into good and bad. Good coverage is provided by
|
||||
// ColPartitions of a frequent width (according to the callback function
|
||||
// provided by TabFinder::WidthCB, which accesses stored statistics on the
|
||||
// widths of ColParititions) and bad coverage is provided by all other
|
||||
// widths of ColPartitions) and bad coverage is provided by all other
|
||||
// ColPartitions, even if they have tab vectors at both sides. Thus:
|
||||
// |-----------------------------------------------------------------|
|
||||
// | Double width heading |
|
||||
|
@ -136,7 +136,7 @@ class ColPartitionSet : public ELIST_LINK {
|
||||
// Coverage is split into good and bad. Good coverage is provided by
|
||||
// ColPartitions of a frequent width (according to the callback function
|
||||
// provided by TabFinder::WidthCB, which accesses stored statistics on the
|
||||
// widths of ColParititions) and bad coverage is provided by all other
|
||||
// widths of ColPartitions) and bad coverage is provided by all other
|
||||
// ColPartitions, even if they have tab vectors at both sides. Thus:
|
||||
// |-----------------------------------------------------------------|
|
||||
// | Double width heading |
|
||||
|
@ -135,7 +135,7 @@ void SetBlobStrokeWidth(Pix* pix, BLOBNBOX* blob) {
|
||||
}
|
||||
pixDestroy(&dist_pix);
|
||||
// Store the horizontal and vertical width in the blob, keeping both
|
||||
// widths if there is enough information, otherwse only the one with
|
||||
// widths if there is enough information, otherwise only the one with
|
||||
// the most samples.
|
||||
// If there are insufficient samples, store zero, rather than using
|
||||
// 2*area/perimeter, as the numbers that gives do not match the numbers
|
||||
|
@ -27,7 +27,7 @@ namespace {
|
||||
|
||||
class IntFeatureMapTest : public testing::Test {
|
||||
public:
|
||||
// Expects that the given vector has continguous integer values in the
|
||||
// Expects that the given vector has contiguous integer values in the
|
||||
// range [start, end).
|
||||
void ExpectContiguous(const GenericVector<int>& v, int start, int end) {
|
||||
for (int i = start; i < end; ++i) {
|
||||
|
@ -699,6 +699,6 @@ TEST(ParagraphsTest, IndexPageTest) {
|
||||
TestParagraphDetection(kNewZealandIndex, ABSL_ARRAYSIZE(kNewZealandIndex));
|
||||
}
|
||||
|
||||
// TOOO(eger): Add some right-to-left examples, and fix the algorithm as needed.
|
||||
// TODO(eger): Add some right-to-left examples, and fix the algorithm as needed.
|
||||
|
||||
} // namespace
|
||||
|
Loading…
Reference in New Issue
Block a user