From 881b4a69e47004c59f35979620b65fd3d4aaaf16 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Wed, 4 Feb 2015 01:25:45 +0100 Subject: [PATCH] keys: drop ascii support --- Shiar_Sheet/KeySigns.pm | 4 +--- common.inc.plp | 5 ++--- keyboard.plp | 3 --- keys.inc.pl | 38 +++++++++++++++++++------------------- less.plp | 4 ---- mplayer.plp | 4 ---- mutt.plp | 4 ---- nethack.plp | 4 ---- readline.inc.pl | 2 +- readline.plp | 4 ---- screen.plp | 4 ---- starcraft.plp | 5 +---- vi.inc.pl | 8 ++++---- vi.plp | 4 ---- vimperator.plp | 4 ---- 15 files changed, 28 insertions(+), 69 deletions(-) diff --git a/Shiar_Sheet/KeySigns.pm b/Shiar_Sheet/KeySigns.pm index f33b224..069b8fa 100644 --- a/Shiar_Sheet/KeySigns.pm +++ b/Shiar_Sheet/KeySigns.pm @@ -4,14 +4,12 @@ use utf8; use strict; use warnings; -our $VERSION = 'v1.01'; +our $VERSION = 'v1.02'; sub import { my $class = shift; my %sign = ( - -ascii => 0, - charset=> 'utf-8', arg => '·', # described as 'dot' args => '⁚', argi => '′', diff --git a/common.inc.plp b/common.inc.plp index 1e3f30a..4bf28bf 100644 --- a/common.inc.plp +++ b/common.inc.plp @@ -8,7 +8,7 @@ use open ':std' => ':utf8'; use File::stat 'stat'; use HTTP::Date; -use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii} +use Shiar_Sheet::KeySigns qw(%sign); our $style; our $showkeys = !exists $get{keys} ? undef : @@ -87,7 +87,6 @@ sub Html { ref $_ eq 'ARRAY' and $_ = stylesheet(@$_)."\n" for $meta->{stylesheet}; # other vars - my $sep = $meta->{charset} eq 'utf-8' ? '•' : ' -- '; my ($file) = $ENV{SCRIPT_FILENAME} =~ m{ ([^/]+) \.plp$ }x; # leading output @@ -116,7 +115,7 @@ EOT rel="code" title="Written in Perl">plp $meta->{version} - created by $sep + created by $sign{sep} AGPLv3

diff --git a/keyboard.plp b/keyboard.plp index 672b214..3628ac3 100644 --- a/keyboard.plp +++ b/keyboard.plp @@ -95,9 +95,6 @@ $keys->print_rows($get{rows}, [0]);