Lingua::LO::Romanize::Word - Class for words, used by Lingua::LO::Romanize.
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
<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.
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.