Skip to content

Commit

Permalink
redirection files for Dutch and English
Browse files Browse the repository at this point in the history
  • Loading branch information
wasnoplus committed Sep 28, 2020
1 parent 883ccdb commit 5d53f3c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
4 changes: 4 additions & 0 deletions script/redEn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const langModel = "model-en.tar.gz";

const next = ["next"];
const prev = ["back", "bag", "beck", "previous", "preview"];
4 changes: 4 additions & 0 deletions script/redNl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const langModel = "model-nl.tar.gz";

const next = ["volgende", "volgend", "vervolgend", "volgen", "volg"];
const prev = ["vorige", "vorig"];
21 changes: 15 additions & 6 deletions script/resultHandling.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
// todo script/VoskJS.js inladen

const langModel = "model-nl.tar.gz";
const allWords = ['volgende', 'vorige'];
// const langModel = "model-nl.tar.gz";
// const allWords = ['volgende', 'vorige'];
const callbacks = [];
const eventWordMap = {
'vorige': 'navigate-backward',
'volgende': 'navigate-forward',
};
const allWords = []
var eventWordMap;

function addToCommands (words, command) {
words.forEach(function(w) {
eventWordMap[w] = command;
allWords.push(w);
})
}

addToCommands(next, 'navigate-forward');
addToCommands(prev, 'navigate-backward');


window.iridium = {};
window.iridium.onExternalNavigate = (callback) => {
Expand Down

0 comments on commit 5d53f3c

Please sign in to comment.