#! /usr/bin/perl

while (<>) {
        s/« +/« /g;
        s/ +»/ »/g;
        s/(\S) ([:;!?])/\1 \2/g;
        print;
}
