Changeset 10999 for trunk/gsdl


Ignore:
Timestamp:
2005-12-16T13:57:08+13:00 (18 years ago)
Author:
mdewsnip
Message:

Now all the Greenstone encodings are available for the "-input_encoding" option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/explode_metadata_database.pl

    r10471 r10999  
    1111no strict 'subs'; # allow barewords (eg STDERR) as function arguments
    1212no strict 'refs'; # allow filehandles to be variables and vice versa
     13
     14use encodings;
    1315use printusage;
    1416use parse2;
     
    2325      { 'name' => "unicode",
    2426    'desc' => "{BasPlug.input_encoding.unicode}" } ];
     27
     28my $e = $encodings::encodings;
     29foreach my $enc (sort {$e->{$a}->{'name'} cmp $e->{$b}->{'name'}} keys (%$e))
     30{
     31    my $hashEncode =
     32    {'name' => $enc,
     33     'desc' => $e->{$enc}->{'name'}};
     34   
     35    push(@{$unicode_list},$hashEncode);
     36}
    2537
    2638my $arguments =
Note: See TracChangeset for help on using the changeset viewer.