|
our $VERSION = version->declare( 'v0.40.0' );
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 => [
{
from => q(Any) ,
to => q(lower) ,
},
],
},
{
type => 'conversion' ,
data => [
{
before => q() ,
after => q() ,
replace => q(ով) ,
result => q(ov) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(մ) ,
result => q(m) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ն) ,
result => q(n) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(պ) ,
result => q(p) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(տ) ,
result => q(t) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(կ) ,
result => q(k) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(բ) ,
result => q(b) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(դ) ,
result => q(d) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(գ) ,
result => q(ɡ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(փ) ,
result => q(pʰ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(թ) ,
result => q(tʰ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ք) ,
result => q(kʰ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ծ) ,
result => q(t͡s) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ճ) ,
result => q(t͡ʃ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ձ) ,
result => q(d͡z) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ջ) ,
result => q(d͡ʒ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ց) ,
result => q(t͡sʰ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(չ) ,
result => q(t͡ʃʰ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ֆ) ,
result => q(f) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ս) ,
result => q(s) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(շ) ,
result => q(ʃ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(խ) ,
result => q(x) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(հ) ,
result => q(h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(վ) ,
result => q(v) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ւ) ,
result => q(v) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(զ) ,
result => q(z) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ժ) ,
result => q(ʒ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ղ) ,
result => q(ɣ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(լ) ,
result => q(l) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(յ) ,
result => q(j) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ռ) ,
result => q(r) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ր) ,
result => q(ɾ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ի) ,
result => q(i) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ու) ,
result => q(u) ,
revisit => 0,
},
{
before => q([^ \p{L} \p{M} \p{N}]) ,
after => q() ,
replace => q(ո) ,
result => q(vo) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ո) ,
result => q(o) ,
revisit => 0,
},
{
before => q([աեէըիոևօւ]) ,
after => q() ,
replace => q(ե) ,
result => q(jɛ) ,
revisit => 0,
},
{
before => q([^ \p{L} \p{M} \p{N}]) ,
after => q() ,
replace => q(ե) ,
result => q(jɛ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ե) ,
result => q(ɛ) ,
revisit => 0,
},
{
before => q([^ \p{L} \p{M} \p{N}]) ,
after => q() ,
replace => q(և) ,
result => q(jɛv) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(և) ,
result => q(ɛv) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(է) ,
result => q(ɛ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ը) ,
result => q(ə) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(օ) ,
result => q(o) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ա) ,
result => q(a) ,
revisit => 0,
},
]
},
] },
);
no Moo;
1;
|