Martin Hosken > Encode-UTR22-0.14 > Encode::UTR22

Download:
Encode-UTR22-0.14.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Encode::UTR22 - Implement Unicode TR22 complex conversions

DESCRIPTION ^

Implements all of UTR22 except: validity, header, bidirectional re-ordering, history, v attribute for versioning, aliases - that's the job of another module fbu and fub are treated synonymously with single directional a, with equal priority

Supports UTR22c extensions including: contexts, reordering

INSTANCE VARIABLES ^

'info'

Hash containing attributes from the <characterMapping> element.

'sub'

Two element array containing, in order, the bytes and Unicode replacement characters

'classes'

Hash, indexed by classname, returning Encode::UTR22::Regexp::class object.

'rules'

Array of rules, each rule being a hash.

'contexts'

Hash, indexed by contextname, returning Encode::UTR22::Regexp::group object representing a context expression.

'orders'

Hash, indexed by 'bytes' or 'unicode', returning hash containing ordering elements 'b', 'u', 'bctxt', 'actxt'

METHODS ^

new( $infile [, %parms ] )

Create new instance, parsing and compiling the UTR22 xml

process_file( $infile [, %params ] )

Create and return a new instance, and parse (but do not compile) a UTR22 xml file

compile( [ %params ] )

Compile a UTR22 object. Parameters recognized

'toBytes'

Determines which direction that map will be compiled. True = compile for Unicode to Bytes. False = compile for Bytes to Unicode. Default is both.

'debug'

Turn on debugging.

decode( $sourceByteString [, CHECK] )

Perform Bytes to Unicode conversion.

encode( $sourceUnicodeString [, CHECK])

Perform Unicode to Bytes conversion.

COPYRIGHT ^

This module is copyright SIL International and is distributed under the same terms as Perl itself.

syntax highlighting: