X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/52b2d01baa052b2a2283adee52008e756442a185..796b36858c7d2dd94400f795459ac9802be66359:/writing-latn.inc.pl diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl index 917ae11..1666c6b 100644 --- a/writing-latn.inc.pl +++ b/writing-latn.inc.pl @@ -3,9 +3,9 @@ use utf8; sub disptap { return map { m/\A(-?)(\d)(\d)/; - sprintf('%s ', - #TODO: prepend $1 - join "
\n", '•' x $2, '•' x $3, + sprintf('%s
%s', + ' class=ex' x !!$1, + '·' x $2, '·' x $3, ); } @_; } @@ -16,7 +16,7 @@ my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20); 'Uppercase' => [qw{ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z }], 'Lowercase' => [qw{ a b c d e f g h i j k l m n o p q r s t u v w x y z }], 'Sütterlin' => [qw{ a b c d e f g h i j k l m n o p q r ſ s t u v w x y z }], -'ASL' => [ +'Sutton ASL' => [ # American manual alphabet in Sutton (U+1D800+) notation map { pack 'W*', map { hex "1D$_" } unpack '(A3)*', $_ } qw{ 8F7a9c 847a9c 86Da9c 801a9c 84Aa9c @@ -37,7 +37,7 @@ my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20); })], 'Tap simplified' => [disptap(qw{ 11 12 13 14 21 22 23 24 31 -31 -13 32 33 - 34 41 42 -13 43 44 15 51 52 53 -25 -31 54 + 34 41 42 -13 43 44 15 51 52 53 25 -31 54 })], 'Maritime flags' => [ # International Code of Signals, SVG fills @@ -141,12 +141,11 @@ my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20); local $_ = $_; s/[1-4]\K(?=[4-9])/ /; tr/1-9/↙←↖↑↗→↘↓/; - s{(.)(?=.)}{$1} - or s/^// and $_ .= ''; + s{(\S)(?=.)}{$1}; $_ } qw( - 1 2 3 4 5 6 7 21 31 46 14 15 16 17 23 + 1 2 3 4 5 6 7 21 31 46 14 51 16 17 23 24 25 26 27 34 35 47 56 57 36 67 ) ], @@ -200,6 +199,14 @@ my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20); 201112 102112 202111 101212 201211 102211 ) ], +'Code 128' => [ + map { tr/1-3-/❘❙❚ /r } + # bar widths (1-3) followed by space of width 1 (implied) or 3 (-) + qw( + 11-2 1-12 1-1-2 12-1 1-21 1-2-1 21-1 2-11 2-1-1 123 12-3 1-23 132 + 13-2 1-32 332 21-3 2-13 231 23-1 233 312 31-2 3-12 321 32-1 + ) +], 'RM4SCC' => [ map { sprintf '' @@ -231,7 +238,7 @@ my %C = qw(red #EC1C24 blue #3953A3 yellow #F9EC31 black #231F20); s/(?:h|m[^0]).*?h\K/-/; m/h/ or s/v/l3,/g; m/v/ or s/h([^h]*)/l$1,3/g; - my $dot = s/\.// && qq(); + my $dot = s/\.// && qq(); qq($dot) } qw(