From: Mischa POSLAWSKY Date: Fri, 5 Jun 2015 20:03:42 +0000 (+0200) Subject: latin: reformat tap codes to suþscript digits X-Git-Tag: v1.7~70 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/09b8e3b57cead377a7892401976d47122f6ed9c4 latin: reformat tap codes to suþscript digits --- diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl index 5849900..f763d35 100644 --- a/writing-latn.inc.pl +++ b/writing-latn.inc.pl @@ -1,5 +1,14 @@ use utf8; +sub disptap { + map { + m/\A(-?)(\d)(\d)/; + $1 . '\\' # escape dot + . chr($2 > 3 ? 0x2070 + $2 : $2 == 1 ? 0xB9 : 0xB0 + $2) # superscript + . chr(0x2080 + $3) # subscript digit + } @_ +} + ( 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 }], @@ -9,8 +18,8 @@ morse => [map {tr/.-/‧‑/r} qw{ .- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --.. }], -tap => [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 - }], + })], );