Skip to content

Instantly share code, notes, and snippets.

@teknoraver
Last active March 8, 2026 00:34
Show Gist options
  • Select an option

  • Save teknoraver/c0aa5e45dbddbf4e3c4a to your computer and use it in GitHub Desktop.

Select an option

Save teknoraver/c0aa5e45dbddbf4e3c4a to your computer and use it in GitHub Desktop.
#!/usr/bin/perl -w
my $lastquot = '';
while(<>) {
$quot = /<(.*)> (.*)/;
$quot = $1;
$line = $2;
if($lastquot ne $quot) {
print "»\n" if($lastquot);
print "$quot: «";
$lastquot = $quot;
} else {
print "\n";
}
$line =~ s/a'/à/g;
$line =~ s/e'/è/g;
$line =~ s/i'/ì/g;
$line =~ s/o'/ò/g;
$line =~ s/u'/ù/g;
$line =~ s/\.\.\./…/g;
print $line;
}
print "»\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment