aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@serenitascapital.com>2014-02-28 15:27:36 -0500
committerGuillaume Horel <guillaume.horel@serenitascapital.com>2014-02-28 15:27:36 -0500
commit89e64d430bc19b1165fd7cb99806f09faaa7af47 (patch)
tree37084cbf010ac12ba6d66ff4cebe5da60f0ee23f
parented864abcc0acc70da54d8ebd3248f49fd7dded37 (diff)
downloadocr-layer-curation-89e64d430bc19b1165fd7cb99806f09faaa7af47.tar.gz
fix html coordinates
-rw-r--r--parsedjvutext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsedjvutext.py b/parsedjvutext.py
index 013fe46..ad98d1d 100644
--- a/parsedjvutext.py
+++ b/parsedjvutext.py
@@ -15,8 +15,8 @@ def parse_page(page, html=False):
pass
if str(s[0].value) == "word":
if html:
- coords = (s[1].value, page_size - s[2].value,
- s[3].value, page_size - s[4].value)
+ coords = (s[1].value, page_size - s[4].value,
+ s[3].value, page_size - s[2].value)
coords = ",".join(map(str,coords))
else:
coords = [s[i].value for i in xrange(1, 5)]