From d0af550bb7c72b6b2ac7169f8c1d948cf1536c3c Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 29 Aug 2024 12:35:45 +0200 Subject: [PATCH] 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 --- doc.go | 6 +++--- internal/pipeline/pipeline.go | 2 +- 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@ 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)