Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

marc::charset::code(3pm) [debian man page]

MARC::Charset::Code(3pm)				User Contributed Perl Documentation				  MARC::Charset::Code(3pm)

NAME
MARC::Charset::Code - represents a MARC-8/UTF-8 mapping SYNOPSIS
DESCRIPTION
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. METHODS
new() The constructor. name() A descriptive name for the code point. marc() A string representing the MARC-8 bytes codes. ucs() A string representing the UCS code point in hex. charset_code() The MARC-8 character set code. is_combining() Returns true/false to tell if the character is a combining character. to_string() A stringified version of the object suitable for pretty printing. char_value() Returns the unicode character. Essentially just a helper around ucs(). marc_value() The string representing the MARC-8 encoding. charset_name() Returns the name of the character set, instead of the code. to_string() Returns a stringified version of the object. marc8_hash_code() 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. utf8_hash_code() Returns a hash code for uniquely identifying a Code by it's UCS value. default_charset_group Returns 'G0' or 'G1' indicating where the character is typicalling used in the MARC-8 environment. get_marc8_escape Returns an escape sequence to move to the Code from another marc-8 character set. charset_value Returns the charset value, not the hex sequence. perl v5.12.4 2010-03-29 MARC::Charset::Code(3pm)

Check Out this Related Man Page

MARC::File(3pm) 					User Contributed Perl Documentation					   MARC::File(3pm)

NAME
MARC::File - Base class for files of MARC records SYNOPSIS
use MARC::File::USMARC; # If you have werid control fields... use MARC::Field; MARC::Field->allow_controlfield_tags('FMT', 'LDX'); my $file = MARC::File::USMARC->in( $filename ); while ( my $marc = $file->next() ) { # Do something } $file->close(); undef $file; EXPORT
None. METHODS
in() Opens a file for import. Ordinarily you will use "MARC::File::USMARC" or "MARC::File::MicroLIF" to do this. my $file = MARC::File::USMARC->in( 'file.marc' ); Returns a "MARC::File" object, or "undef" on failure. If you encountered an error the error message will be stored in $MARC::File::ERROR. Optionally you can also pass in a filehandle, and "MARC::File". will "do the right thing". my $handle = IO::File->new( 'gunzip -c file.marc.gz |' ); my $file = MARC::File::USMARC->in( $handle ); next( [&filter_func] ) Reads the next record from the file handle passed in. The $filter_func is a reference to a filtering function. Currently, only USMARC records support this. See MARC::File::USMARC's "decode()" function for details. Returns a MARC::Record reference, or "undef" on error. skip() Skips over the next record in the file. Same as "next()", without the overhead of parsing a record you're going to throw away anyway. Returns 1 or undef. warnings() Simlilar to the methods in MARC::Record and MARC::Batch, "warnings()" will return any warnings that have accumulated while processing this file; and as a side-effect will clear the warnings buffer. close() Closes the file, both from the object's point of view, and the actual file. write() Writes a record to the output file. This method must be overridden in your subclass. decode() Decodes a record into a USMARC format. This method must be overridden in your subclass. RELATED MODULES
MARC::Record TODO
o "out()" method We only handle files for input right now. LICENSE
This code may be distributed under the same terms as Perl itself. Please note that these modules are not products of or supported by the employers of the various contributors to the code. AUTHOR
Andy Lester, "<andy@petdance.com>" perl v5.10.1 2010-03-29 MARC::File(3pm)
Man Page