summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2024-08-29 12:35:45 +0200
committerStefan Weil <sw@weilnetz.de>2024-08-29 12:35:45 +0200
commitd0af550bb7c72b6b2ac7169f8c1d948cf1536c3c (patch)
tree61298e86ad5f04556b840fd235007450342b1d63
parentf41e3fa9bcb3090922cdd8aeef07df4c1a905054 (diff)
Fix some typos and grammar in documentation and error message
The typos were found and fixed by `codespell` and `typos`. Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r--doc.go6
-rw-r--r--internal/pipeline/pipeline.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/doc.go b/doc.go
index 9624177..76fe751 100644
--- a/doc.go
+++ b/doc.go
@@ -10,7 +10,7 @@ accompanying README for more details.
Introduction
-The book pipeline is a way to split the different processes that for book OCR
+The book pipeline is a way to split the different processes for book OCR
into small jobs, which can be processed when a computer is ready for them. It
is currently implemented with Amazon's AWS cloud systems, and can scale from
zero to many computers, with jobs being processed faster when more servers are
@@ -57,7 +57,7 @@ be found with lspipeline, like so:
ssh -i key.pem admin@<ip-address> sudo poweroff
The bookpipeline program is run as a service managed by systemd on the
-servers. The system is fully resiliant in the face of unexpected failures.
+servers. The system is fully resilient in the face of unexpected failures.
See the section "How the pipeline works" for details on this. bookpipeline
can be managed like any other systemd service. A few examples:
# show all logs for bookpipeline:
@@ -136,7 +136,7 @@ queuePreNoWipe
This queue works the same as queuePreProc, except that it doesn'T
wipe the pages, only runs the binarisation. It is designed for books
which don't have tricky gutters or similar noise around the edges, but
-do have marginal content which might be inadventently removed by the
+do have marginal content which might be inadvertently removed by the
wiper.
example message: APolishGentleman_MemoirByAdamKruczkiewicz
diff --git a/internal/pipeline/pipeline.go b/internal/pipeline/pipeline.go
index d8beeb9..ae35ec8 100644
--- a/internal/pipeline/pipeline.go
+++ b/internal/pipeline/pipeline.go
@@ -356,7 +356,7 @@ func Analyse(conn Downloader, mkfullpdf bool) func(context.Context, chan string,
if err != nil {
for range toanalyse {
} // consume the rest of the receiving channel so it isn't blocked
- errc <- fmt.Errorf("Error retreiving confidence for %s: %s", path, err)
+ errc <- fmt.Errorf("Error retrieving confidence for %s: %s", path, err)
return
}
base := filepath.Base(path)