diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-17 15:41:45 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-17 15:41:45 +0100 |
commit | c03f111ae6eac7b5b6ac2ad4635603eededcb6a3 (patch) | |
tree | 465a6d68ea31e116e05fc11a2e52d2f85af8e57e /js | |
parent | 19541176d3f93e0092ca91b1413cafeceda6784e (diff) |
fix oov bug, better/fixed known rule handling
Diffstat (limited to 'js')
-rw-r--r-- | js/lfpe.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -205,8 +205,8 @@ function Next() var src = []; var tgt = []; for (var i=0; i<l; i++) { - src.push(trim(document.getElementById("oov_src"+i).value)); - tgt.push(trim(document.getElementById("oov_tgt"+i).value)); + src.push(encodeURIComponent(trim(document.getElementById("oov_src"+i).value))); + tgt.push(encodeURIComponent(trim(document.getElementById("oov_tgt"+i).value))); if (tgt[tgt.length-1] == "") { // empty correction alert("Please provide translations for all words."); //not_working(); |