Optional 28th glyph to be shown instead of a doubled letter in sample texts.
for (var i = 0; i < input.length; i++) {
var col = input.charCodeAt(i) - 64;
if (col < 1) col = 27; // space
+ else if (cols[28] && i && col == input.charCodeAt(i - 1) - 64) {
+ col = 28; // repetition char
+ }
+
if (col < cols.length) {
- output += '<span>' + cols[col].innerHTML.trimRight() + '</span>';
+ output += '<span>' + (cols[col].innerHTML.trimRight() || ' ') + '</span>';
}
else {
output += ' ';