latin: enwindow d'ni words in css
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 15 Apr 2017 17:19:38 +0000 (19:19 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 25 May 2017 20:10:21 +0000 (22:10 +0200)
Treat words as numbers to be framed as a whole, with less prominent
separation between digits/characters.

latinsample.js
writing-latn.inc.pl

index a120c662c6c683ca04419600db0e27cc0aa1ed69..406cac12cdb355f3dd38070c9ccf7172ead633ec 100644 (file)
@@ -47,7 +47,7 @@ function appendsample() {
                                output += '<span>' + (cols[col] || ' ') + '</span>';
                        }
                        else {
                                output += '<span>' + (cols[col] || ' ') + '</span>';
                        }
                        else {
-                               output += ' ';
+                               output += '<b> </b>';
                        }
                        if (row.parentNode.tagName == 'THEAD') {
                                output += col < 26 ? ' ' : '· '; // number separator
                        }
                        if (row.parentNode.tagName == 'THEAD') {
                                output += col < 26 ? ' ' : '· '; // number separator
index 525daf2ed41b65d0e45b93460e836acaf703f7a7..2c9b59f80ef842419fd04f54f589b0e060bd96e4 100644 (file)
@@ -539,9 +539,12 @@ cmymap => {
 },
 dni => {
        title => "D'ni",
 },
 dni => {
        title => "D'ni",
+       style => [
+               'svg { border: 1px solid #000 }',
+               '.sample span + span svg { border-left: 0 }',
+       ],
        list => [
                map {
        list => [
                map {
-                       state $window = 'M-.5,-.5H8.5V8.5H-.5Z';
                        state $v = [
                                '',
                                'M0,4 8,4',
                        state $v = [
                                '',
                                'M0,4 8,4',
@@ -558,8 +561,8 @@ dni => {
                                'M4,-.5 0,4 4,8.5',
                                'M4,8 4,2 8,2',
                        ];
                                'M4,-.5 0,4 4,8.5',
                                'M4,8 4,2 8,2',
                        ];
-                       sprintf '<svg width="16" height="16" viewBox="-.5 -.5 9 9"><path d="%s"/></svg>',
-                               $window . ($h->[$_ % 5] . $v->[$_ / 5] || $v->[6]);
+                       sprintf '<svg width="16" height="16" viewBox="0 0 8 8"><path d="%s"/></svg>',
+                               $h->[$_ % 5] . $v->[$_ / 5] || $v->[6];
                } 0 .. 5*5
        ],
 },
                } 0 .. 5*5
        ],
 },