index: release v1.18 with only altgr index linked
[sheet.git] / latinsample.js
index a3ce6dbd03192a29484e3d398cf894453fe3fb22..846e5004fa97a9b8529c9251c929dcef7006521e 100644 (file)
@@ -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 += '<span>' + (cols[col] || ' ') + '</span>';
+                               var final = cols[col] || ' ';
+                               if (!/^<svg/.test(cols[col])) final = `<span>${final}</span>`;
+                               output += final;
                        }
                        else {
-                               output += ' ';
+                               output += '<b> </b>';
                        }
                        if (row.parentNode.tagName == 'THEAD') {
                                output += col < 26 ? ' ' : '· '; // number separator