voxforge.org
VoxForge Dev

Changeset 2339

Show
Ignore:
Timestamp:
10/18/07 14:16:44 (1 year ago)
Author:
kmaclean
Message:

fix for Ticket #268: README sampling rate in kHz - made matching of Readme contents case insensitive

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Trunk/Scripts/Audio_scripts/UserSubmission/README.pm

    r2263 r2339  
    9292                $line =~ s/\;//g; # remove semi-colons   
    9393                $line =~ s/\.//g; # remove period                                        
    94                 if ($line =~ /Sampling rate:/) { 
     94                if ($line =~ /Sampling rate:/i) { 
    9595                        $line =~ s/ //g; # remove spaces         
    9696                        $line =~ s/-//g; # remove dashes                                 
     
    101101                        $samplingrate = $samplingrate . "kHz"; 
    102102                #       print "Samplingrate:$samplingrate\n" if $debug;  
    103                 } elsif ($line =~ /Sample rate format:/) { 
     103                } elsif ($line =~ /Sample rate format:/i) { 
    104104                        $line =~ s/ //g; # remove spaces         
    105105                        $line =~ s/-//g; # remove dashes         
     
    108108                        $samplingrateformat = $samplingrateformat ."bit"; 
    109109                #        print "Samplingrateformat:$samplingrateformat\n" if $debug;     
    110                 } elsif ($line =~ /Pronunciation dialect:/) { 
     110                } elsif ($line =~ /Pronunciation dialect:/i) { 
    111111                        ($title, $dialect) =split(/\:/, $line); 
    112112                        $dialect =~ s/^ //g;             # remove leading space  
    113113                #        print "dialect:$dialect\n" if $debug; 
    114                 } elsif ($line =~ /File type:/) { 
     114                } elsif ($line =~ /File type:/i) { 
    115115                        $line =~ s/ //g; # remove spaces         
    116116                        ($title, $filetype) =split(/\:/, $line);