diff options
| author | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2014-02-28 15:27:36 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@serenitascapital.com> | 2014-02-28 15:27:36 -0500 |
| commit | 89e64d430bc19b1165fd7cb99806f09faaa7af47 (patch) | |
| tree | 37084cbf010ac12ba6d66ff4cebe5da60f0ee23f /parsedjvutext.py | |
| parent | ed864abcc0acc70da54d8ebd3248f49fd7dded37 (diff) | |
| download | ocr-layer-curation-89e64d430bc19b1165fd7cb99806f09faaa7af47.tar.gz | |
fix html coordinates
Diffstat (limited to 'parsedjvutext.py')
| -rw-r--r-- | parsedjvutext.py | 4 |
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)] |
