diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2014-08-03 21:19:55 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2014-08-03 21:19:55 -0400 |
| commit | 6283b6582960544dc02e438e739775e3239b802c (patch) | |
| tree | 70538744d32a55757e0a5c7c6d581fc404ab6878 /web/templates/index.html | |
| parent | 102a573a7e6fd711da874c76f74b47df37ff124e (diff) | |
| download | ocr-layer-curation-6283b6582960544dc02e438e739775e3239b802c.tar.gz | |
better 2-way highlighting, still not perfect
Diffstat (limited to 'web/templates/index.html')
| -rw-r--r-- | web/templates/index.html | 5 |
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 %} |
