1MARC::Charset::Code(3)User Contributed Perl DocumentationMARC::Charset::Code(3)
2
3
4

NAME

6       MARC::Charset::Code - represents a MARC-8/UTF-8 mapping
7

SYNOPSIS

DESCRIPTION

10       Each mapping from a MARC-8 value to a UTF-8 value is represented by a
11       MARC::Charset::Code object in a MARC::Charset::Table.
12

METHODS

14   new()
15       The constructor.
16
17   name()
18       A descriptive name for the code point.
19
20   marc()
21       A string representing the MARC-8 bytes codes.
22
23   ucs()
24       A string representing the UCS code point in hex.
25
26   charset_code()
27       The MARC-8 character set code.
28
29   is_combining()
30       Returns true/false to tell if the character is a combining character.
31
32   marc_left_half()
33       If the character is the right half of a "double diacritic", returns a
34       hex string representing the MARC-8 value of the left half.
35
36   marc_right_half()
37       If the character is the left half of a "double diacritic", returns a
38       hex string representing the MARC-8 value of the right half.
39
40   to_string()
41       A stringified version of the object suitable for pretty printing.
42
43   char_value()
44       Returns the unicode character. Essentially just a helper around ucs().
45
46   g0_marc_value()
47       The string representing the MARC-8 encoding for lookup.
48
49   marc_value()
50       The string representing the MARC-8 encodingA for output.
51
52   charset_name()
53       Returns the name of the character set, instead of the code.
54
55   to_string()
56       Returns a stringified version of the object.
57
58   marc8_hash_code()
59       Returns a hash code for this Code object for looking up the object
60       using MARC8. First portion is the character set code and the second is
61       the MARC-8 value.
62
63   utf8_hash_code()
64       Returns a hash code for uniquely identifying a Code by it's UCS value.
65
66   default_charset_group
67       Returns 'G0' or 'G1' indicating where the character is typicalling used
68       in the MARC-8 environment.
69
70   get_marc8_escape
71       Returns an escape sequence to move to the Code from another marc-8
72       character set.
73
74   charset_value
75       Returns the charset value, not the hex sequence.
76
77
78
79perl v5.32.0                      2020-07-28            MARC::Charset::Code(3)
Impressum