Skip to content

Instantly share code, notes, and snippets.

@jimregan
Created July 20, 2017 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimregan/fd717015bc50847cdf6788a4d71f0d48 to your computer and use it in GitHub Desktop.
Save jimregan/fd717015bc50847cdf6788a4d71f0d48 to your computer and use it in GitHub Desktop.
#!/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