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 red'],
17 <h1>Common Unicode</h1>
19 <p>i^k in <a href="/vi">Vim</a>.
20 Also see the <a href="/digraphs">complete digraphs table</a>.</p>
25 my $diinfo = do 'digraphs.inc.pl';
26 my %di = map { $diinfo->{$_}->[0] => $_ } grep { ref $diinfo->{$_} }
27 sort { length $a <=> length $b } keys %$diinfo;
35 while ($digraphs->[0] !~ /^\./) {
36 my $cell = shift @$digraphs or last;
37 push @colheads, sprintf(
39 $cell =~ s/^-// ? 'td' : 'th',
40 $cell =~ s/:(.*)// ? qq{ title="$1"} : '',
41 $cell eq '_' ? ' ' : $cell
44 push @rows, sprintf '<thead><tr>%s<tbody>', join '', @colheads if @colheads;
47 for my $cell (@$digraphs) {
48 if ($cell =~ s/^\.//) {
49 # dot indicates start of a new row
51 if ($cell =~ s/^>//) {
52 # header cell text follows
53 $cell =~ s/_/ /g; # underscores may be used instead of whitespace (for qw//ability)
54 $rows[-1] .= '<th>'.($cell || ' ');
58 elsif ($cell eq '>') {
59 # merge this cell to the next column
66 # determine display class
71 elsif ($cell eq '=') {
72 push @class, 'di-invalid';
78 if ($cell =~ s/^-//) {
79 push @class, 'di-rare'; # discouraged
82 $code = join '', map { $di{ord $_} || '' } split //, $cell;
83 $name = $diinfo->{$code}->[1];
84 length $code == 2 or undef $code;
87 push @class, 'di-d'; # digraph
88 push @class, 'di-prop' # unofficial
89 if $diinfo->{$code}->[2] =~ /\bXz\b/;
92 if ($cell =~ /[ -~]/) {
93 push @class, 'di-a'; # ascii
96 push @class, 'di-b'; # basic unicode
101 $rows[-1] .= sprintf('<td%s%s%s>%s%s',
102 defined $name ? qq{ title="$name"} : '',
103 @class ? sprintf(' class="%s"', join ' ', @class) : '',
104 $colspan > 1 && qq{ colspan="$colspan"},
105 $cell eq '' ? ' ' : EscapeHTML($cell),
106 defined $code ? sprintf(' <small class="digraph">%s</small>', EscapeHTML($code))
107 : length($cell) == 1 && $cell !~ /[a-z]/
108 ? sprintf(' <small class="%s">%04X</small>', 'value', ord $cell)
115 return sprintf qq{<table class="glyphs dilabel">\n%s</table>\n},
116 join '', map {"<tr>$_\n"} @rows;
119 sub print_glyph_tables {
121 printf '<div class="section"><h2>%s</h2>'."\n\n", shift;
122 while (ref $_[0] and $_ = shift) {
123 print glyph_table($_);
129 our $verbose = exists $get{v};
133 [qw{. « » . ‹ › . ‘ ’ . “ ” . „ ‚ . ‟ ‛}],
134 [qw{. † ‡ • . § ¶ # . © ® ™ . ° ′ ″ . − × ÷ . ± ² √}],
135 [qw{. ⚋ ⚊ . ⚐ ⚑ . ☺ ☹ . ✓ ✗ . ✔ ✘ }],
136 [qw{. å ä ö ü ß . ā æ ø ű ſ}],
138 [qw{. α β}], [qw{. א}],
141 [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ฿ ₫ ₭ ₦ ₱ ₮ ₩ ₪}],
142 [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}],
143 [qw{. ☮ ☯ ☻ ♪ ♲ ♿ }],
144 [qw{. ✂ ✉ ☎ }], [qw{. ⚠ ☡ ☠}],
146 [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}], # solar
147 [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}], # zodiac
150 [qw{. ⇥ ⇤ . ␣ ⌫ }], # common spacing
151 [qw{. ⎀ ⇱ ⇞ . ⌦ ⇲ ⇟ }], # edit block
152 [qw{. ⇪ ⇯ ⇭ . ⇧ ⇮ № }], # modifier
153 [qw{. ⎈ ⌥ ⌘ ⎄ }], [qw{. ↵ ⎋ ⎉ ⎊ }], # command
154 [qw{. ► ⏩ ⏭ ◼ ⚫ . ◄ ⏪ ⏮ ⏏ -❚❚ }], # player ui
157 [qw{. ↖ ↑ ↗ ↔ . ← - → ↕ . ↙ ↓ ↘ -}],
158 [qw{. ⇖ ⇑ ⇗ ⇔ . ⇐ - ⇒ ⇕ . ⇙ ⇓ ⇘ -}],
159 [qw{. ⬁ ⇧ ⬀ ⬄ . ⇦ - ⇨ ⇳ . ⬃ ⇩ ⬂ -}],
160 [qw{. ⬉ ⬆ ⬈ ⬌ . ⬅ - ➡ ⬍ . ⬋ ⬇ ⬊ -}],
161 [qw{. ◩ ⬒ ⬔ . ◧ □ ◨ . ⬕ ⬓ ◪ }],
162 [qw{. ◤ ▲ ◥ . ◀ ◆ ▶ . ◣ ▼ ◢ }],
163 [qw{. ◸ △ ◹ . ◁ ◇ ▷ . ◺ ▽ ◿ }],
165 [qw{. . - . }],
166 [qw{. . - . }],
170 [qw{. ╔ ╦ ╗ ═ . ╠ ╬ ╣ ║ . ╚ ╩ ╝ - }],
171 [qw{. ╒ ╤ ╕ . ╞ ╪ ╡ . ╘ ╧ ╛ }],
172 [qw{. ╓ ╥ ╖ . ╟ ╫ ╢ . ╙ ╨ ╜ }],
173 [qw{. ┌ ┬ ┐ . ├ ┼ ┤ . └ ┴ ┘}],
174 [qw{. ┏ ┳ ┓ . ┣ ╋ ┫ . ┗ ┻ ┛}],
175 [qw{. ┍ ┯ ┑ . ┝ ┿ ┥ . ┕ ┷ ┙}],
176 [qw{. ┎ ┰ ┒ . ┠ ╂ ┨ . ┖ ┸ ┚}],
185 # ┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃╄╅╆╇╈╉╊
188 [qw{. □ ▣ ■ . ▤ ▦ ▥ . ▧ ▩ ▨}],
190 [qw{. ▘ ▀ ▝ . ▌ █ ▐ . ▖ ▄ ▗ }],
191 [qw{. ▛ ▚ ▟ . ▙ ▞ ▜ }],
192 [qw{. ▁ ▂ ▃ ▄ ▅ ▆ ▇ ▔ . ▏ ▎ ▍ ▌ ▋ ▊ ▉ ▕ }],
196 - BiL:Bilabial LD:Labiodental D:Dental Alv:Alveolar PA:Postalveolar
197 Rf:Retroflex Pal:Palatal Vel:Velar Uv:Uvular Ph:Pharyngeal
198 EG:Epiglottal Gl:Glottal
199 .>Plosive p -ȹ > > t ʈ c k q = ʡ ʔ
200 .>Voiced_Plosive b -ȸ > > d ɖ ɟ ɡ ɢ = - =
201 .>Nasal m ɱ > > n ɳ ɲ ŋ ɴ = = =
202 .>Trill ʙ - > > r - - = ʀ = -я =
203 .>Tap/flap - ⱱ > > ɾ ɽ - = ɢ̆ = - =
204 .>Fricative ɸ f θ s ʃ ʂ ç x χ ħ ʜ h
205 .>Voiced_fricative β v ð z ʒ ʐ ʝ ɣ ʁ ʕ ʢ ɦ
206 .>Lateral_fricative = = > > ɬ - - - - = = =
207 .>Voiced_lateral_fricative = = > > ɮ - - - - = = =
208 .>Approximant - ʋ > > ɹ ɻ j ɰ - - - =
209 .>Lateral_approximant = = > > l ɭ ʎ ʟ - = = =
210 .>Click ʘ - ǀ ǁ ǃ -‼ ǂ - - = = =
211 .>Implosive ɓ ɗ̪ > > ɗ -ᶑ ʄ ɠ ʛ = = =
214 - co:coarticulated .>sç ɕ .>zʝ ʑ .>ʃx ɧ .>jʷ ɥ .>hw̥ ʍ .>ɰʷ w
218 map { substr($_, 0, 1).':'.$_, substr($_, 0, 1)." r:$_ rounded" }
219 qw{Front Central Back}
222 .>Near-close ɪ ʏ - - - ʊ
223 .>Close-mid e ø ɘ ɵ ɤ o
225 .>Open-mid ɛ œ ɜ ɞ ʌ ɔ
226 .>Near-open æ - ɐ - - -
281 <table class="glyphs"><tr>
282 <td class="X di-a">ascii
283 <td class="X di-d">digraph
284 <td class="X di-prop">proposed
285 <td class="X di-b">other unicode
286 <td class="X di-rare">discouraged