NAME

spt2txt.pl - Munge an SPT export into plain text


SYNOPSIS

  spt2txt.pl <spt.txt >plain.txt


DESCRIPTION

The spt2txt.pl program takes a bulk export produced by the Scout Portal Toolkit (SPT) software, and rewrites in a simple attribute value text format, suitable for indexing by an arbtirary full text searching package.

Note that the records in the resulting output are sent to STDOUT in a single batch, delimited by blank lines. Depending on the software in use for indexing, it may be necessary to split them into separate files (for example).


EXAMPLE

  $ cat wobble.spt
  The Man Who Mistook His Wife for a Hat          The Man Who Mistook
  His Wife for a Hat is populated by a cast as strange as that of the
  most fantastic fiction.  The subject of this strange and wonderful
  book is what happens when things go wrong with parts of the brain
  most of us don't know exist...  Dr Sacks shows the awesome powers
  of our mind and just how delicately balanced they have to be -
  Sunday Times.     http://www.irsociety.com/sacks.html
                             1985     1985    1985    1985    0
  $ spt2txt.pl <wobble.spt
  Title: The Man Who Mistook His Wife for a Hat
  AlternateTitle: 
  Description: The Man Who Mistook His Wife for a Hat is populated by
   a cast as strange as that of the most fantastic fiction.  The
   subject of this strange and wonderful book is what happens when
   things go wrong with parts of the brain most of us don't know
   exist...  Dr Sacks shows the awesome powers of our mind and just
   how delicately balanced they have to be - Sunday Times.
  Url: http://www.irsociety.com/sacks.html
  Source: 
  Relation: 
  Coverage: 
  Rights: 
  EmailAddress: 
  DateIssued: 1985
  DateOfRecordCreation: 1985
  DateRecordChecked: 1985
  DateLastModified: 1985
  VerificationAttempts: 0
  ControlledName: 
  ControlledNameTypeName: 
  ClassificationName: 
  ClassificationTypeId:


SEE ALSO

spt2ldif.pl, spt2iafa.pl


COPYRIGHT

Copyright (c) 2002, Martin Hamilton <imeshtk-utils@martinh.net> All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

It was developed at the Department of Computer Science at Loughborough University, as part of the joint JISC/NSF IMesh Toolkit project.


AUTHOR

Martin Hamilton <imeshtk-utils@martinh.net>