(common.inc.plp)><:
Html({
title => 'unicode glyph cheat sheet',
version => 'v1.0',
description => [
"Common Unicode characters with digraph or code point, layed out for quick location.",
"Includes general symbols, arrows, drawing characters, and IPA letters.",
],
keywords => [qw'
unicode glyph char character reference common ipa symbol sign mark table digraph
'],
stylesheet => [qw'light dark mono circus red'],
data => [qw'digraphs.inc.pl unicode.inc.pl'],
});
:>
Common Unicode
Glyphs are followed by
digraph or code point,
i^k or i^vu respectively in Vim.
<:
use 5.010;
use Shiar_Sheet::FormatChar;
my $glyphs = Shiar_Sheet::FormatChar->new;
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};
my $tables = do 'unicode.inc.pl' or die $@ || $!;
$glyphs->print(map {
my $_ = /(.*)\?(.*)/ ? ($verbose ? $2 : $1) : $_;
if (/[A-Z]/) {
$_;
}
else {
state $group;
$group = $1 if s{^([^/]+)/}{};
if (s/=(.*)//) {
my @select = split /=/, $1;
my $table = $tables->{$group}->{$_};
my $rowlen;
for ($rowlen = 1; $rowlen++; $rowlen <= $#$table) {
last if $table->[$rowlen] =~ /\./;
}
my @cells = map { $_*$rowlen .. ($_+1)*$rowlen - 1 } @select;
[ @$table[@cells] ];
}
else {
$tables->{$group}->{$_};
}
}
} qw{
Popular
punctuation/quoting
common
symbols/binary?symbols/binary=0
latin/sample=0=1
sample=2=3
?uncommon
punctuation/version
punctuation/marks
Symbols
symbols/currency
cards
?chess
signs1
communic=0?communic
trinity=0?trinity
signs2
Signs
solar
zodiac=0?zodiac
Key commands
keys/spacing
editing
modifier
control
command
?player
Arrows
arrows/single
double
white
black
block
blacktri
whitetri
?-large
?-heavy
Line drawing
lines/double
doubleh
doublev
single
heavy
heavyh
heavyv
straight
curved
diagonal
Blocks
block/square
shades
fill4
fill4i
fill8
IPA
ipa/cons
consco
vowels
?Japanese
?japanese/hira
?hiraderiv
?kata
?kataderiv
});
:>
ascii
| <:= $glyphs->{digraph} ? 'digraph' : 'latin1' :>
| <:= $glyphs->{digraph} ? 'proposed' : 'BMP' :>
| other unicode
| discouraged
|