sc: include upgraded cast costs
[sheet.git] / writing-latn.inc.pl
1 use utf8;
2
3 sub disptap {
4         map {
5                 m/\A(-?)(\d)(\d)/;
6                 $1 . '\\'  # escape dot
7                 . ('.̇' x ($2 < $3 ? $2 : $3))  # min($2,$3) without losing captures
8                 . ('.' x ($3 - $2))
9                 . (' ̇' x ($2 - $3))
10         } @_
11 }
12
13 (
14 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 }],
15 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 }],
16 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 }],
17 brai     => [qw{ ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵ }],
18 morse    => [map {tr/.-/‧‑/r} qw{
19                 .- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. --
20                 -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --..
21             }],
22 tap      => [disptap(qw{
23                 11 12 13 14 15 21 22 23 24 -24 25 31 32
24                 33 34 35 41 42 43 44 45 51 52 53 54 55
25             })],
26 tap      => [disptap(qw{
27                 11 12 13 14 21 22 23 24 31 -31 -13 32 33
28                 34 41 42 -13 43 44 15 51 52 53 -25 -31 54
29             })],
30 );