Joakim Lagerqvist > Lingua-LO-Romanize-0.09 > Lingua::LO::Romanize::Word

Download:
Lingua-LO-Romanize-0.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 0.09   Source   Latest Release: Lingua-LO-Romanize-0.10

NAME ^

Lingua::LO::Romanize::Word - Class for words, used by Lingua::LO::Romanize.

VERSION ^

Version 0.09

SYNOPSIS ^

Lingua::LO::Romanize::Word is used by Lingua::LO::Romanize to divide a string to a collection of words. It is recommended to use Lingua::LO::Romanize instead of this class directly (even if it is possible).

    use Lingua::LO::Romanize::Word;

    my $foo = Lingua::LO::Romanize::Word->new(word_str => 'ພາສາລາວ');

    my $bar = $foo->romanize;           # $bar will hold the string 'phasalao'
    $foo->hyphen(1);                    # set hyphenation between syllables
    $bar = $foo->romanize;              # $bar will hold the string 'pha-sa-lao'
    $bar = $foo->word_str;              # $bar will hold the string 'ພາສາລາວ'
    
    my $syllables_array_ref = $foo->all_syllables; # will return an array reference to all syllables;

For more information, please see Lingua::LO::Romanize

METHODS ^

new

Creates a new Lingua::LO::Romanize::Word object, a word_str is required.

hyphen

If set to 1 (TRUE), the syllables will be hyphenated when romanized is called. Default is 0 (FALSE), not hyphenated.

romanize

Romanize the 'word' and return the romanized string accourding to the BGN/PCGN standard.

word_str

Returns the word as the original string.

all_syllables

Returns an array reference to all Lingua::LO::Romanize::Syllable

AUTHOR ^

Joakim Lagerqvist, <jokke at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-lingua-lo-romanize at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Lingua-LO-Romanize. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO ^

Lingua::LO::Romanize

COPYRIGHT & LICENSE ^

Copyright 2009 Joakim Lagerqvist, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: