summaryrefslogtreecommitdiff
path: root/hocrtotxt
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-10-08 12:52:33 +0100
committerNick White <git@njw.name>2019-10-08 12:52:33 +0100
commit7482157a03ed3e9d7f45e54a126b391001f34948 (patch)
tree52f87b9ca159fe4c04a0349de95ea9de82692b3c /hocrtotxt
parentd43c11bf653bfe3c1ad1ed277f1ec08bf155cf98 (diff)
Separate out bookpipeline from catch-all go.git repo, and rename to rescribe.xyz/bookpipeline
The dependencies from the go.git repo will follow in due course.
Diffstat (limited to 'hocrtotxt')
-rw-r--r--hocrtotxt/main.go30
1 files changed, 0 insertions, 30 deletions
diff --git a/hocrtotxt/main.go b/hocrtotxt/main.go
deleted file mode 100644
index 6821a9e..0000000
--- a/hocrtotxt/main.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package main
-
-import (
- "flag"
- "fmt"
- "log"
- "os"
-
- "rescribe.xyz/go.git/lib/hocr"
-)
-
-func main() {
- flag.Usage = func() {
- fmt.Fprintf(os.Stderr, "Usage: hocrtotxt hocrfile\n")
- fmt.Fprintf(os.Stderr, "Prints the text from a hocr file.\n")
- flag.PrintDefaults()
- }
- flag.Parse()
- if flag.NArg() != 1 {
- flag.Usage()
- os.Exit(1)
- }
-
- text, err := hocr.GetText(flag.Arg(0))
- if err != nil {
- log.Fatal(err)
- }
-
- fmt.Printf("%s\n", text)
-}