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'unicode-table.inc.pl unicode-char.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>.
29 use Shiar_Sheet::FormatChar;
30 my $glyphs = Shiar_Sheet::FormatChar->new;
32 if (exists $get{di}) {
33 $glyphs->{anno} = [ (!defined $get{di} || $get{di}) && 'di', 'hex' ];
38 if (exists $get{html}) {
39 $glyphs->{anno} = ['html', 'xml'];
40 $glyphs->{style} = 'html';
43 our $verbose = exists $get{v};
49 symbols/binary?symbols/binary=-5
120 splice @config, 4, 2, qw(
121 latin/vowels=-5?latin/vowels
124 ) if exists $get{html};
126 $_ and m{/*+(.+)} and @config = split /[ ]/, $1 for $Request, $get{q};
128 my $tables = do 'unicode-table.inc.pl' or die $@ || $!;
131 my $_ = /(.*)\?(.*)/ ? ($verbose ? $2 : $1) : $_;
141 $group = $1 if s{^([^/]+)/}{};
142 my @select = s/=(.*)// ? split(/=/, $1) : ();
143 my $table = $tables->{$group}->{$_}
144 or die "Unknown table specified: $group/$_";
148 for ($rowlen = 1; $rowlen++; $rowlen <= $#$table) {
149 last if $table->[$rowlen] =~ /\./;
152 my $end = (s/-(.+)?// ? ($1 // @$table / $rowlen - 1) : $_) + 1;
153 $_ * $rowlen .. $end * $rowlen - 1;
155 $table = [ @$table[@cells] ];
164 <table class="glyphs"><tr>
165 <td class="X l5">ascii
166 <td class="X l4"><:= $glyphs->{style} eq 'di' ? 'digraph' : 'latin1' :>
167 <td class="X l3"><:= $glyphs->{style} eq 'di' ? 'proposed' : 'HTML4' :>
168 <td class="X l2">unicode ≤6.0
169 <td class="X l1">other unicode
170 <td class="X ex">discouraged
174 <script type="text/javascript" src="/clipboard.js"></script>