X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/bbd4d489ebb73ed0fbc55eac123614a4774bb937..158fd6a72572921077756bed6286a16bb7d78f6b:/writing-latn.inc.pl
diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl
index 7fabb6e..403e36f 100644
--- a/writing-latn.inc.pl
+++ b/writing-latn.inc.pl
@@ -1,9 +1,10 @@
use utf8;
+use List::Util qw( pairs );
sub disptap {
return map {
!m/\A(-?)(\d)(\d)/ ? $_ :
- $1.sprintf('%s
%s',
+ $1.join(' ',
'·' x $2, '·' x $3,
);
} @_;
@@ -55,6 +56,12 @@ my $U = 0; # optional unicode alternatives
903a9c 8FBa9c 815a9c 80Ea9c 887a9c
806a9c 89Aa9c 800a9c945aaa
}],
+'ITA2' => [
+ map { tr/01/ââ/r =~ s/..\K/ /r } qw(
+ 11000 10011 01110 10010 10000 10110 01011 00101 01100 11010 11110 01001 00111
+ 00110 00011 01101 11101 01010 10100 00001 11100 01111 11001 10111 10101 10001
+ 00100
+)],
'Braille' => [qw{ â â â â â â â â â â â
â â â â â â â â â â ¥ â § â º â â ½ â µ }],
'5-point Tactile' => [
map { '' }
@@ -83,6 +90,10 @@ my $U = 0; # optional unicode alternatives
11 12 13 14 21 22 23 20 > 31 -13 32 33
30 41 42 -13 43 40 10 51 52 53 50 -31 -40
})],
+'Cards' => [(
+ map { chr(0x1F0A0 + $_), sprintf('%s', chr(0x1F0B0 + $_)) } # spades, hearts
+ 1 .. 11, 13, 14 # A 2-10 J Q K
+],
'Maritime flags' => [
# International Code of Signals, SVG fills
map { '' }
@@ -182,7 +193,7 @@ my $U = 0; # optional unicode alternatives
'Flag semaphore' => [
map {
local $_ = $_;
- s/[1-4]\K(?=[4-9])/Â /;
+ s/[1-4]\K(?=[4-9])/Â /; # prevent unwanted vertical crossing
tr/1-9/ââââââââ/;
s{(\S)(?=.)}{$1};
$_
@@ -197,7 +208,7 @@ my $U = 0; # optional unicode alternatives
my ($r, $pr, $pl) = split //, $_;
/^\D$/ ? $_ : sprintf(
join('',
- '