X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/d35f5ce5ec4102ccf530ec3648a70663da85c1d4..5a85c6bfca6be44dadd58eedd0d9f0d1d5619e5f:/unicode.plp diff --git a/unicode.plp b/unicode.plp index c22d19e..184fcb6 100644 --- a/unicode.plp +++ b/unicode.plp @@ -28,19 +28,18 @@ i^k or i^vu respectively in Vim. 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{. † ‡ • . § ¶ # . © ® ™ . ° ′ ″ . − × ÷ . ± ² √}], @@ -56,8 +55,8 @@ print_glyph_tables( .>Türkçe ç ğ ı İ ö ş ü .>Esperanto ĉ ĝ ĥ ĵ ŝ ŭ }] : (), - [qw{. ¿ … 〃 ‐ – . ‽ · ※ ‒ — }], [qw{. α β}], + [qw{. ¿ … 〃 ‐ – . ‽ · ※ ‒ — }], 'Symbols', [qw{. ¤ ¢ ₥ € £ ₨ $ ¥ . ฿ ₫ ₭ ₦ ₱ ₮ ₩ ₪}], @@ -212,10 +211,12 @@ $verbose ? (
ascii - digraph - proposed + <:= $glyphs->{digraph} ? 'digraph' : 'latin1' :> + <:= $glyphs->{digraph} ? 'proposed' : 'BMP' :> other unicode discouraged
+ +