From 688f8283c5071a91f2ab339cd2c003e12d11be51 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 23 Oct 2024 14:59:15 +0200 Subject: [PATCH] Fix some code comments Signed-off-by: Stefan Weil --- src/api/pagerenderer.cpp | 4 ++-- src/ccstruct/blobbox.cpp | 2 +- src/textord/blkocc.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/pagerenderer.cpp b/src/api/pagerenderer.cpp index 7d672610..cd2d0a5e 100644 --- a/src/api/pagerenderer.cpp +++ b/src/api/pagerenderer.cpp @@ -493,7 +493,7 @@ Pta *FitBaselineIntoLinePolygon(Pta *bottom_pts, Pta *baseline_pts, } num_pts = ptaGetCount(bottom_pts); - // Create a interpolated polygon with stepsize 1 + // Create an interpolated polygon with stepsize 1. for (int index = 0; index < num_pts - 1; ++index) { ptaGetIPt(bottom_pts, index, &x0, &y0); ptaGetIPt(bottom_pts, index + 1, &x1, &y1); @@ -636,7 +636,7 @@ bool TessPAGERenderer::AddImageHandler(TessBaseAPI *api) { "pagecontent.xsd\">\n" "\t if (std::regex_search(api->GetInputName(), std::regex("^(https?|ftp|ssh):"))) { diff --git a/src/ccstruct/blobbox.cpp b/src/ccstruct/blobbox.cpp index 6201a31c..7356fdb4 100644 --- a/src/ccstruct/blobbox.cpp +++ b/src/ccstruct/blobbox.cpp @@ -883,7 +883,7 @@ void vertical_cblob_projection( // project outlines /********************************************************************** * vertical_coutline_projection * - * Compute the vertical projection of a outline from its outlines + * Compute the vertical projection of an outline from its outlines * and add to the given STATS. **********************************************************************/ diff --git a/src/textord/blkocc.cpp b/src/textord/blkocc.cpp index 69e18f6a..60283e74 100644 --- a/src/textord/blkocc.cpp +++ b/src/textord/blkocc.cpp @@ -125,7 +125,7 @@ static void horizontal_cblob_projection( // project outlines /** * horizontal_coutline_projection * - * Compute the horizontal projection of a outline from its outlines + * Compute the horizontal projection of an outline from its outlines * and add to the given STATS. */