Skip to content

Commit 28a521f

Browse files
committed
Fix some typos (most found and fixed by codespell)
Signed-off-by: Stefan Weil <[email protected]>
1 parent 41f50b1 commit 28a521f

9 files changed

+9
-9
lines changed

src/api/pdfrenderer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Design notes from Ken Sharp, with light editing.
3636
3737
We think one solution is a font with a single glyph (.notdef) and a
3838
CIDToGIDMap which maps all the CIDs to 0. That map would then be
39-
stored as a stream in the PDF file, and when flate compressed should
39+
stored as a stream in the PDF file, and when flat compressed should
4040
be pretty small. The font, of course, will be approximately the same
4141
size as the one you currently use.
4242

src/ccmain/equationdetect.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ bool EquationDetect::ExpandSeed(ColPartition* seed) {
11021102

11031103
// Merge all partitions in parts_to_merge with seed. We first remove seed
11041104
// from part_grid_ as its bounding box is going to expand. Then we add it
1105-
// back after it aborbs all parts_to_merge parititions.
1105+
// back after it absorbs all parts_to_merge partitions.
11061106
part_grid_->RemoveBBox(seed);
11071107
for (int i = 0; i < parts_to_merge.size(); ++i) {
11081108
ColPartition* part = parts_to_merge[i];

src/ccmain/equationdetect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class EquationDetect : public EquationDetectBase {
181181
bool ExpandSeed(ColPartition* seed);
182182

183183
// Starting from the seed position, we search the part_grid_
184-
// horizontally/vertically, find all parititions that can be
184+
// horizontally/vertically, find all partitions that can be
185185
// merged with seed, remove them from part_grid_, and put them into
186186
// parts_to_merge.
187187
void ExpandSeedHorizontal(const bool search_left,

src/textord/cjkpitch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ class FPAnalyzer {
958958
std::vector<FPRow> rows_;
959959
unsigned num_tall_rows_;
960960
unsigned num_bad_rows_;
961-
// TODO: num_empty_rows_ is incremented, but never used overwise.
961+
// TODO: num_empty_rows_ is incremented, but never used otherwise.
962962
unsigned num_empty_rows_;
963963
unsigned max_chars_per_row_;
964964
};

src/textord/colpartitionset.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ void ColPartitionSet::AddPartition(ColPartition* new_part,
622622
// Coverage is split into good and bad. Good coverage is provided by
623623
// ColPartitions of a frequent width (according to the callback function
624624
// provided by TabFinder::WidthCB, which accesses stored statistics on the
625-
// widths of ColParititions) and bad coverage is provided by all other
625+
// widths of ColPartitions) and bad coverage is provided by all other
626626
// ColPartitions, even if they have tab vectors at both sides. Thus:
627627
// |-----------------------------------------------------------------|
628628
// | Double width heading |

src/textord/colpartitionset.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class ColPartitionSet : public ELIST_LINK {
136136
// Coverage is split into good and bad. Good coverage is provided by
137137
// ColPartitions of a frequent width (according to the callback function
138138
// provided by TabFinder::WidthCB, which accesses stored statistics on the
139-
// widths of ColParititions) and bad coverage is provided by all other
139+
// widths of ColPartitions) and bad coverage is provided by all other
140140
// ColPartitions, even if they have tab vectors at both sides. Thus:
141141
// |-----------------------------------------------------------------|
142142
// | Double width heading |

src/textord/tordmain.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void SetBlobStrokeWidth(Pix* pix, BLOBNBOX* blob) {
135135
}
136136
pixDestroy(&dist_pix);
137137
// Store the horizontal and vertical width in the blob, keeping both
138-
// widths if there is enough information, otherwse only the one with
138+
// widths if there is enough information, otherwise only the one with
139139
// the most samples.
140140
// If there are insufficient samples, store zero, rather than using
141141
// 2*area/perimeter, as the numbers that gives do not match the numbers

unittest/intfeaturemap_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace {
2727

2828
class IntFeatureMapTest : public testing::Test {
2929
public:
30-
// Expects that the given vector has continguous integer values in the
30+
// Expects that the given vector has contiguous integer values in the
3131
// range [start, end).
3232
void ExpectContiguous(const GenericVector<int>& v, int start, int end) {
3333
for (int i = start; i < end; ++i) {

unittest/paragraphs_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,6 @@ TEST(ParagraphsTest, IndexPageTest) {
699699
TestParagraphDetection(kNewZealandIndex, ABSL_ARRAYSIZE(kNewZealandIndex));
700700
}
701701

702-
// TOOO(eger): Add some right-to-left examples, and fix the algorithm as needed.
702+
// TODO(eger): Add some right-to-left examples, and fix the algorithm as needed.
703703

704704
} // namespace

0 commit comments

Comments
 (0)