aboutsummaryrefslogtreecommitdiffstats
path: root/web/templates
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2014-08-03 21:19:55 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2014-08-03 21:19:55 -0400
commit6283b6582960544dc02e438e739775e3239b802c (patch)
tree70538744d32a55757e0a5c7c6d581fc404ab6878 /web/templates
parent102a573a7e6fd711da874c76f74b47df37ff124e (diff)
downloadocr-layer-curation-6283b6582960544dc02e438e739775e3239b802c.tar.gz
better 2-way highlighting, still not perfect
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/index.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/templates/index.html b/web/templates/index.html
index 2ba18c1..0a07be1 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -6,7 +6,8 @@
</div>
<map name="wordmap">
{% for i, coord in enumerate(orig_coords) %}
- <area href="#" shape="rect" coords="{{coord}}" data-id="{{i}}" />
+ <area href="#" shape="rect" coords="{{coord}}" data-orig="{{i}}" />
+ {# data-corr="{{",".join(map(str,corr_coords_index[i]))}}" #}
{% end %}
</map>
@@ -19,7 +20,7 @@
<div id="texte-corrige">
<h3>Texte corrigé</h3>
{% for i, word in enumerate(corr_words) %}
- <span id="corr-{{corr_coords_index[i]}}">{{word}}</span>
+ <span id="corr-{{",".join(map(str,align[i]))}}">{{word}}</span>
{% end %}
</div>
{% end %}