
MARC::Detrans::Rules - A set of detransliteration rules

use MARC::Detrans::Rules;
my $rules = MARC::Detrans::Rules->new();
$rules->addRule( MARC::Detrans::Rule->new( from=>'a', to='b' ) );

MARC::Detrans::Rules provides the core functionality for managing detransliteration rules and for converting transliterated text to MARC-8. A MARC::Detrans::Rules object is essentially a collection of MARC::Detrans::Rule objects which are consulted during a call to convert().

Create an empty rules object to add individual rules to.
Add a MARC::Detrans::Rule to the rules object.
convert() applies the rules contained in the MARC::Detrans::Rules object to convert a string that is passed in.
Will return the latest error encountered during a call to convert(). Can be useful for determining why a call to convert() failed. A side effect of calling error() is that the error slot is reset.
