X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/fa47b427173cfffa0080d4612e4e7819d5071a79..HEAD:/latinsample.js diff --git a/latinsample.js b/latinsample.js index a3ce6db..846e500 100644 --- a/latinsample.js +++ b/latinsample.js @@ -39,15 +39,17 @@ function appendsample() { else if (cols[28] && i && col == input.charCodeAt(i - 1) - 64) { col = 28; // repetition char } - if (row.id == 'sütterlin' && col == 19) { + if (row.id == 'suetterlin' && col == 19) { var final = input.length == i + 1 || input[i + 1] == ' '; output += cols[col].split(' ')[final ? 1 : 0]; } else if (col < cols.length) { - output += '' + (cols[col] || ' ') + ''; + var final = cols[col] || ' '; + if (!/^${final}`; + output += final; } else { - output += ' '; + output += ' '; } if (row.parentNode.tagName == 'THEAD') { output += col < 26 ? ' ' : '· '; // number separator