X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/eb571732118d75658b26ecc68a48682baadca000..aeb47e7600bf4e34a37f3ebfe0e6edc534d92147:/digraphs.plp diff --git a/digraphs.plp b/digraphs.plp index 718915d..4c45044 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -3,7 +3,7 @@ use 5.010; # state Html({ title => 'digraph cheat sheet', - version => 'v1.0', + version => 'v1.1', description => [ "Complete table of digraph characters from RFC-1345.", ], @@ -32,6 +32,13 @@ are available as ex commands.

my $di = do 'digraphs.inc.pl' or die "Error loading digraphs data: ", $@ // $!; +if (exists $get{v}) { + # show characters for inverted mnemonics (vim alternatives) + $di->{ substr($_, 1, 1) . substr($_, 0, 1) } ||= + [ $di->{$_}->[0], '', 'l0 ex', '', $di->{$_}->[4] ] + for grep { ref $di->{$_} } keys %{$di}; +} + my @chars = ( [qw{! " % ' ( ) * + , - . /}], ['0'..'9'], [qw{: ; < = > ?}], @@ -116,7 +123,19 @@ for my $c1group (@chars) { print "\n"; print '
' if exists $get{split}; } + +if (exists $get{xorg}) { :> +
+ +
matching RFC-1345 + matching proposal + unique to Xorg + conflict + duplicate +
+
+<: } else { :>
control @@ -149,3 +168,4 @@ print '
' if exists $get{split};
+<: }