diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-09-07 16:01:05 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-09-07 16:01:05 -0400 |
| commit | cd51d7e0d763ed669a2a45555d64d81e3b2478a1 (patch) | |
| tree | 52d27202e5971f1972c2a3e3430913b93f55b9dd /web/templates | |
| parent | d28394833d54a68f5ca13d2edaa261128f6c5170 (diff) | |
| parent | 6283b6582960544dc02e438e739775e3239b802c (diff) | |
| download | ocr-layer-curation-cd51d7e0d763ed669a2a45555d64d81e3b2478a1.tar.gz | |
Merge branch 'master' of horel.org:thibaut/ocr-layer-curation
Conflicts:
web/static/css/style.css
web/templates/index.html
web/utils.py
Diffstat (limited to 'web/templates')
| -rw-r--r-- | web/templates/index.html | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/web/templates/index.html b/web/templates/index.html index dc286aa..0a07be1 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -1,13 +1,26 @@ {% extends "layout.html" %} {% block main %} - <div id="image_container"> - <img id="page" src="{{page_number}}.jpg" usemap="#wordmap" /> - </div> - <map name="wordmap">{% for id, coords in areas %} - <area href="#" shape="rect" coords="{{coords}}" data-id="word-{{id}}" />{% end %} - </map> - <div id="text"> - {% raw words %} - </div> +<div id="image_container"> + <img id="page" src="{{page_number}}.jpg" usemap="#wordmap" /> +</div> +<map name="wordmap"> + {% for i, coord in enumerate(orig_coords) %} + <area href="#" shape="rect" coords="{{coord}}" data-orig="{{i}}" /> + {# data-corr="{{",".join(map(str,corr_coords_index[i]))}}" #} + {% end %} +</map> + +<div id="texte-non-corrige"> + <h3>Texte original</h3> + {% for i, word in enumerate(orig_words) %} + <span id="orig-{{i}}">{{word}}</span> + {% end %} +</div> +<div id="texte-corrige"> + <h3>Texte corrigé</h3> + {% for i, word in enumerate(corr_words) %} + <span id="corr-{{",".join(map(str,align[i]))}}">{{word}}</span> + {% end %} +</div> {% end %} |
