NAME

MARC::Detrans::Rule

SYNOPSIS

use MARC::Detrans::Rule;

my $rule = MARC::Detrans::Rule->new( 
    from    => 'b', 
    to      => 'B',
    escape  => '(B'
);

DESCRIPTION

It's unlikely that you'll want to use MARC::Detrans::Rule directly since other modules wrap access to it. Each detransliteration rule is represented as a MARC::Detrans::Rule object, which basically provides the Romanized text and the corresponding MARC-8 or UTF-8 text, along with an escape character (for MARC-8) rules.

METHODS

new()

from()

Returns the Romanized text that this rule refers to.

to()

Returns the MARC-8 or UTF-8 text that the corresponding Romanized text should be converted to.

escape()

Returns a MARC-8 character set escape sequence to be used, or undef if the rule is for an UTF-8 mapping.

AUTHORS

  • Ed Summers <ehs@pobox.com>