X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/623177b99e1aa90c459e5710df34a8cd33ad2b01..d5673328262606bd06f36fd41f0ec866977db7b2:/keyboard/altgr/index.inc.plp diff --git a/keyboard/altgr/index.inc.plp b/keyboard/altgr/index.inc.plp index 7966426..d4d8bde 100644 --- a/keyboard/altgr/index.inc.plp +++ b/keyboard/altgr/index.inc.plp @@ -47,6 +47,18 @@ Html({ text-align: right; } +@font-face { + font-family: osicons; + src: url(/osicon.ttf); +} +.icon { + font-family: osicons; +} +.keys.cmp tbody .ni { + font-size: 80%; + padding: 0 .2em; +} + .graph { display: block; line-height: 1ex; @@ -98,10 +110,10 @@ require Shiar_Sheet::Keyboard; use List::Util qw( uniq max ); my %caticon = ( - legacy => "\N{TOP HAT}", - windows => "\x{1FA9F}", # \N{WINDOW} - macos => "\N{RED APPLE}", - xorg => "\N{PENGUIN}", + legacy => qq{\N{TOP HAT}}, + windows => qq{\x{1FA9F}}, # \N{WINDOW} + macos => qq{\N{RED APPLE}}, + xorg => qq{\N{PENGUIN}}, ); printf '
', @sample ? 'section' : 'gallery'; @@ -135,7 +147,8 @@ for my $inc (sort { my $keys = Shiar_Sheet::Keyboard->new($table); for my $mode ($keys->{mode} ? sort keys %{ $keys->{mode} } : '') { my %inventory; - $inventory{ s/ (?!ext).*//r }++ for values %{ $keys->{def}{$mode} }; + $inventory{$_}++ for grep { /^g[2-9]/ } map { s/ (?!ext).*//r } + values %{ $keys->{def}{$mode} }; print ''; print "" for $keys->{key}{$mode} =~ s/\s.*//r || (); for my $g (sort keys %inventory) { @@ -148,8 +161,8 @@ for my $inc (sort { } say ''; } - print "\t"; - print join '
', map { $caticon{$_} // () } split m{/}, $keys->{category}; + print "\t"; + print join ' ', map { $caticon{$_} // () } split m{/}, $keys->{category}; say ''; $keys->print_key('', $_, $keys->{def}{''}{$_} // 'ni') for @sample; say '';