X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/90bfe9a4d5cb83c325d989f260c1e1e1f6c74427..706180618dd0dd43d6569359cb35bca84bc5ce51:/cc.plp?ds=sidebyside diff --git a/cc.plp b/cc.plp index 2162668..7d1b0d8 100644 --- a/cc.plp +++ b/cc.plp @@ -1,27 +1,17 @@ -<: -use utf8; -use strict; -use warnings; -use open IO => ':utf8'; - -our $VERSION = 'v1.0'; - -$header{content_type} = 'text/html; charset=utf-8'; +<(common.inc.plp)><: + our $VERSION = 'v1.0'; :> - +
â±"; + print "<$section> | |||
---|---|---|---|
â³"; print ' | ', $_ for 'a' .. 'z'; print "\n"; } @@ -69,18 +51,18 @@ sub quote { s/ republic\b//gi; s/ islands?\b//gi; s/\bthe //g; - s/ and / & /g; + s/ and / & /g and s/(?<=.)[a-z ]+//g; s/\bsaint /st /gi; - s/South /S-/g; - s/North /N-/g; + s/South(?:ern)? /S-/g; + s/North(?:ern)? /N-/g; s/New /n./g; s/(\S)(\S+)-/$1-/g; # strip most chars preceding dash - s/(\S{4}[b-df-hj-np-tv-xz])(\S{2,})/$1./g; # abbreviate (at consonant) - $_ = quote($_); + s/(\S{4}[b-df-hj-np-tv-xz])((?%s', - $_ ? 'X '.$class : '', quote("$code: $name"), $_; + $_ ? 'X '.$class : '', EscapeHTML("$code: $name"), $_; } print "\n"; } @@ -102,14 +84,26 @@ sub quote { | reserved | user-assigned |