| 1 | package Locale::CLDR::Transformations::Any::Han::Spacedhan; | ||
| 2 | # This file auto generated from Data\common\transforms\Han-Spacedhan.xml | ||
| 3 | # on Fri 17 Jan 12:03:31 pm GMT | ||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | use version; | ||
| 8 | |||
| 9 | our $VERSION = version->declare('v0.46.0'); | ||
| 10 | |||
| 11 | use v5.12.0; | ||
| 12 | use mro 'c3'; | ||
| 13 | use utf8; | ||
| 14 | use feature 'unicode_strings'; | ||
| 15 | use Types::Standard qw( Str Int HashRef ArrayRef CodeRef RegexpRef ); | ||
| 16 | use Moo; | ||
| 17 | |||
| 18 | BEGIN { | ||
| 19 | die "Transliteration requires Perl 5.18 or above" | ||
| 20 | unless $^V ge v5.18.0; | ||
| 21 | } | ||
| 22 | |||
| 23 | no warnings 'experimental::regex_sets'; | ||
| 24 | has 'transforms' => ( | ||
| 25 | is => 'ro', | ||
| 26 | isa => ArrayRef, | ||
| 27 | init_arg => undef, | ||
| 28 | default => sub { [ | ||
| 29 | qr/(?^umi:\G(?:[、。々《-』〜・㆒-㆟㈠-㉇㊀-㊰㋀-㋋㍘-㍰㍻-㍿㏠-㏾🈐-🈒🈔-🈺🉀-🉈🉐🉑]|[\p{Ideographic}\p{sc=Han}]))/, | ||
| 30 | { | ||
| 31 | type => 'transform', | ||
| 32 | data => [ | ||
| 33 | { | ||
| 34 | from => q(fullwidth), | ||
| 35 | to => q(halfwidth), | ||
| 36 | }, | ||
| 37 | ], | ||
| 38 | }, | ||
| 39 | { | ||
| 40 | type => 'conversion', | ||
| 41 | data => [ | ||
| 42 | { | ||
| 43 | before => q(), | ||
| 44 | after => q(), | ||
| 45 | replace => q(。), | ||
| 46 | result => q(\'), | ||
| 47 | revisit => 0, | ||
| 48 | }, | ||
| 49 | { | ||
| 50 | before => q(), | ||
| 51 | after => q(), | ||
| 52 | replace => q(。), | ||
| 53 | result => q(\'), | ||
| 54 | revisit => 0, | ||
| 55 | }, | ||
| 56 | { | ||
| 57 | before => q(), | ||
| 58 | after => q(), | ||
| 59 | replace => q(、), | ||
| 60 | result => q(\'), | ||
| 61 | revisit => 0, | ||
| 62 | }, | ||
| 63 | { | ||
| 64 | before => q(), | ||
| 65 | after => q(), | ||
| 66 | replace => q(、), | ||
| 67 | result => q(\'), | ||
| 68 | revisit => 0, | ||
| 69 | }, | ||
| 70 | { | ||
| 71 | before => q(), | ||
| 72 | after => q(), | ||
| 73 | replace => q(《), | ||
| 74 | result => q(\'), | ||
| 75 | revisit => 0, | ||
| 76 | }, | ||
| 77 | { | ||
| 78 | before => q(), | ||
| 79 | after => q(), | ||
| 80 | replace => q(》), | ||
| 81 | result => q(\'), | ||
| 82 | revisit => 0, | ||
| 83 | }, | ||
| 84 | { | ||
| 85 | before => q(), | ||
| 86 | after => q(), | ||
| 87 | replace => q(〈), | ||
| 88 | result => q(\'), | ||
| 89 | revisit => 0, | ||
| 90 | }, | ||
| 91 | { | ||
| 92 | before => q(), | ||
| 93 | after => q(), | ||
| 94 | replace => q(〉), | ||
| 95 | result => q(\'), | ||
| 96 | revisit => 0, | ||
| 97 | }, | ||
| 98 | { | ||
| 99 | before => q(), | ||
| 100 | after => q(), | ||
| 101 | replace => q(「), | ||
| 102 | result => q(\'), | ||
| 103 | revisit => 0, | ||
| 104 | }, | ||
| 105 | { | ||
| 106 | before => q(), | ||
| 107 | after => q(), | ||
| 108 | replace => q(」), | ||
| 109 | result => q(\'), | ||
| 110 | revisit => 0, | ||
| 111 | }, | ||
| 112 | { | ||
| 113 | before => q(), | ||
| 114 | after => q(), | ||
| 115 | replace => q(「), | ||
| 116 | result => q(\'), | ||
| 117 | revisit => 0, | ||
| 118 | }, | ||
| 119 | { | ||
| 120 | before => q(), | ||
| 121 | after => q(), | ||
| 122 | replace => q(」), | ||
| 123 | result => q(\'), | ||
| 124 | revisit => 0, | ||
| 125 | }, | ||
| 126 | { | ||
| 127 | before => q(), | ||
| 128 | after => q(), | ||
| 129 | replace => q(『), | ||
| 130 | result => q(\'), | ||
| 131 | revisit => 0, | ||
| 132 | }, | ||
| 133 | { | ||
| 134 | before => q(), | ||
| 135 | after => q(), | ||
| 136 | replace => q(』), | ||
| 137 | result => q(\'), | ||
| 138 | revisit => 0, | ||
| 139 | }, | ||
| 140 | { | ||
| 141 | before => q(), | ||
| 142 | after => q(), | ||
| 143 | replace => q(・), | ||
| 144 | result => q(\'), | ||
| 145 | revisit => 0, | ||
| 146 | }, | ||
| 147 | { | ||
| 148 | before => q(), | ||
| 149 | after => q(), | ||
| 150 | replace => q(・), | ||
| 151 | result => q(\'), | ||
| 152 | revisit => 0, | ||
| 153 | }, | ||
| 154 | { | ||
| 155 | before => q(), | ||
| 156 | after => q(), | ||
| 157 | replace => q(々), | ||
| 158 | result => q(\'), | ||
| 159 | revisit => 0, | ||
| 160 | }, | ||
| 161 | { | ||
| 162 | before => q(), | ||
| 163 | after => q(), | ||
| 164 | replace => q(〜), | ||
| 165 | result => q(\'), | ||
| 166 | revisit => 0, | ||
| 167 | }, | ||
| 168 | { | ||
| 169 | before => q([\p{Ideographic}[\\.\,\:\;\?\!.,:?!。、; \p{Pe} \p{Pf}]]), | ||
| 170 | after => q(\p{Letter}), | ||
| 171 | replace => q(), | ||
| 172 | result => q(\'), | ||
| 173 | revisit => 0, | ||
| 174 | }, | ||
| 175 | { | ||
| 176 | before => q(\p{Letter}\p{Mark}*), | ||
| 177 | after => q((?:[\p{Ideographic}]|[\p{Ps}\p{Pi}])), | ||
| 178 | replace => q(), | ||
| 179 | result => q(\'), | ||
| 180 | revisit => 0, | ||
| 181 | }, | ||
| 182 | ] | ||
| 183 | }, | ||
| 184 | ] }, | ||
| 185 | ); | ||
| 186 | |||
| 187 | no Moo; | ||
| 188 | |||
| 189 | 1; | ||
| 190 | |||
| 191 | # vim: tabstop=4 |