X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/24bf9d1021a0ce46947726d08c80b102cdee90e9..dcb941a70df08f8bb8a18cf0a4c85ce47aaf5cbd:/unicode.plp?ds=inline
diff --git a/unicode.plp b/unicode.plp
index 4027352..c9f8ef1 100644
--- a/unicode.plp
+++ b/unicode.plp
@@ -11,13 +11,17 @@ Html({
unicode glyph char character reference common ipa symbol sign mark table digraph
'],
stylesheet => [qw'light dark red'],
+ data => [qw'digraphs.inc.pl'],
});
:>
@@ -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{. â â . â â . ⺠⹠. â â . â â }],
+ [qw{. â â . â â . ⺠⹠. â â . â â }, $verbose ? () : qw{. â âº}],
[qw{. Ã¥ ä ö ü à . Ä Ã¦ ø ű Å¿}],
- [qw{. ñ ç é ê è . Å Ä Å³ Šů }],
- [qw{. ¿ ⦠ã â â . ⽠· â» â â }],
+ [qw{
+ . á è õ û ç . Ä
ı ơ ů þ
+ }],
+ $verbose ? [qw{
+ .>Englisc æ ð Ä È Å Ã¾ Æ¿
+ .>Sámi á Ä Ä Å Å¡ ŧ ž
+ .>Slavic Ä
Ä Å Å¯ ź ż ž
+ .>Türkçe ç Ä Ä± Ä° ö Šü
+ .>Esperanto Ä Ä Ä¥ ĵ Å Å
+ }] : (),
[qw{. α β}],
+ [qw{. ¿ ⦠ã â â . ⽠· â» â â }],
'Symbols',
[qw{. ¤ ¢ ⥠⬠£ ⨠$ Â¥ . ฿ â« â ⦠Ⱡ⮠⩠âª}],
@@ -69,7 +81,9 @@ print_glyph_tables(
[qw{. â â± â . ⦠Ⲡâ }], # edit block
[qw{. ⪠⯠â . ⧠⮠â }], # modifier
[qw{. â ⥠â â }], [qw{. âµ â â â }], # command
+$verbose ? (
[qw{. ⺠⩠â â¼ â« . â ⪠⮠â -ââ }], # player ui
+) : (),
'Arrows',
[qw{. â â â â . â - â â . â â â -}],
@@ -198,10 +212,12 @@ $verbose ? (
ascii
- | digraph
- | proposed
+ | <:= $glyphs->{digraph} ? 'digraph' : 'latin1' :>
+ | <:= $glyphs->{digraph} ? 'proposed' : 'BMP' :>
| other unicode
| discouraged
|
+
+