#!/usr/bin/perl -ps # list -- escape code listing for troff if (/^\.\s*l\(\s*$/ .. /^\.\s*l\)\s*$/) { not $E and s/^\\!// and next; if (/^\.\s*l\(\s*$/) { print "$p\n" if $p; } elsif (/^\.\s*l\)\s*$/) { print "$s\n" if $s; } else { s/\\/\\$&/g; s/^/\\&/g; s/'/\\(aq/g; s/\`/\\(ga/g; } }