<:
my $diinfo = do 'digraphs.inc.pl';
my %di = map { $diinfo->{$_}->[0] => $_ } grep { ref $diinfo->{$_} }
- keys %$diinfo;
+ sort { length $a <=> length $b } keys %$diinfo;
sub quote {
local $_ = shift;
next;
}
- my $code = join '', map { $di{ord $_} || '' } split //, $cell;
- my $name = $diinfo->{$code}->[1];
+ my ($code, $name);
# determine display class
my @class;
push @class, 'di-rare'; # discouraged
}
- if ($code) {
+ $code = join '', map { $di{ord $_} || '' } split //, $cell;
+ $name = $diinfo->{$code}->[1];
+ length $code == 2 or undef $code;
+
+ if (defined $code) {
push @class, 'di-d'; # digraph
push @class, 'di-prop' # unofficial
if $diinfo->{$code}->[2] =~ /\bXz\b/;
}
+ elsif (defined $name) {
+ push @class, 'X';
+ }
if ($cell =~ /[ -~]/) {
push @class, 'di-a'; # ascii
@class ? sprintf(' class="%s"', join ' ', @class) : '',
$colspan > 1 && qq{ colspan="$colspan"},
$cell eq '' ? ' ' : quote($cell),
- $code ne '' ? sprintf(' <small class="digraph">%s</small>', quote($code))
+ defined $code ? sprintf(' <small class="digraph">%s</small>', quote($code))
: length($cell) == 1 && $cell !~ /[a-z]/
? sprintf(' <small class="%s">%04X</small>', 'value', ord $cell)
: '',
}
}
+our $verbose = exists $get{v};
+
print_glyph_tables(
'Popular',
[qw{. « » . ‹ › . ‘ ’ . “ ” . „ ‚ . ‟ ‛}],
[qw{. † ‡ • . § ¶ # . © ® ™ . ° ′ ″ . − × ÷ . ± ² √}],
+ [qw{. ⚋ ⚊ . ⚐ ⚑ . ☺ ☹ . ✓ ✗ . ✔ ✘ . ◄ ► }],
[qw{. å ä ö ü ß . Å æ ø ű ſ}],
[qw{. ¿ ç ñ é ê è}],
+ [qw{. α β}], [qw{. א}],
+
+ 'Signs',
+ [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ₫ ₭ ₦ ₱ ₧ ₮ ₩ ₪}],
+ [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}],
+ [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}], # solar
+ [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}], # zodiac
'Arrows',
[qw{. ↖ ↑ ↗ ↔ . ← - → ↕ . ↙ ↓ ↘ -}],
[qw{. ⇖ ⇑ ⇗ ⇔ . ⇐ - ⇒ ⇕ . ⇙ ⇓ ⇘ -}],
+ [qw{. ⬁ ⇧ ⬀ ⬄ . ⇦ - ⇨ ⇳ . ⬃ ⇩ ⬂ -}],
+ [qw{. ⬉ ⬆ ⬈ ⬌ . ⬅ - ➡ ⬍ . ⬋ ⬇ ⬊ -}],
+ [qw{. ◩ ⬒ ⬔ . ◧ □ ◨ . ⬕ ⬓ ◪ }],
[qw{. ◤ ▲ ◥ . ◀ ◆ ▶ . ◣ ▼ ◢ }],
[qw{. ◸ △ ◹ . ◁ ◇ ▷ . ◺ ▽ ◿ }],
+$verbose ? (
+ [qw{. . - . }],
+ [qw{. . - . }],
+) : (),
'Line drawing',
+ [qw{. ╔ ╦ ╗ ═ . ╠ ╬ ╣ ║ . ╚ ╩ ╝ - }],
+ [qw{. ╒ ╤ ╕ . ╞ ╪ ╡ . ╘ ╧ ╛ }],
+ [qw{. ╓ ╥ ╖ . ╟ ╫ ╢ . ╙ ╨ ╜ }],
[qw{. ┌ ┬ ┐ . ├ ┼ ┤ . └ ┴ ┘}],
[qw{. ┏ ┳ ┓ . ┣ ╋ ┫ . ┗ ┻ ┛}],
[qw{. ┍ ┯ ┑ . ┝ ┿ ┥ . ┕ ┷ ┙}],
. ╹ ┃ ╏ ┇ ┋ ╻ ╽
}],
[qw{. ╱ ╳ ╲ }],
- [qw{. ╔ ╦ ╗ ═ . ╠ ╬ ╣ ║ . ╚ ╩ ╝ - }],
- [qw{. ╒ ╤ ╕ . ╞ ╪ ╡ . ╘ ╧ ╛ }],
- [qw{. ╓ ╥ ╖ . ╟ ╫ ╢ . ╙ ╨ ╜ }],
'Blocks',
- [qw{. �� ▀ ▝ . ▌ █ ▐ . ▖ ▄ ▗ }],
+ [qw{. �� ▣ ■ . ▤ ▦ ▥ . ▧ ▩ ▨}],
[qw{. ░ . ▒ . ▓ }],
+ [qw{. ▘ ▀ ▝ . ▌ █ ▐ . ▖ ▄ ▗ }],
[qw{. ▛ ▚ ▟ . ▙ ▞ ▜ }],
[qw{. ▁ ▂ ▃ ▄ ▅ ▆ ▇ ▔ . ▏ ▎ ▍ ▌ ▋ ▊ ▉ ▕ }],
- [qw{. □ ▣ ■ . ▤ ▦ ▥ . ▧ ▩ ▨}],
-
- 'Signs',
- [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ₫ ₭ ₦ ₱ ₧ ₮ ₩ ₪}],
- [qw{. ♠ ♡ ♢ ♣ . ♤ ♥ ♦ ♧}],
- [qw{. ☉ ☿ ♀ ♁ ♂ ♃ ♄ ♅ ♆ ♇}], # solar
- [qw{. ♈ ♉ ♊ ♋ ♌ ♍ ♎ ♏ ♐ ♑ ♒ ♓}], # zodiac
'IPA',
[qw{
.>Open a ɶ - - ɑ ɒ
}],
- 'Alphabetics',
- [qw{
- .>Latin a ī ı ę ô ɳ ŋ ṡ š đ ð Ʒ
- .>Cyrillic а і й э ё н њ ш щ ч ь Я
- .>Greek α ί ϊ η ϋ π ψ σ ς θ ξ Ω
- .>Hebrew א ײ י ע ו נ ן ס ש ט צ ץ
- }],
-
+$verbose ? (
'Japanese',
[qw{
- A I U E O _
.>P パ ピ プ ペ ポ
.>V ヷ ヸ ヴ ヹ ヺ
}],
+) : (),
);
:></div>