MARC::Charset::Code - represents a MARC-8/UTF-8 mapping
Each mapping from a MARC-8 value to a UTF-8 value is represented by a MARC::Charset::Code object in a MARC::Charset::Table.
The constructor.
A descriptive name for the code point.
A string representing the MARC-8 bytes codes.
A string representing the UCS code point in hex.
The MARC-8 character set code.
Returns true/false to tell if the character is a combining character.
A stringified version of the object suitable for pretty printing.
Returns the unicode character. Essentially just a helper around ucs().
The string representing the MARC-8 encoding.
Returns the name of the character set, instead of the code.
Returns a stringified version of the object.
Returns a hash code for this Code object for looking up the object using MARC8. First portion is the character set code and the second is the MARC-8 value.
Returns a hash code for uniquely identifying a Code by it's UCS value.
Returns 'G0' or 'G1' indicating where the character is typicalling used in the MARC-8 environment.
Returns an escape sequence to move to the Code from another marc-8 character set.
Returns the charset value, not the hex sequence.
To install MARC::Charset, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MARC::Charset
CPAN shell
perl -MCPAN -e shell install MARC::Charset
For more information on module installation, please visit the detailed CPAN module installation guide.