Text::Shoebox

Text::Shoebox is a Perl module to read and write SIL Shoebox Standard Format (.sf) files.
Download

Text::Shoebox Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Sean M. Burke
  • Publisher web site:
  • http://search.cpan.org/~sburke/

Text::Shoebox Tags


Text::Shoebox Description

Text::Shoebox is a Perl module to read and write SIL Shoebox Standard Format (.sf) files. Text::Shoebox is a Perl module to read and write SIL Shoebox Standard Format (.sf) files.SYNOPSIS use Text::Shoebox; my $lex = []; foreach my $file (@ARGV) { read_sf( from_file => $file, into => $lex, ) or warn "read from $file failedn"; } print scalar(@$lex), " entries read.n"; die "hw field-names differn" unless are_hw_keys_uniform($lex); warn "hw field-values aren't uniquen" unless are_hw_values_unique($lex); write_sf(from => $lex, to_file => "merged.sf") or die "Couldn't write to merged.sf: $!";The Summer Institute of Linguistics (http://www.sil.org/) makes a piece of free software called "the Linguist's Shoebox", or just "Shoebox" for short. It's a simple database program generally used for making lexicon databases (altho it can also be used for databases of field notes, etc.).Shoebox can export its databases to SF (Standard Format) files, a simple text format. Reading and writing those SF files is what this Perl module, Text::Shoebox, is for. (I have heard that Standard Format predates Shoebox quite a bit, and is used by other programs. If you use SF files with something other than Shoebox, I'd be interested in hearing about it, particularly about whether such files and Text::Shoebox are happily compatible.) Requirements: · Perl


Text::Shoebox Related Software