summaryrefslogtreecommitdiff
path: root/alignment_matrix
diff options
context:
space:
mode:
Diffstat (limited to 'alignment_matrix')
-rw-r--r--alignment_matrix/alignment-matrix.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/alignment_matrix/alignment-matrix.js b/alignment_matrix/alignment-matrix.js
index ae486af..173b91f 100644
--- a/alignment_matrix/alignment-matrix.js
+++ b/alignment_matrix/alignment-matrix.js
@@ -10,9 +10,9 @@ function max_string_length(a)
};
//TODO data
-var fr = ["michael", "geht", "davon", "aus", "dass", "er", "im", "haus", "bleibt", "."]
-var en = ["michael", "assumes", "that", "he", "will", "stay", "in", "the", "house", "."]
-var a = {0:[0], 1:[1,2,3], 2:[5], 3:[6], 4:[8], 5:[8], 6:[7], 7:[7], 8:[8], 9:[9]};
+var fr = ["Michael", "geht", "davon", "aus", ",", "dass", "er", "im", "Haus", "bleibt", "."]
+var en = ["Michael", "assumes", "that", "he", "will", "stay", "in", "the", "house", "."]
+var a = {0:[0], 1:[1,2,3], 2:[5], 3:[6], 4:[9], 5:[9], 6:[7], 7:[7], 8:[8], 9:[10]};
//var fr = ['das', 'ist', 'ein', 'kleiner', 'test', '.'];
//var en = ['this', 'test', 'is', 'a', 'little', '.'];
@@ -52,7 +52,7 @@ var alignment_matrix = function (en, fr, a)
} else {
var t = paper.text(x_offset + margin, row*block_height + block_height/2, en[row])
}
- t.attr({'font-size': 10, 'font-family': 'Andale Mono', 'text-anchor': 'end'});
+ t.attr({'font-size': 12, 'font-family': 'Courier', 'text-anchor': 'end'});
a_rect.push([]);
for (var col = 0; col < fr.length; col += 1) {
@@ -62,7 +62,7 @@ var alignment_matrix = function (en, fr, a)
r.node.onclick = function () { // something useful?
var this_rect = r;
return function () {
- this_rect.attr({fill:"gray"});
+ this_rect.attr({fill:"#aaa"});
}
}();
}
@@ -79,7 +79,7 @@ var alignment_matrix = function (en, fr, a)
} else {
var ch = paper.text(x_offset + i*block_width + block_width/2, x_start+ j*6.5, fr[i][j]).rotate(90);
}
- ch.attr({'font-size': 10, 'font-family': 'Andale Mono', 'text-anchor': 'start'})
+ ch.attr({'font-size': 12, 'font-family': 'Courier', 'text-anchor': 'start'})
}
}