X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/d35f5ce5ec4102ccf530ec3648a70663da85c1d4..7eef0272a71f7610177d3a617f947758e415d565:/unicode.plp?ds=sidebyside
diff --git a/unicode.plp b/unicode.plp
index c22d19e..c9f8ef1 100644
--- a/unicode.plp
+++ b/unicode.plp
@@ -11,6 +11,7 @@ Html({
unicode glyph char character reference common ipa symbol sign mark table digraph
'],
stylesheet => [qw'light dark red'],
+ data => [qw'digraphs.inc.pl'],
});
:>
@@ -28,19 +29,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 +56,8 @@ print_glyph_tables(
.>Türkçe ç Ä Ä± Ä° ö Šü
.>Esperanto Ä Ä Ä¥ ĵ Å Å
}] : (),
- [qw{. ¿ ⦠ã â â . ⽠· â» â â }],
[qw{. α β}],
+ [qw{. ¿ ⦠ã â â . ⽠· â» â â }],
'Symbols',
[qw{. ¤ ¢ ⥠⬠£ ⨠$ Â¥ . ฿ â« â ⦠Ⱡ⮠⩠âª}],
@@ -212,10 +212,12 @@ $verbose ? (
ascii
- | digraph
- | proposed
+ | <:= $glyphs->{digraph} ? 'digraph' : 'latin1' :>
+ | <:= $glyphs->{digraph} ? 'proposed' : 'BMP' :>
| other unicode
| discouraged
|
+
+