| Regexp-Ethiopic documentation | view source | Contained in the Regexp-Ethiopic distribution. |
Regexp::Ethiopic::Tigrigna - Regular Expressions Support for Tigrigna Language.
#
# Overloading Perl REs:
#
use utf8;
use Regexp::Ethiopic::Tigrigna 'overload';
:
if ( /([=አ=])ለም[=ጸ=][=ሃ=]ይ/ ) {
#
# do something
#
:
}
:
:
#
# Without overloading:
#
use utf8;
require Regexp::Ethiopic::Tigrigna;
my $string = "([=አ=])ለም[=ጸ=][=ሃ=]ይ/";
my $re = Regexp::Ethiopic::Tigrigna::getRe ( $re );
s/abc($re)xyz/"abc".fixForm($1,6)."xyz"/eg;
The Regexp::Ethiopic::Tigrigna module provides POSIX style character class definitions for working with the localized use of Ethiopic syllabary in the Tigrigna (ti) language. The character classes provided by the Regexp::Ethiopic::Tigrigna package correspond to properties of the script under Tigrigna orthography rules.
The Regexp::Ethiopic::Tigrigna uses Regexp::Ethiopic so generally you would not need to import both. Regexp::Ethiopic::Tigrigna conditionally exports the hashes %TigrignaEquivalence and %TigrignaClassEquivalence should you wish to use them. Regexp::Ethiopic::Tigrigna can also export %EthiopiClass of Regexp::Ethiopic:
use Regexp::Ethiopic::Tigrigna qw(%EthiopicClasses %TigrignaEquivalence %TigrignaClassEquivalence);
The Regexp::Ethiopic::Tigrigna package is NOT derived from the Regexp class and may not be instantiated into an object. See the files in the doc/ and examples/ directories that are included with this package.
Works perfectly with Perl 5.8.0, may work with Perl 5.6.x but has not yet been tested.
None presently known.
Daniel Yacob, dyacob@cpan.org
| Regexp-Ethiopic documentation | view source | Contained in the Regexp-Ethiopic distribution. |