Last active
March 8, 2026 00:34
-
-
Save teknoraver/c0aa5e45dbddbf4e3c4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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