X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/61672b1912da0a1b1669259718e04b268367f98e..f1614fb2f16c1e75c8dcef8a9d3e1e46cc236bee:/cc.plp diff --git a/cc.plp b/cc.plp index b36d744..afd10ed 100644 --- a/cc.plp +++ b/cc.plp @@ -42,7 +42,7 @@ sub quote { printf ''; print ''; for my $section (qw{thead}) { - print "<$section>
↱"; + print "<$section>
↳"; print '', $_ for 'a' .. 'z'; print "\n"; } @@ -69,13 +69,13 @@ 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) + s/(\S{4}[b-df-hj-np-tv-xz])(\w{2,})/$1./g; # abbreviate (at consonant) $_ = quote($_); } $name =~ s/([^,]*), (.*)/$2 $1/; @@ -102,6 +102,16 @@ sub quote { reserved user-assigned
+ +
+ +