writing: glyph table data in separate includes
[sheet.git] / latin.plp
index 89afb61358b194ecb4f5672ddf5c364de7beddbf..2809d7efdb8ef74bc1fb2d8db384dfb32b402ab1 100644 (file)
--- a/latin.plp
+++ b/latin.plp
@@ -28,13 +28,13 @@ unless (exists $get{v}) {
        $glyphs->{digraph}--;
 }
 
-my @t = (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
-       .>Braille    ⠁ ⠃ ⠉ ⠙ ⠑ ⠋ ⠛ ⠓ ⠊ ⠚ ⠅ ⠇ ⠍ ⠝ ⠕ ⠏ ⠟ ⠗ ⠎ ⠞ ⠥ ⠧ ⠺ ⠭ ⠽ ⠵
-       .>Morse      ‧‑ ‑‧‧‧ ‑‧‑‧ ‑‧‧ ‧ ‧‧‐‧ ‐‐‧ ‧‧‧‧ ‧‧ ‧‐‐‐ ‐‧‐ ‧‐‧‧ ‐‐
-                    ‐‧ ‐‐‐ ‧‐‐‧ ‐‐‧‐ ‧‐‧ ‧‧‧ ‐ ‧‧‐ ‧‧‧‐ ‧‐‐ ‐‧‧‐ ‐‧‐‐ ‐‐‧‧
-});
-print $glyphs->table(exists $get{uc} ? [map {s/\s.//; uc} @t] : \@t);
+my @table = do 'writing-latn.inc.pl';
+if ($! or $@) {
+       printf "<p>Table data not found: <em>%s</em>.</p>\n", $! || $@;
+}
+else {
+       print $glyphs->table(exists $get{uc} ? [map {s/\s.//; uc} @table] : \@table);
+}
 
 print "</div>\n";