MARC-File-MARCMaker
view release on metacpan or search on metacpan
lib/MARC/File/MARCMaker.pm view on Meta::CPAN
$inchar{Ohorn} = chr(0xac); # latin capital letter o with horn
$inchar{Uhorn} = chr(0xad); # latin capital letter u with horn
$inchar{mlrhring} = chr(0xae); # modifier letter right half ring (alif)
$inchar{mllhring} = chr(0xb0); # modifier letter left half ring (ayn)
$inchar{lstrok} = chr(0xb1); # latin small letter l with stroke
$inchar{ostrok} = chr(0xb2); # latin small letter o with stroke
$inchar{dstrok} = chr(0xb3); # latin small letter d with stroke
$inchar{thorn} = chr(0xb4); # latin small letter thorn (icelandic)
$inchar{aelig} = chr(0xb5); # latin small letter ae
$inchar{oelig} = chr(0xb6); # latin small letter oe
$inchar{hardsign} = chr(0xb7); # modifier letter hard sign
$inchar{inodot} = chr(0xb8); # latin small letter dotless i
$inchar{pound} = chr(0xb9); # pound sign
$inchar{eth} = chr(0xba); # latin small letter eth
$inchar{ohorn} = chr(0xbc); # latin small letter o with horn
$inchar{uhorn} = chr(0xbd); # latin small letter u with horn
$inchar{deg} = chr(0xc0); # degree sign
$inchar{scriptl} = chr(0xc1); # latin small letter script l
$inchar{phono} = chr(0xc2); # sound recording copyright
$inchar{copy} = chr(0xc3); # copyright sign
$inchar{sharp} = chr(0xc4); # sharp
lib/MARC/File/MARCMaker.pm view on Meta::CPAN
$outchar{chr(0xac)} = '{Ohorn}'; # latin capital letter o with horn
$outchar{chr(0xad)} = '{Uhorn}'; # latin capital letter u with horn
$outchar{chr(0xae)} = '{mlrhring}'; # modifier letter right half ring (alif)
$outchar{chr(0xb0)} = '{mllhring}'; # modifier letter left half ring (ayn)
$outchar{chr(0xb1)} = '{lstrok}'; # latin small letter l with stroke
$outchar{chr(0xb2)} = '{ostrok}'; # latin small letter o with stroke
$outchar{chr(0xb3)} = '{dstrok}'; # latin small letter d with stroke
$outchar{chr(0xb4)} = '{thorn}'; # latin small letter thorn (icelandic)
$outchar{chr(0xb5)} = '{aelig}'; # latin small letter ae
$outchar{chr(0xb6)} = '{oelig}'; # latin small letter oe
$outchar{chr(0xb7)} = '{hardsign}'; # modifier letter hard sign
$outchar{chr(0xb8)} = '{inodot}'; # latin small letter dotless i
$outchar{chr(0xb9)} = '{pound}'; # pound sign
$outchar{chr(0xba)} = '{eth}'; # latin small letter eth
$outchar{chr(0xbc)} = '{ohorn}'; # latin small letter o with horn
$outchar{chr(0xbd)} = '{uhorn}'; # latin small letter u with horn
$outchar{chr(0xc0)} = '{deg}'; # degree sign
$outchar{chr(0xc1)} = '{scriptl}'; # latin small letter script l
$outchar{chr(0xc2)} = '{phono}'; # sound recording copyright
$outchar{chr(0xc3)} = '{copy}'; # copyright sign
$outchar{chr(0xc4)} = '{sharp}'; # sharp
t/marcmaker.t view on Meta::CPAN
a => "Test record from text /",
c => "Bryan Baldus ... [et al.].",
],
[500, '', '',
a => 'This is a test of ordinary features like replacement of the mnemonics for currency and dollar signs ($) and backslashes (backsolidus \ ) used for blanks in certain areas.'
],
[500, '', '',
a => 'This is a test for the conversion of curly braces; the opening curly brace ( { ) and the closing curly brace ( } ).'
],
[500, '', '',
a => "This is a test of diacritics like the uppercase Polish L in ¡âodâz, the uppercase Scandinavia O in ¢st, the uppercase D with crossbar in £uro, the uppercase Icelandic thorn in ¤ann, the uppercase digraph AE in ¥gir, the uppercase digrap...
],
[650, '', '0',
a => 'MARC records.',
],
);
is( $nfields, 7, "All the fields added OK" );
my @fields500 = $record->field('500');
t/marcmaker.t view on Meta::CPAN
my @recoded_500s = $record_from_maker->field('500');
print $recoded_500s[0]->as_string(), "\n";
print $recoded_500s[1]->as_string(), "\n";
#######################
### Diacritics test ###
#######################
is ($fields500[2]->as_marcmaker(), "=500 \\\\\$aThis is a test of diacritics like the uppercase Polish L in {Lstrok}{acute}od{acute}z, the uppercase Scandinavia O in {Ostrok}st, the uppercase D with crossbar in {Dstrok}uro, the uppercase Icelandic t...
is ($recoded_500s[2]->as_string(), "This is a test of diacritics like the uppercase Polish L in ¡âodâz, the uppercase Scandinavia O in ¢st, the uppercase D with crossbar in £uro, the uppercase Icelandic thorn in ¤ann, the uppercase digraph AE in ¥gir...
#=500 \\$aThis is a test of diacritics like the uppercase Polish L in {Lstrok}{acute}od{acute}z, the uppercase Scandinavia O in {Ostrok}st, the uppercase D with crossbar in {Dstrok}uro, the uppercase Icelandic thorn in {THORN}ann, the uppercase digr...
( run in 2.000 seconds using v1.01-cache-2.11-cpan-71847e10f99 )