INNER CODE UNIT · JavaScript
f
lh3/miniasm · tex/order_eval.js:77
f = new File(arguments[getopt.ind+1]);
while (f.readline(b) >= 0) {
var t = b.toString().split("\t");
if (parseInt(t[3]) - parseInt(t[2]) < min_span) continue; // a tiny hit
if (paf.length && t[0] == paf[paf.length - 1][0]) continue; // dup
var center;
t[1] = parseInt(t[1]);
t[2] = parseInt(t[2]); t[3] = parseInt(t[3]);
t[8] = parseInt(t[8]); t[9] = parseInt(t[9]);
if (t[4] == '+') {
center = Math.floor(((t[7] - t[2]) + (t[8] + (t[1] - t[3]))) / 2);
} else {
center = Math.floor(((t[7] - (t[1] - t[3])) + (t[8] + t[2])) / 2);
}
paf.push([t[0], t[5], t[4], parseInt(t[7]), center]);
}
f.close();