|
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(?:(?![゛゜])[-~、。゙-゜ァ-ー。-゚ー\p{Hiragana}\p{Katakana}\p{nonspacingmark}]))/ ,
{
type => 'transform' ,
data => [
{
from => q(Any) ,
to => q(NFKC) ,
},
],
},
{
type => 'conversion' ,
data => [
{
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(イ) ,
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(ガ) ,
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(ゴ) ,
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(ゼ) ,
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(ツ) ,
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(ヌ) ,
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(ピ) ,
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(ボ) ,
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(ヤ) ,
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(レ) ,
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(ヴ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ゝ) ,
result => q(ヽ) ,
revisit => 0,
},
{
before => q() ,
after => q() ,
replace => q(ゞ) ,
result => q(ヾ) ,
revisit => 0,
},
],
},
{
type => 'transform' ,
data => [
{
from => q(Any) ,
to => q(NFC) ,
},
]
},
] },
);
no Moo;
1;
|