Skip to content

Commit

Permalink
Fix some typos and grammar in documentation and error message
Browse files Browse the repository at this point in the history
The typos were found and fixed by `codespell` and `typos`.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Aug 29, 2024
1 parent f41e3fa commit d0af550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d0af550

Please sign in to comment.