X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/56a2781260b38e4e84ec49cf4a5c210c2626dcc4..fca29b43ba1f5a0dc2931e0362ba7d3109be9c3c:/unicode.plp?ds=inline
diff --git a/unicode.plp b/unicode.plp
index fe653f9..10ba7c6 100644
--- a/unicode.plp
+++ b/unicode.plp
@@ -10,14 +10,18 @@ Html({
keywords => [qw'
unicode glyph char character reference common ipa symbol sign mark table digraph
'],
- stylesheet => [qw'light dark red'],
+ stylesheet => [qw'light dark mono circus red'],
+ data => [qw'digraphs.inc.pl'],
});
:>
Common Unicode
-i^k in Vim.
-Also see the complete digraphs table.
+
+Glyphs are followed by
+digraph or code point,
+i^k or i^vu respectively in Vim.
+
@@ -25,27 +29,35 @@ Also see the
complete digraphs table.
use Shiar_Sheet::FormatChar;
my $glyphs = Shiar_Sheet::FormatChar->new;
-sub print_glyph_tables {
- while (@_) {
- printf '
%s
'."\n\n", shift;
- while (ref $_[0] and $_ = shift) {
- print $glyphs->table($_);
- }
- print '';
- }
+if (exists $get{di}) {
+ $glyphs->{digraph} = defined $get{di} ? ! !$get{di} : 1;
+ $glyphs->{unicode} = 1;
+}
+if (exists $get{q}) {
+ $glyphs->{unicode} = -1;
+ $glyphs->{digraph}--;
}
our $verbose = exists $get{v};
-print_glyph_tables(
+$glyphs->print(
'Popular',
[qw{. « » . ⹠⺠. â â . â â . â â . â â}],
[qw{. â ⡠⢠. § ¶ # . © ® ⢠. ° â² â³ . â à ÷ . ± ² â}],
[qw{. â â . â â . ⺠⹠. â â . â â }, $verbose ? () : qw{. â âº}],
[qw{. Ã¥ ä ö ü à . Ä Ã¦ ø ű Å¿}],
- [qw{. ñ ç é ê è . Å Ä Å³ Šů }],
- [qw{. ¿ ⦠ã â â . ⽠· â» â â }],
+ [qw{
+ . á è õ û ç . Ä
ı ơ ů þ
+ }],
+ $verbose ? [qw{
+ .>Englisc æ ð Ä È Å Ã¾ Æ¿
+ .>Sámi á Ä Ä Å Å¡ ŧ ž
+ .>Slavic Ä
Ä Å Å¯ ź ż ž
+ .>Türkçe ç Ä Ä± Ä° ö Šü
+ .>Esperanto Ä Ä Ä¥ ĵ Å Å
+ }] : (),
[qw{. α β}],
+ [qw{. ¿ ⦠ã â â . ⽠· â» â â }],
'Symbols',
[qw{. ¤ ¢ ⥠⬠£ ⨠$ Â¥ . ฿ â« â ⦠Ⱡ⮠⩠âª}],
@@ -199,11 +211,13 @@ $verbose ? (
- ascii
- | digraph
- | proposed
- | other unicode
- | discouraged
+ | ascii
+ | <:= $glyphs->{digraph} ? 'digraph' : 'latin1' :>
+ | <:= $glyphs->{digraph} ? 'proposed' : 'BMP' :>
+ | other unicode
+ | discouraged
|
+
+