X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/5464db21077f6af072bd770f6cb6e907eb48b73d..f00c1e5c4de7325c9d5d851a61355fe8638cca95:/writing-latn.inc.pl diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl index 53d9b63..f243510 100644 --- a/writing-latn.inc.pl +++ b/writing-latn.inc.pl @@ -1,4 +1,30 @@ -latn => [qw{.>Latin 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 }], -brai => [qw{.>Braille ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵ }], -morse => [qw{.>Morse ‧‑ ‑‧‧‧ ‑‧‑‧ ‑‧‧ ‧ ‧‧‐‧ ‐‐‧ ‧‧‧‧ ‧‧ ‧‐‐‐ ‐‧‐ ‧‐‧‧ ‐‐ - ‐‧ ‐‐‐ ‧‐‐‧ ‐‐‧‐ ‧‐‧ ‧‧‧ ‐ ‧‧‐ ‧‧‧‐ ‧‐‐ ‐‧‧‐ ‐‧‐‐ ‐‐‧‧ }], +use utf8; + +sub disptap { + map { + m/\A(-?)(\d)(\d)/; + $1 . '\\' # escape dot + . ('.̇' x ($2 < $3 ? $2 : $3)) # min($2,$3) without losing captures + . ('.' x ($3 - $2)) + . (' ̇' x ($2 - $3)) + } @_ +} + +( +latn => [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 }], +latfsuet => [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 }], +ase => [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 }], +brai => [qw{ ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵ }], +morse => [map {tr/.-/‧‑/r} qw{ + .- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- + -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --.. + }], +tap => [disptap(qw{ + 11 12 13 14 15 21 22 23 24 -24 25 31 32 + 33 34 35 41 42 43 44 45 51 52 53 54 55 + })], +tap => [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 + })], +);