|
our $VERSION = version->declare( 'v0.26.2' );
use if $^V ge v5.12.0, feature => 'unicode_strings' ;
BEGIN {
die "Transliteration requires Perl 5.18 or above"
unless $^V ge v5.18.0;
}
no warnings 'experimental::regex_sets' ;
has 'transforms' => (
is => 'ro' ,
isa => 'ArrayRef' ,
init_arg => undef ,
default => sub { [
qr/(?^um:\G.)/ ,
{
type => 'transform' ,
data => [
],
},
{
type => 'conversion' ,
data => [
{
before => q() ,
after => q() ,
replace => q((?^u:5) ),
result => q() ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q((?^u:4) ),
result => q(̀) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q((?^u:3) ),
result => q(̌) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q((?^u:2) ),
result => q(́) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q((?^u:1) ),
result => q(̄) ,
revisit => 0,
},
]
},
] },
);
no Moose;
__PACKAGE__->meta->make_immutable;
1;
|