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 red') :>
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;
33 while ($digraphs->[0] !~ /^\./) {
34 my $cell = shift @$digraphs or last;
35 push @colheads, sprintf(
37 $cell =~ s/^-// ? 'td' : 'th',
38 $cell =~ s/:(.*)// ? qq{ title="$1"} : '',
39 $cell eq '_' ? ' ' : $cell
42 push @rows, sprintf '<thead><tr>%s<tbody>', join '', @colheads if @colheads;
45 for my $cell (@$digraphs) {
46 if ($cell =~ s/^\.//) {
47 # dot indicates start of a new row
49 if ($cell =~ s/^>//) {
50 # header cell text follows
51 $cell =~ s/_/ /g; # underscores may be used instead of whitespace (for qw//ability)
52 $rows[-1] .= '<th>'.($cell || ' ');
56 elsif ($cell eq '>') {
57 # merge this cell to the next column
64 # determine display class
69 elsif ($cell eq '=') {
70 push @class, 'di-invalid';
74 if ($cell =~ s/^-//) {
75 push @class, 'di-rare'; # discouraged
78 $code = join '', map { $di{ord $_} || '' } split //, $cell;
79 $name = $diinfo->{$code}->[1];
80 length $code == 2 or undef $code;
83 push @class, 'di-d'; # digraph
84 push @class, 'di-prop' # unofficial
85 if $diinfo->{$code}->[2] =~ /\bXz\b/;
87 elsif (defined $name) {
91 if ($cell =~ /[ -~]/) {
92 push @class, 'di-a'; # ascii
95 push @class, 'di-b'; # basic unicode
100 $rows[-1] .= sprintf('<td%s%s%s>%s%s',
101 defined $name ? qq{ title="$name"} : '',
102 @class ? sprintf(' class="%s"', join ' ', @class) : '',
103 $colspan > 1 && qq{ colspan="$colspan"},
104 $cell eq '' ? ' ' : EscapeHTML($cell),
105 defined $code ? sprintf(' <small class="digraph">%s</small>', EscapeHTML($code))
106 : length($cell) == 1 && $cell !~ /[a-z]/
107 ? sprintf(' <small class="%s">%04X</small>', 'value', ord $cell)
114 return sprintf qq{<table class="glyphs dilabel">\n%s</table>\n},
115 join '', map {"<tr>$_\n"} @rows;
118 sub print_glyph_tables {
120 printf '<div class="section"><h2>%s</h2>'."\n\n", shift;
121 while (ref $_[0] and $_ = shift) {
122 print glyph_table($_);
128 our $verbose = exists $get{v};
132 [qw{. « » . ‹ › . ‘ ’ . “ ” . „ ‚ . ‟ ‛}],
133 [qw{. † ‡ • . § ¶ # . © ® ™ . ° ′ ″ . − × ÷ . ± ² √}],
134 [qw{. ⚋ ⚊ . ⚐ ⚑ . ☺ ☹ . ✓ ✗ . ✔ ✘ . ◄ ► }],
135 [qw{. å ä ö ü ß . ā æ ø ű ſ}],
137 [qw{. α β}], [qw{. א}],
140 [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ₫ ₭ ₦ ₱ ₧ ₮ ₩ ₪}],
141 [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}],
142 [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}], # solar
143 [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}], # zodiac
146 [qw{. ↖ ↑ ↗ ↔ . ← - → ↕ . ↙ ↓ ↘ -}],
147 [qw{. ⇖ ⇑ ⇗ ⇔ . ⇐ - ⇒ ⇕ . ⇙ ⇓ ⇘ -}],
148 [qw{. ⬁ ⇧ ⬀ ⬄ . ⇦ - ⇨ ⇳ . ⬃ ⇩ ⬂ -}],
149 [qw{. ⬉ ⬆ ⬈ ⬌ . ⬅ - ➡ ⬍ . ⬋ ⬇ ⬊ -}],
150 [qw{. ◩ ⬒ ⬔ . ◧ □ ◨ . ⬕ ⬓ ◪ }],
151 [qw{. ◤ ▲ ◥ . ◀ ◆ ▶ . ◣ ▼ ◢ }],
152 [qw{. ◸ △ ◹ . ◁ ◇ ▷ . ◺ ▽ ◿ }],
154 [qw{. . - . }],
155 [qw{. . - . }],
159 [qw{. ╔ ╦ ╗ ═ . ╠ ╬ ╣ ║ . ╚ ╩ ╝ - }],
160 [qw{. ╒ ╤ ╕ . ╞ ╪ ╡ . ╘ ╧ ╛ }],
161 [qw{. ╓ ╥ ╖ . ╟ ╫ ╢ . ╙ ╨ ╜ }],
162 [qw{. ┌ ┬ ┐ . ├ ┼ ┤ . └ ┴ ┘}],
163 [qw{. ┏ ┳ ┓ . ┣ ╋ ┫ . ┗ ┻ ┛}],
164 [qw{. ┍ ┯ ┑ . ┝ ┿ ┥ . ┕ ┷ ┙}],
165 [qw{. ┎ ┰ ┒ . ┠ ╂ ┨ . ┖ ┸ ┚}],
175 [qw{. □ ▣ ■ . ▤ ▦ ▥ . ▧ ▩ ▨}],
177 [qw{. ▘ ▀ ▝ . ▌ █ ▐ . ▖ ▄ ▗ }],
178 [qw{. ▛ ▚ ▟ . ▙ ▞ ▜ }],
179 [qw{. ▁ ▂ ▃ ▄ ▅ ▆ ▇ ▔ . ▏ ▎ ▍ ▌ ▋ ▊ ▉ ▕ }],
183 - BiL:Bilabial LD:Labiodental D:Dental Alv:Alveolar PA:Postalveolar
184 Rf:Retroflex Pal:Palatal Vel:Velar Uv:Uvular Ph:Pharyngeal
185 EG:Epiglottal Gl:Glottal
186 .>Plosive p -ȹ > > t ʈ c k q = ʡ ʔ
187 .>Voiced_Plosive b -ȸ > > d ɖ ɟ ɡ ɢ = - =
188 .>Nasal m ɱ > > n ɳ ɲ ŋ ɴ = = =
189 .>Trill ʙ - > > r - - = ʀ = -я =
190 .>Tap/flap - ⱱ > > ɾ ɽ - = ɢ̆ = - =
191 .>Fricative ɸ f θ s ʃ ʂ ç x χ ħ ʜ h
192 .>Voiced_fricative β v ð z ʒ ʐ ʝ ɣ ʁ ʕ ʢ ɦ
193 .>Lateral_fricative = = > > ɬ - - - - = = =
194 .>Voiced_lateral_fricative = = > > ɮ - - - - = = =
195 .>Approximant - ʋ > > ɹ ɻ j ɰ - - - =
196 .>Lateral_approximant = = > > l ɭ ʎ ʟ - = = =
197 .>Click ʘ - ǀ ǁ ǃ -‼ ǂ - - = = =
198 .>Implosive ɓ ɗ̪ > > ɗ -ᶑ ʄ ɠ ʛ = = =
201 co . ɕ . ʑ . ɧ . ɥ . ʍ . w
205 map { substr($_, 0, 1).':'.$_, substr($_, 0, 1)." r:$_ rounded" }
206 qw{Front Central Back}
209 .>Near-close ɪ ʏ - - - ʊ
210 .>Close-mid e ø ɘ ɵ ɤ o
212 .>Open-mid ɛ œ ɜ ɞ ʌ ɔ
213 .>Near-open æ - ɐ - - -
268 <table class="glyphs"><tr>
269 <td class="X di-a">ascii
270 <td class="X di-d">digraph
271 <td class="X di-prop">proposed
272 <td class="X di-b">other unicode
273 <td class="X di-rare">discouraged
278 <a href="/" rel="home">sheet.shiar.nl</a>/unicode.<a href="/source/unicode.plp"
279 rel="code" title="Written in Perl">plp</a>
280 <a href="http://git.shiar.nl/sheet.git/history/HEAD:/unicode.plp"
281 rel="vcs-git" title="Git repository"><:= $VERSION :></a>
282 created by <a href="http://shiar.nl/" rel="author">Shiar</a> •
283 <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
284 title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>