From: Mischa POSLAWSKY Date: Tue, 3 Mar 2015 18:01:49 +0000 (+0100) Subject: latin: consistent morse character translation from ascii X-Git-Tag: v1.7~73 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/87162d5ee27cff62d1844013e18466d26928c7b6 latin: consistent morse character translation from ascii Improve code maintainability by encoding with ASCII dash - and period . and converting to visually preferred hyphen and hyphenation point. --- diff --git a/writing-latn.inc.pl b/writing-latn.inc.pl index d808e0d..4c31b67 100644 --- a/writing-latn.inc.pl +++ b/writing-latn.inc.pl @@ -4,6 +4,8 @@ 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 => [qw{ ‧‑ ‑‧‧‧ ‑‧‑‧ ‑‧‧ ‧ ‧‧‐‧ ‐‐‧ ‧‧‧‧ ‧‧ ‧‐‐‐ ‐‧‐ ‧‐‧‧ ‐‐ - ‐‧ ‐‐‐ ‧‐‐‧ ‐‐‧‐ ‧‐‧ ‧‧‧ ‐ ‧‧‐ ‧‧‧‐ ‧‐‐ ‐‧‧‐ ‐‧‐‐ ‐‐‧‧ }], +morse => [map {tr/.-/‧‑/r} qw{ + .- -... -.-. -.. . ..-. --. .... .. .--- -.- .-.. -- + -. --- .--. --.- .-. ... - ..- ...- .-- -..- -.-- --.. + }], );