sub disptap {
return map {
- m/\A(-?)(\d)(\d)/;
- sprintf('<td style="line-height:1ex"%s>%s<br>%s</td>',
+ !m/\A(-?)(\d)(\d)/ ? $_ :
+ sprintf('<td%s>%s<br>%s',
' class=ex' x !!$1,
'·' x $2, '·' x $3,
);
'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 }],
+'Old Roman Cursive' => [
+ map { /^\w/ ? '<svg width="20" height="20" viewBox="0 0 12 20"><path d="'.$_.'"/></svg>' : $_ }
+ "m2,4 c1,2 8,9 8,9 M2,15 6,9",
+ "m2,4 c0,0 3,-2 4,1 1,2 0,9 3,9 1,-0 2,-1 2,-1 m-6,-2 c-5,4 -0,6 1,3",
+ "m4,7 4,-2 m-4,4 c0,0 -2,7 3,6",
+ "m3,2 c0,0 7,10 7,12 m-2,-4 c-5,2 -4,9 1,3",
+ "m3,10 4,0 m2,-7 c0,0 -7,1 -5,16",
+ "m4,11 5,-2 m-3,-4 7,-4 M0,18 c0,0 4,3 5,-3 2,-6 2,-10 2,-10",
+ "m3,6 7,-2 m-7,4 c-2,5 4,9 6,6 l1,3",
+ "m7,9 4,-0 m-8,0 c4,0 6,-1 5,6 M1,3 c2,-0 2,12 2,12",
+ '>', # i = j
+ "m6,8 -0,7",
+ "m9,5 -5,4 4,4 m-4,-10 -1,13",
+ "m3,2 c0,0 -1,9 1,10 5,2 6,2 6,2",
+ "m0,16 3,-10 4,6 2,-5 5,4",
+ "m2,16 1,-9 5,8 2,-9",
+ "m5,8 c-2,0 -2,6 1,5 4,-2 1,-5 1,-5",
+ "m5,8 c0,0 -1,8 2,6 m-3,-7 5,3",
+ "m3,6 9,12 m-9,-11 c-4,1 -3,4 -3,4 0,0 2,2 6,-1",
+ "m0,6 c3,-1 3,-1 6,0 2,1 3,3 6,1 m-7,-1 -2,11",
+ "m13,3 c0,0 -5,2 -8,4 -2,3 -1,5 -2,9 -1,1 -4,2 -4,2",
+ "m2,7 8,0 m-4,1 c0,0 -1,8 3,5",
+ '>', # u = v
+ "m2,5 c0,0 3,5 6,3 3,-2 2,-3 2,-3",
+ '',
+ "m3,19 c-1,-6 6,-17 6,-17 M1,8 c0,0 10,1 10,1",
+ "m0,7 c2,-3 5,-2 5,1 l0,11 c0,0 -0,-4 -0,-10 -0,-4 4,-4 6,-3",
+ "m3,6 c4,-1 3,3 3,3 -1,3 -2,5 -1,5 1,1 3,0 3,0",
+],
'Sutton <abbr title="American Sign Lanugage">ASL</abbr>' => [
# American manual alphabet in Sutton (U+1D800+) notation
map { pack 'W*', map { hex "1D$_" } unpack '(A3)*', $_ } qw{
806a9c 89Aa9c 800a9c945aaa
}],
'Braille' => [qw{ ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵ }],
+'5-point Tactile' => [
+ map { '<svg width="9" height="12" viewBox="0 0 18 24">'.$_.'</svg>' }
+ map {
+ join '', map { sprintf '<circle cx="%d" cy="%d" r="4"/>',
+ !$_ ? 9 : $_ & 1 ? 4 : 14,
+ !$_ ? 12 : $_ < 3 ? 4 : 20,
+ } split //
+ }
+ qw{
+ 4 234 012 14 0 014 023 12
+ 02 024 0134 23 013 03 01 123
+ 0124 13 04 1 34 0123 134 0234
+ 034 124
+ }
+],
'Morse' => [map {tr/.-/‧‑/r} qw{
.- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. --
-. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --..
}],
'Tap code' => [disptap(qw{
- 11 12 13 14 15 21 22 23 24 -24 25 31 32
+ 11 12 13 14 15 21 22 23 > 24 25 31 32
33 34 35 41 42 43 44 45 51 52 53 54 55
})],
'Tap simplified' => [disptap(qw{
- 11 12 13 14 21 22 23 20 31 -31 -13 32 33
+ 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
})],
'Maritime flags' => [
'Chappe semaphore' => [
map {
my ($r, $pr, $pl) = split //, $_;
- !$_ ? '-' : sprintf(
+ /^\D$/ ? $_ : sprintf(
join('',
'<svg width="20" height="20" viewBox="0 0 10 15">',
'<path d="M5,6 v7"/>',
# 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
+ > 022 122 222 322 011 111 211 311
001 101 201 301 401 501 601 701 020
)
],
'Prussian semaphore' => [
- map { !$_ ? '-' : sprintf
+ map { /^\D+$/ ? $_ : sprintf
join('',
'<svg width="20" height="20" viewBox="0 0 8 18">',
'<path d="M4,1 v18"/>',
}
# rotation state (0-3) for left and right bar of 3 rows
qw(
- 003000 000200 203300 000030 033030 000130 000330 032330 031330 031330
+ 003000 000200 203300 000030 033030 000130 000330 032330 > 031330
022020 130120 001320 233010 030210 022310 203001 233001
131001 231301 000202 023302 230003 032003 201003 101003
)
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(<circle cx="3" cy="3" r="1">);
+ my $dot = s/\.// && qq(<circle cx="3" cy="3" r="1"/>);
qq(<path stroke-linecap="square" d="$_"/>$dot)
}
qw(