|
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/(?^umi:\G[ءآابةتثجحخدذرزسشصضطظعغفقكلمنهوىئَُِّْ٠١٢٣٤٥٦٧٨٩ټپځڅچډړږژښگڰڼیۍې])/ ,
{
type => 'transform' ,
data => [
{
from => q(Any) ,
to => q(NFD) ,
},
],
},
{
type => 'conversion' ,
data => [
{
before => q(\p{Nd}) ,
after => q(\p{Nd}) ,
replace => q(٫) ,
result => q(\') ,
revisit => 0,
},
{
before => q(\p{Nd}) ,
after => q(\p{Nd}) ,
replace => q(٬) ,
result => q(\') ,
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(\') ,
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(\') ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٠) ,
result => q() ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(١) ,
result => q(1̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٢) ,
result => q(2̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٣) ,
result => q(3̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٤) ,
result => q(4̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٥) ,
result => q(5̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٦) ,
result => q(6̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٧) ,
result => q(7̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٨) ,
result => q(8̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(٩) ,
result => q(9̱) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۰) ,
result => q() ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۱) ,
result => q(1) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۲) ,
result => q(2) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۳) ,
result => q(3) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۴) ,
result => q(4) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۵) ,
result => q(5) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۶) ,
result => q(6) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۷) ,
result => q(7) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۸) ,
result => q(8) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(۹) ,
result => q(9) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(كه) ,
result => q(k·h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(زه) ,
result => q(z·h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(سه) ,
result => q(s·h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(گه) ,
result => q(g·h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(بّ) ,
result => q(bb) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(پّ) ,
result => q(pp) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(تّ) ,
result => q(tt) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ټّ) ,
result => q(ṯṯ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ثّ) ,
result => q(s̄s̄) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(جّ) ,
result => q(jj) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(چّ) ,
result => q(chch) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّڅ) ,
result => q(tsts) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّځ) ,
result => q(dz) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(حّ) ,
result => q(ḥḥ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(خّ) ,
result => q(khkh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(دّ) ,
result => q(dd) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّډ) ,
result => q(ḏḏ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ذّ) ,
result => q(z̄z̄) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(رّ) ,
result => q(rr) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّړ) ,
result => q(ṟṟ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(زّ) ,
result => q(zz) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ژّ) ,
result => q(zhzh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّژ) ,
result => q(z͟hz͟h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(سّ) ,
result => q(ss) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(شّ) ,
result => q(shsh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّښ) ,
result => q(s͟hs͟h) ,
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(ṭṭ) ,
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(ghgh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(فّ) ,
result => q(ff) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(قّ) ,
result => q(qq) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(كّ) ,
result => q(kk) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّگ) ,
result => q(gg) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّڰ) ,
result => q(gg) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(لّ) ,
result => q(ll) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(مّ) ,
result => q(mm) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(نّ) ,
result => q(nn) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّڼ) ,
result => q(ṉṉ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(هّ) ,
result => q(hh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(وّ) ,
result => q(ww) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ّی) ,
result => q(yy) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ىّ) ,
result => q(yy) ,
revisit => 0,
},
{
before => q([^ \p{L} \p{M} \p{N}]) ,
after => q() ,
replace => q(ء) ,
result => q() ,
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() ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(آ) ,
result => q(’ā) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ب) ,
result => q(b) ,
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(ṯ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ة) ,
result => q(h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ث) ,
result => q(s̄) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ج) ,
result => q(j) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(چ) ,
result => q(ch) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(څ) ,
result => q(ts) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ځ) ,
result => q(dz) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ح) ,
result => q(ḥ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(خ) ,
result => q(kh) ,
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(z̄) ,
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(z) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ژ) ,
result => q(zh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ږ) ,
result => q(z͟h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(س) ,
result => q(s) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ش) ,
result => q(sh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ښ) ,
result => q(s͟h) ,
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(ṭ) ,
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(gh) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ف) ,
result => q(f) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ق) ,
result => q(q) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ك) ,
result => q(k) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(گ) ,
result => q(g) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ڰ) ,
result => q(g) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ل) ,
result => q(l) ,
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(ṉ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(و) ,
result => q(w) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ه) ,
result => q(h) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ٔی) ,
result => q(ey) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ی) ,
result => q(y) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ى) ,
result => q(y) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ې) ,
result => q(e) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(َا) ,
result => q(ā) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(َىْ) ,
result => q(ay) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(َى) ,
result => q(á) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(َْۍ) ,
result => q(êy) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(َْ) ,
result => q(ê) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(َ) ,
result => q(a) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ِْي) ,
result => q(ey) ,
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(ew) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ِ) ,
result => q(i) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ُوْ) ,
result => q(ow) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ُوی) ,
result => q(ūy) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ُو) ,
result => q(ū) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ُ) ,
result => q(u) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ْ) ,
result => q() ,
revisit => 0,
},
]
},
] },
);
no Moo;
1;
|