latin: style exceptions in row definitions
[sheet.git] / latinsample.js
index 3ef69a4620ae39f879c65ba09217d17885ba6ced..a120c662c6c683ca04419600db0e27cc0aa1ed69 100644 (file)
@@ -39,7 +39,7 @@ 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];
                        }
@@ -55,7 +55,7 @@ function appendsample() {
                }
                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;
        }