Lingua::LO::Romanize::Word - Class for words, used by Lingua::LO::Romanize.
Version 0.10
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
Creates a new Lingua::LO::Romanize::Word object, a word_str is required.
If set to 1 (TRUE), the syllables will be hyphenated when romanized is called. Default is 0 (FALSE), not hyphenated.
Romanize the 'word' and return the romanized string accourding to the BGN/PCGN standard.
Returns the word as the original string.
Returns an array reference to all Lingua::LO::Romanize::Syllable
Joakim Lagerqvist, <jokke at cpan.org>
<jokke at cpan.org>
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.
bug-lingua-lo-romanize at rt.cpan.org
Lingua::LO::Romanize
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.
To install Lingua::LO::Romanize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::LO::Romanize
CPAN shell
perl -MCPAN -e shell install Lingua::LO::Romanize
For more information on module installation, please visit the detailed CPAN module installation guide.