git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
latin: minor code rewrite of long lines
[sheet.git]
/
latinsample.js
diff --git
a/latinsample.js
b/latinsample.js
index 37d323164f46a8593336042b975f2e2ad91e235f..a3ce6dbd03192a29484e3d398cf894453fe3fb22 100644
(file)
--- a/
latinsample.js
+++ b/
latinsample.js
@@
-39,8
+39,11
@@
function appendsample() {
else if (cols[28] && i && col == input.charCodeAt(i - 1) - 64) {
col = 28; // repetition char
}
else if (cols[28] && i && col == input.charCodeAt(i - 1) - 64) {
col = 28; // repetition char
}
-
- if (col < cols.length) {
+ if (row.id == 'sütterlin' && col == 19) {
+ var final = input.length == i + 1 || input[i + 1] == ' ';
+ output += cols[col].split(' ')[final ? 1 : 0];
+ }
+ else if (col < cols.length) {
output += '<span>' + (cols[col] || ' ') + '</span>';
}
else {
output += '<span>' + (cols[col] || ' ') + '</span>';
}
else {
@@
-52,7
+55,7
@@
function appendsample() {
}
if (cols[29] && !cols[28]) {
// circumfix sign if no repetition
}
if (cols[29] && !cols[28]) {
// circumfix sign if no repetition
- output = cols[29] + output +
cols[29]
;
+ output = cols[29] + output +
(cols[30] || cols[29])
;
}
samplecol.innerHTML = output;
}
}
samplecol.innerHTML = output;
}