Created
July 20, 2017 17:48
-
-
Save jimregan/fd717015bc50847cdf6788a4d71f0d48 to your computer and use it in GitHub Desktop.
This file contains 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 | |
use warnings; | |
use strict; | |
use utf8; | |
binmode(STDIN, ":utf8"); | |
my %tweak = ( | |
'áit éigin' => '', | |
'ar shlí éigin' => 't', | |
'am éigin' => '', | |
'ar bhealach éigin' => 't', | |
'ar chuma éigin' => 't', | |
'ar dhóigh éigin' => 't', | |
'éigin' => '', | |
); | |
my %fixU = ( | |
'éigin' => 'inteacht' | |
); | |
my %fixC = ( | |
'éigin' => 'eicint' | |
); | |
my %fixM = ( | |
'éigin' => 'éigin' | |
); | |
while(<>) { | |
chomp; | |
my $dialect = ''; | |
if (/\/Can([CUM])\//) { | |
$dialect = $1; | |
} | |
s/\.mp3$//; | |
my @tmp = split/\//; | |
my $text = my $tmp[$#tmp]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment