4 title => 'latin alphabet cheat sheet',
9 latin roman alphabet script letter unicode font glyph abc
10 code encoding spelling symbol writing comparison character
11 secret cursive fraktur blind braille morse deaf asl hand
12 barcode bar color semaphore flag
14 stylesheet => [qw( light dark red mono )],
15 data => ['writing-latn.inc.pl'],
21 vertical-align: middle;
23 svg path:not([fill]) {
27 svg circle:not([fill]) {
39 white-space: nowrap; /* prevent resize by sample */
43 <h1>Latin alphabet</h1>
45 <p id=intro>Variant encodings of the common ASCII (latin, roman,
46 or <span title="fuck yeah!">'mercan</span>) letters A–Z.
47 Also see <a href="/writing">related alphabets</a>
48 and <a href="/chars/abc">font comparison</a>.</p>
51 use List::Util qw( pairs );
53 my @table = do 'writing-latn.inc.pl';
54 if ($! or $@ or !@table) {
55 die ["Table data not found", $@ || $!];
60 for my $row (pairs @table) {
61 my ($id, $info) = @{$row};
62 my $style = $info->{style} or next;
63 ref $style or $style = [$style];
64 say "\t", !/^@/ && "#$id ", $_ for @{$style};
68 my %VOWELCOLS = (map { ($_ => 1) } 0, 4, 8, 14, 20, 24);
69 say '<table class="glyphs">';
70 say '<thead><tr><th># <small>ASCII − 64</small>';
71 print '<td>', $_ for 1 .. 26;
74 for my $row (pairs @table) {
75 my ($id, $info) = @{$row};
77 printf '<tr id="%s">', $id;
79 $th .= sprintf ' title="%s"', $_ for $info->{title} || ();
80 say "<$th>", $info->{name} // ucfirst $id;
84 for (@{ $info->{list} }) {
91 push @class ,'l0' if $VOWELCOLS{$col - $colspan};
92 push @class, $_ ? 'ex' : 'u-invalid' if s/^-//;
96 # special character for sample generation
97 print ' hidden'; # sample only
100 print ' title=', chr($col + ord('A') - $colspan);
103 print " colspan=$colspan";
106 printf ' class="%s"', "@class" if @class;
111 say "</table></div>";
115 <script type="text/javascript" src="/latinsample.js"></script>
116 <script type="text/javascript"><!--
117 prependinput(document.getElementById('intro'));