mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-07 18:02:40 +08:00
api: Fix typos in comments (all found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
8f465ca01e
commit
f72e65b36e
@ -1660,7 +1660,7 @@ char* TessBaseAPI::GetUNLVText() {
|
|||||||
word->word->space() > 0 &&
|
word->word->space() > 0 &&
|
||||||
!word->word->flag(W_FUZZY_NON) &&
|
!word->word->flag(W_FUZZY_NON) &&
|
||||||
!word->word->flag(W_FUZZY_SP)) {
|
!word->word->flag(W_FUZZY_SP)) {
|
||||||
/* Write a space to separate from preceeding good text */
|
/* Write a space to separate from preceding good text */
|
||||||
*ptr++ = ' ';
|
*ptr++ = ' ';
|
||||||
last_char_was_tilde = false;
|
last_char_was_tilde = false;
|
||||||
}
|
}
|
||||||
|
@ -178,7 +178,7 @@ void TessPDFRenderer::AppendPDFObject(const char *data) {
|
|||||||
AppendString((const char *)data);
|
AppendString((const char *)data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper function to prevent us from accidentaly writing
|
// Helper function to prevent us from accidentally writing
|
||||||
// scientific notation to an HOCR or PDF file. Besides, three
|
// scientific notation to an HOCR or PDF file. Besides, three
|
||||||
// decimal points are all you really need.
|
// decimal points are all you really need.
|
||||||
double prec(double x) {
|
double prec(double x) {
|
||||||
|
@ -227,7 +227,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We have 2 possible sources of pagesegmode: a config file and
|
// We have 2 possible sources of pagesegmode: a config file and
|
||||||
// the command line. For backwards compatability reasons, the
|
// the command line. For backwards compatibility reasons, the
|
||||||
// default in tesseract is tesseract::PSM_SINGLE_BLOCK, but the
|
// default in tesseract is tesseract::PSM_SINGLE_BLOCK, but the
|
||||||
// default for this program is tesseract::PSM_AUTO. We will let
|
// default for this program is tesseract::PSM_AUTO. We will let
|
||||||
// the config file take priority, so the command-line default
|
// the config file take priority, so the command-line default
|
||||||
|
Loading…
Reference in New Issue
Block a user