# This file auto generated from Data\common\transforms\Han-Spacedhan.xml
# on Mon 1 Jan 10:25:01 pm GMT
use strict;
use version;
our $VERSION = version->declare('v0.40.0');
use v5.10.1;
use mro 'c3';
use utf8;
use if $^V ge v5.12.0, feature => 'unicode_strings';
use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef );
use Moo;
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{ideographic}\p{sc=han}]))/,
{
type => 'transform',
data => [
{
from => q(fullwidth),
to => q(halfwidth),
},
],
},
{
type => 'conversion',
data => [
{
before => q(),
after => q(),
replace => q(。),
result => q(\'),
revisit => 0,
},
{
before => q([\p{Ideographic}[\\.\,\:\;\?\!.,:?!。、; \p{Pe} \p{Pf}]]),
after => q(\p{Letter}),
replace => q(),
result => q(\'),
revisit => 0,
},
{
before => q(\p{Letter}\p{Mark}*),
after => q([\p{Ideographic}\p{Ps} \p{Pi}]),
replace => q(),
result => q(\'),
revisit => 0,
},
]
},
] },
);
no Moo;
1;
# vim: tabstop=4