Convert-CharMap
view release on metacpan or search on metacpan
VERSION
This document describes version 0.10 of Convert::CharMap, released
October 14, 2007.
SYNOPSIS
use Convert::CharMap;
my $map = Convert::CharMap->load(CharMapML => 'test.xml');
$map->save(UCM => 'test.ucm');
DESCRIPTION
This module transforms between unicode character map formats, using an
in-memory representation of "CharMapML" as the intermediate format.
Currently this module supports the "CharMapML", "YAML" and "UCM"
(write-only) backends.
COPYRIGHT
Copyright 2003, 2007 by Audrey Tang <cpan@audreyt.org>.
This software is released under the MIT license cited below.
lib/Convert/CharMap.pm view on Meta::CPAN
October 14, 2007.
=head1 SYNOPSIS
use Convert::CharMap;
my $map = Convert::CharMap->load(CharMapML => 'test.xml');
$map->save(UCM => 'test.ucm');
=head1 DESCRIPTION
This module transforms between unicode character map formats, using
an in-memory representation of C<CharMapML> as the intermediate format.
Currently this module supports the C<CharMapML>, C<YAML> and C<UCM>
(write-only) backends.
=head1 AUTHORS
Audrey Tang E<lt>cpan@audreyt.orgE<gt>
=head1 COPYRIGHT
lib/Convert/CharMap/CharMapML.pm view on Meta::CPAN
my $class = shift;
return XMLin( +shift, keeproot => 1 );
}
sub out {
my $class = shift;
return XMLout(
+shift,
keeproot => 1,
xmldecl => '<?xml version="1.0" encoding="UTF-8" ?>' . "\n"
. '<!DOCTYPE characterMapping SYSTEM "http://www.unicode.org/unicode/reports/tr22/CharacterMapping.dtd">'
);
}
1;
( run in 0.532 second using v1.01-cache-2.11-cpan-88abd93f124 )