From 8dff3248515a81386c4bdedca9fa05b22033c68d Mon Sep 17 00:00:00 2001
From: Nick White <git@njw.name>
Date: Thu, 24 Jan 2019 18:36:57 +0000
Subject: Export hocr Parse() function as its likely to be useful elsewhere

---
 parse/hocr/hocr.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parse/hocr/hocr.go b/parse/hocr/hocr.go
index 3599bef..81250a9 100644
--- a/parse/hocr/hocr.go
+++ b/parse/hocr/hocr.go
@@ -80,7 +80,7 @@ func noText(s string) bool {
 	return len(t) == 0
 }
 
-func parseIt(b []byte) (Hocr, error) {
+func Parse(b []byte) (Hocr, error) {
 	var hocr Hocr
 
 	err := xml.Unmarshal(b, &hocr)
@@ -160,7 +160,7 @@ func GetLineDetails(hocrfn string) (parse.LineDetails, error) {
 		return newlines, err
 	}
 
-	h, err := parseIt(file)
+	h, err := Parse(file)
 	if err != nil {
 		return newlines, err
 	}
-- 
cgit v1.2.1-24-ge1ad