4 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
5 "http://www.w3.org/TR/html4/loose.dtd">
9 <meta http-equiv="content-type" content="utf-8">
10 <title>digraph cheat sheet</title>
11 <:= stylesheet(qw'light dark') :>
15 <h1>Common uncommon Unicode</h1>
17 <p>i^k in <a href="/">Vim</a>.
18 Also see the <a href="/digraphs">complete digraphs table</a>.</p>
23 my $diinfo = do 'digraphs.inc.pl';
24 my %di = map { $diinfo->{$_}->[0] => $_ } grep { ref $diinfo->{$_} }
25 sort { length $a <=> length $b } keys %$diinfo;
41 while ($digraphs->[0] !~ /^\./) {
42 my $cell = shift @$digraphs or last;
43 push @colheads, sprintf(
45 $cell =~ s/^-// ? 'td' : 'th',
46 $cell =~ s/:(.*)// ? qq{ title="$1"} : '',
47 $cell eq '_' ? ' ' : $cell
50 push @rows, sprintf '<thead><tr>%s<tbody>', join '', @colheads if @colheads;
53 for my $cell (@$digraphs) {
54 if ($cell =~ s/^\.//) {
55 # dot indicates start of a new row
57 if ($cell =~ s/^>//) {
58 # header cell text follows
59 $cell =~ s/_/ /g; # underscores may be used instead of whitespace (for qw//ability)
60 $rows[-1] .= '<th>'.($cell || ' ');
64 elsif ($cell eq '>') {
65 # merge this cell to the next column
72 # determine display class
77 elsif ($cell eq '=') {
78 push @class, 'di-invalid';
82 if ($cell =~ s/^-//) {
83 push @class, 'di-rare'; # discouraged
86 $code = join '', map { $di{ord $_} || '' } split //, $cell;
87 $name = $diinfo->{$code}->[1];
88 length $code == 2 or undef $code;
91 push @class, 'di-d'; # digraph
92 push @class, 'di-prop' # unofficial
93 if $diinfo->{$code}->[2] =~ /\bXz\b/;
95 elsif (defined $name) {
99 if ($cell =~ /[ -~]/) {
100 push @class, 'di-a'; # ascii
103 push @class, 'di-b'; # basic unicode
108 $rows[-1] .= sprintf('<td%s%s%s>%s%s',
109 defined $name ? qq{ title="$name"} : '',
110 @class ? sprintf(' class="%s"', join ' ', @class) : '',
111 $colspan > 1 && qq{ colspan="$colspan"},
112 $cell eq '' ? ' ' : quote($cell),
113 defined $code ? sprintf(' <small class="digraph">%s</small>', quote($code))
114 : length($cell) == 1 && $cell !~ /[a-z]/
115 ? sprintf(' <small class="%s">%04X</small>', 'value', ord $cell)
122 return sprintf qq{<table class="glyphs dilabel">\n%s</table>\n},
123 join '', map {"<tr>$_\n"} @rows;
126 sub print_glyph_tables {
128 printf '<div class="section"><h2>%s</h2>'."\n\n", shift;
129 while (ref $_[0] and $_ = shift) {
130 print glyph_table($_);
136 our $verbose = exists $get{v};
140 [qw{. « » . ‹ › . ‘ ’ . “ ” . „ ‚ . ‟ ‛}],
141 [qw{. † ‡ • . § ¶ # . © ® ™ . ° ′ ″ . − × ÷ . ± ² √}],
142 [qw{. ⚋ ⚊ . ⚐ ⚑ . ☺ ☹ . ✓ ✗ . ✔ ✘ . ◄ ► }],
143 [qw{. å ä ö ü ß . ā æ ø ű ſ}],
145 [qw{. α β}], [qw{. א}],
148 [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ₫ ₭ ₦ ₱ ₧ ₮ ₩ ₪}],
149 [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}],
150 [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}], # solar
151 [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}], # zodiac
154 [qw{. ↖ ↑ ↗ ↔ . ← - → ↕ . ↙ ↓ ↘ -}],
155 [qw{. ⇖ ⇑ ⇗ ⇔ . ⇐ - ⇒ ⇕ . ⇙ ⇓ ⇘ -}],
156 [qw{. ⬁ ⇧ ⬀ ⬄ . ⇦ - ⇨ ⇳ . ⬃ ⇩ ⬂ -}],
157 [qw{. ⬉ ⬆ ⬈ ⬌ . ⬅ - ➡ ⬍ . ⬋ ⬇ ⬊ -}],
158 [qw{. ◩ ⬒ ⬔ . ◧ □ ◨ . ⬕ ⬓ ◪ }],
159 [qw{. ◤ ▲ ◥ . ◀ ◆ ▶ . ◣ ▼ ◢ }],
160 [qw{. ◸ △ ◹ . ◁ ◇ ▷ . ◺ ▽ ◿ }],
162 [qw{. . - . }],
163 [qw{. . - . }],
167 [qw{. ╔ ╦ ╗ ═ . ╠ ╬ ╣ ║ . ╚ ╩ ╝ - }],
168 [qw{. ╒ ╤ ╕ . ╞ ╪ ╡ . ╘ ╧ ╛ }],
169 [qw{. ╓ ╥ ╖ . ╟ ╫ ╢ . ╙ ╨ ╜ }],
170 [qw{. ┌ ┬ ┐ . ├ ┼ ┤ . └ ┴ ┘}],
171 [qw{. ┏ ┳ ┓ . ┣ ╋ ┫ . ┗ ┻ ┛}],
172 [qw{. ┍ ┯ ┑ . ┝ ┿ ┥ . ┕ ┷ ┙}],
173 [qw{. ┎ ┰ ┒ . ┠ ╂ ┨ . ┖ ┸ ┚}],
183 [qw{. □ ▣ ■ . ▤ ▦ ▥ . ▧ ▩ ▨}],
185 [qw{. ▘ ▀ ▝ . ▌ █ ▐ . ▖ ▄ ▗ }],
186 [qw{. ▛ ▚ ▟ . ▙ ▞ ▜ }],
187 [qw{. ▁ ▂ ▃ ▄ ▅ ▆ ▇ ▔ . ▏ ▎ ▍ ▌ ▋ ▊ ▉ ▕ }],
191 - BiL:Bilabial LD:Labiodental D:Dental Alv:Alveolar PA:Postalveolar
192 Rf:Retroflex Pal:Palatal Vel:Velar Uv:Uvular Ph:Pharyngeal
193 EG:Epiglottal Gl:Glottal
194 .>Plosive p -ȹ > > t ʈ c k q = ʡ ʔ
195 .>Voiced_Plosive b -ȸ > > d ɖ ɟ ɡ ɢ = - =
196 .>Nasal m ɱ > > n ɳ ɲ ŋ ɴ = = =
197 .>Trill ʙ - > > r - - = ʀ = -я =
198 .>Tap/flap - ⱱ > > ɾ ɽ - = ɢ̆ = - =
199 .>Fricative ɸ f θ s ʃ ʂ ç x χ ħ ʜ h
200 .>Voiced_fricative β v ð z ʒ ʐ ʝ ɣ ʁ ʕ ʢ ɦ
201 .>Lateral_fricative = = > > ɬ - - - - = = =
202 .>Voiced_lateral_fricative = = > > ɮ - - - - = = =
203 .>Approximant - ʋ > > ɹ ɻ j ɰ - - - =
204 .>Lateral_approximant = = > > l ɭ ʎ ʟ - = = =
205 .>Click ʘ - ǀ ǁ ǃ -‼ ǂ - - = = =
206 .>Implosive ɓ ɗ̪ > > ɗ -ᶑ ʄ ɠ ʛ = = =
209 co . ɕ . ʑ . ɧ . ɥ . ʍ . w
213 map { substr($_, 0, 1).':'.$_, substr($_, 0, 1)." r:$_ rounded" }
214 qw{Front Central Back}
217 .>Near-close ɪ ʏ - - - ʊ
218 .>Close-mid e ø ɘ ɵ ɤ o
220 .>Open-mid ɛ œ ɜ ɞ ʌ ɔ
221 .>Near-open æ - ɐ - - -
276 <table class="glyphs"><tr>
277 <td class="X di-a">ascii
278 <td class="X di-d">digraph
279 <td class="X di-prop">proposed
280 <td class="X di-b">other unicode
281 <td class="X di-rare">discouraged
286 <a href="/" rel="home">sheet.shiar.nl</a>/unicode.<a href="/source/unicode.plp"
287 rel="code" title="Written in Perl">plp</a>
288 <a href="http://git.shiar.nl/sheet.git/history/HEAD:/unicode.plp"
289 rel="vcs-git" title="Git repository"><:= $VERSION :></a>
290 created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
291 <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
292 title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>