latin: final S forms in suetterlin sample
[sheet.git] / latinsample.js
index 37d323164f46a8593336042b975f2e2ad91e235f..3ef69a4620ae39f879c65ba09217d17885ba6ced 100644 (file)
@@ -39,8 +39,11 @@ function appendsample() {
                        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('&nbsp;')[final ? 1 : 0];
+                       }
+                       else if (col < cols.length) {
                                output += '<span>' + (cols[col] || ' ') + '</span>';
                        }
                        else {