From: Mischa POSLAWSKY Date: Wed, 22 Mar 2017 18:04:30 +0000 (+0100) Subject: digraphs: link to xorg variant, adapt title and intro X-Git-Tag: v1.9~13 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/329d478b0e0861a78faf665186715a587969d203 digraphs: link to xorg variant, adapt title and intro --- diff --git a/digraphs.plp b/digraphs.plp index e5003b6..887d1ab 100644 --- a/digraphs.plp +++ b/digraphs.plp @@ -2,33 +2,41 @@ use 5.010; # state my $mode = ($ENV{PATH_INFO} // '') eq '/xorg' || exists $get{xorg}; +my $modename = $mode ? 'X.Org' : 'RFC-1345'; Html({ title => 'digraph cheat sheet', version => '1.1', description => [ - "Complete table of digraph characters from RFC-1345.", + "Complete table of digraph characters from $modename.", ], keywords => [qw' digraph mnemonic compose composition pair - character char glyph table unicode vim + character char glyph table unicode vim xorg x11 x '], stylesheet => [qw'light'], data => [qw( digraphs.inc.pl )], }); :> -

RFC-1345 Digraphs

- -

Character mnemonics -following composition key ⎄: -i^k in Vim, -^u^\ in Emacs, -^a^v in Screen. -Also see common Unicode.

- -

Unofficial proposals -are available as ex commands.

+

<:= $modename :> Digraphs

+ +

Character mnemonics following compose key ⎄<: +say join("\n", + $mode ? ( + ' in the X Window System (Shift+AltGr by default).', + 'Differences from RFC-1345 are indicated.', + ) : (':', + 'i^k in Vim,', + '^u^\ in Emacs,', + '^a^v in Screen.', + 'Similar but different from X.Org.', + ), + 'Also see common Unicode.

', +); +say '

Unofficial proposals', + ' are available as ex commands.' if not $mode; +:> <: my $di = do 'digraphs.inc.pl'