latin: flag semaphore row (arrows)
authorMischa POSLAWSKY <perl@shiar.org>
Wed, 29 Jul 2015 11:25:49 +0000 (13:25 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 21 Sep 2015 22:20:08 +0000 (00:20 +0200)
Image representations widely available online, but manually encoded as
directions for schematic display using unicode arrow symbols with css to
overlap compatible hands.

latin.plp
writing-latn.inc.pl

index 6be7f9ffd3f85d695067f4703e381000644a448d..f292f2ec057f2c900da029372d69f3744d141574 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -50,6 +50,7 @@ my %scriptname = (
        tap      => 'Tap code',
        taps     => 'Tap simplified',
        ics      => 'Maritime flags', # International Code of Signals
+       sem      => 'Flag semaphore',
 );
 
 my @table = do 'writing-latn.inc.pl';
index b5c98c0e8127fd8152259e4ed65cbf0c68570368..7d0fb06aea9cb237037beff7d8858cd2301f3c77 100644 (file)
@@ -134,4 +134,18 @@ ics => [
                <path fill="$C{red}" d="M0,30 h31 l-15,-15"/>
        },
 ],
+sem => [
+       map {
+               local $_ = $_;
+               s/[1-4]\K(?=[4-9])/ /;
+               tr/1-9/↙←↖↑↗→↘↓/;
+               s{(.)(?=.)}{<span style="position:absolute">$1</span>}
+                       or s/^/<span>/ and $_ .= '</span>';
+               $_
+       }
+       qw(
+               1 2 3 4 5  6 7 21 31 46  14 15 16 17 23
+               24 25 26 27 34  35 47 56 57 36  67
+       )
+],
 );