From: Mischa POSLAWSKY Date: Sat, 22 Aug 2015 00:24:59 +0000 (+0200) Subject: latin: chappe semaphore X-Git-Tag: v1.8~26 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/3f794dd1016611b2972115a97624b41e1dd56a6c latin: chappe semaphore --- diff --git a/latin.plp b/latin.plp index 42d4003..a83bc0d 100644 --- a/latin.plp +++ b/latin.plp @@ -51,6 +51,7 @@ my %scriptname = ( taps => 'Tap simplified', ics => 'Maritime flags', # International Code of Signals sem => 'Flag semaphore', + semc => 'Chappe semaphore', pigpen => 'Pigpen', wingdings=> 'Wingdings', code39 => 'Code 39', # ISO/IEC 16388 diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl index 0676e8b..2a20b76 100644 --- a/writing-latn.inc.pl +++ b/writing-latn.inc.pl @@ -148,6 +148,28 @@ sem => [ 24 25 26 27 34 35 47 56 57 36 67 ) ], +semc => [ + map { + my ($r, $pr, $pl) = split //, $_; + !$_ ? '-' : sprintf( + join('', + '', + '', + '', + '', + ), + ['6', '3v3', '9v-3']->[$pl], + [ '', 'v3', 'v-3']->[$pr], + $r * 45, + ); + } + # 360° rotation (0-7) and position state (0-2) of left and right bars + qw( + 021 121 221 321 421 521 621 721 + 022 022 122 222 322 011 111 211 311 + 001 101 201 301 401 501 601 701 020 + ) +], code39 => [map { tr/012/ ❘❙/r } qw{ 211012 121012 221011 112012 212011 122011 111022 211021 121021 112021 211102 121102 221101 112102 212101 122101 111202 211201 121201 112201