4 title => 'unicode glyph cheat sheet',
7 "Common Unicode characters with digraph or code point, layed out for quick location.",
8 "Includes general symbols, arrows, drawing characters, and IPA letters.",
11 unicode glyph char character reference common ipa symbol sign mark table digraph
13 stylesheet => [qw'light dark mono circus red'],
14 data => [qw'digraphs.inc.pl unicode.inc.pl'],
18 <h1>Common Unicode</h1>
21 Glyphs are followed by
22 <a href="/digraphs">digraph</a> or <a href="/charset">code point</a>,
23 i^k or i^vu respectively in <a href="/vi">Vim</a>.
30 use Shiar_Sheet::FormatChar;
31 my $glyphs = Shiar_Sheet::FormatChar->new;
33 if (exists $get{di}) {
34 $glyphs->{anno} = (!defined $get{di} || $get{di}) && 'di';
35 $glyphs->{unicode} = 1;
38 $glyphs->{unicode} = -1;
42 our $verbose = exists $get{v};
44 my $tables = do 'unicode.inc.pl' or die $@ || $!;
47 my $_ = /(.*)\?(.*)/ ? ($verbose ? $2 : $1) : $_;
53 $group = $1 if s{^([^/]+)/}{};
55 my @select = split /=/, $1;
56 my $table = $tables->{$group}->{$_};
58 for ($rowlen = 1; $rowlen++; $rowlen <= $#$table) {
59 last if $table->[$rowlen] =~ /\./;
61 my @cells = map { $_*$rowlen .. ($_+1)*$rowlen - 1 } @select;
65 $tables->{$group}->{$_};
72 symbols/binary?symbols/binary=0
137 <table class="glyphs"><tr>
138 <td class="X l4">ascii
139 <td class="X l3"><:= $glyphs->{style} eq 'di' ? 'digraph' : 'latin1' :>
140 <td class="X l2"><:= $glyphs->{style} eq 'di' ? 'proposed' : 'BMP' :>
141 <td class="X l1">other unicode
142 <td class="X ex">discouraged
146 <script type="text/javascript" src="/clipboard.js"></script>