| 1 | <!-- groonga-command --> |
| 2 | <!-- database: normalisers --> |
| 3 | |
| 4 | (normalizer-nfkc)= |
| 5 | |
| 6 | # `NormalizerNFKC` |
| 7 | |
| 8 | ## Summary |
| 9 | |
| 10 | ```{versionadded} 14.1.3 |
| 11 | |
| 12 | ``` |
| 13 | |
| 14 | `NormalizerNFKC` normalizes text by Unicode NFKC (Normalization Form Compatibility Composition). |
| 15 | |
| 16 | The Unicode version can be specified by option. |
| 17 | |
| 18 | In addition to Unicode version, this normalizer has ohter options that can change behavior. |
| 19 | |
| 20 | ## Syntax |
| 21 | |
| 22 | `NormalizerNFKC` has optional parameter. |
| 23 | |
| 24 | No options: |
| 25 | |
| 26 | ``` |
| 27 | NormalizerNFKC |
| 28 | ``` |
| 29 | |
| 30 | `NormalizerNFKC` normalizes text by Unicode NFKC (Normalization Form Compatibility Composition). |
| 31 | |
| 32 | Specify option: |
| 33 | |
| 34 | ``` |
| 35 | NormalizerNFKC("version", "16.0.0") |
| 36 | |
| 37 | NormalizerNFKC("unify_kana", true) |
| 38 | |
| 39 | NormalizerNFKC("unify_kana_case", true) |
| 40 | |
| 41 | NormalizerNFKC("unify_kana_voiced_sound_mark", true) |
| 42 | |
| 43 | NormalizerNFKC("unify_hyphen", true) |
| 44 | |
| 45 | NormalizerNFKC("unify_prolonged_sound_mark", true) |
| 46 | |
| 47 | NormalizerNFKC("unify_hyphen_and_prolonged_sound_mark", true) |
| 48 | |
| 49 | NormalizerNFKC("unify_middle_dot", true) |
| 50 | |
| 51 | NormalizerNFKC("unify_katakana_v_sounds", true) |
| 52 | |
| 53 | NormalizerNFKC("unify_katakana_bu_sound", true) |
| 54 | |
| 55 | NormalizerNFKC("unify_to_katakana", true) |
| 56 | |
| 57 | NormalizerNFKC("unify_to_romaji", true) |
| 58 | |
| 59 | NormalizerNFKC("remove_symbol", true) |
| 60 | |
| 61 | NormalizerNFKC("unify_katakana_gu_small_sounds", true) |
| 62 | |
| 63 | NormalizerNFKC("unify_katakana_di_sound", true) |
| 64 | |
| 65 | NormalizerNFKC("unify_katakana_wo_sound", true) |
| 66 | |
| 67 | NormalizerNFKC("unify_katakana_zu_small_sounds", true) |
| 68 | |
| 69 | NormalizerNFKC("unify_katakana_du_sound", true) |
| 70 | |
| 71 | NormalizerNFKC("unify_katakana_trailing_o", true) |
| 72 | |
| 73 | NormalizerNFKC("unify_katakana_du_small_sounds", true) |
| 74 | |
| 75 | NormalizerNFKC("unify_kana_prolonged_sound_mark", true) |
| 76 | |
| 77 | NormalizerNFKC("unify_kana_hyphen", true) |
| 78 | |
| 79 | NormalizerNFKC("unify_latin_alphabet_with", true) |
| 80 | |
| 81 | NormalizerNFKC("unify_iteration_mark", true) |
| 82 | ``` |
| 83 | |
| 84 | ```{versionadded} 15.1.7 |
| 85 | {ref}`normalizer-nfkc-unify-iteration-mark` is added. |
| 86 | ``` |
| 87 | |
| 88 | Specify multiple options: |
| 89 | |
| 90 | ``` |
| 91 | NormalizerNFKC("version", "16.0.0", "unify_to_romaji", true, "unify_kana_case", true, "unify_hyphen_and_prolonged_sound_mark", true) |
| 92 | ``` |
| 93 | |
| 94 | `NormalizerNFKC` also specify multiple options as above. You can also specify mingle multiple options except above example. |
| 95 | |
| 96 | ## Usage |
| 97 | |
| 98 | ### Simple usage |
| 99 | |
| 100 | Here is an example of `NormalizerNFKC`. `NormalizerNFKC` normalizes text by Unicode NFKC (Normalization Form Compatibility Composition). |
| 101 | |
| 102 | <!-- groonga-command --> |
| 103 | |
| 104 | ```{include} ../../example/reference/normalizers/normalizer-nfkc.md |
| 105 | normalize NormalizerNFKC "©" WITH_TYPES |
| 106 | ``` |
| 107 | |
| 108 | Here is an example of {ref}`normalizer-nfkc-version` option. |
| 109 | You can specify the Unicode version for this option. |
| 110 | |
| 111 | <!-- groonga-command --> |
| 112 | |
| 113 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-version.md |
| 114 | normalize 'NormalizerNFKC("version", "16.0.0")' "©" WITH_TYPES |
| 115 | ``` |
| 116 | |
| 117 | Here is an example of {ref}`normalizer-nfkc-unify-kana` option. |
| 118 | |
| 119 | This option enables that same pronounced characters in all of full-width Hiragana, full-width Katakana and half-width Katakana are regarded as the same character as below. |
| 120 | |
| 121 | <!-- groonga-command --> |
| 122 | |
| 123 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-kana.md |
| 124 | normalize 'NormalizerNFKC("unify_kana", true)' "あイウェおヽヾ" WITH_TYPES |
| 125 | ``` |
| 126 | |
| 127 | Here is an example of {ref}`normalizer-nfkc-unify-kana-case` option. |
| 128 | |
| 129 | This option enables that large and small versions of same letters in all of full-width Hiragana, full-width Katakana and half-width Katakana are regarded as the same character as below. |
| 130 | |
| 131 | <!-- groonga-command --> |
| 132 | |
| 133 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-kana-case-hiragana.md |
| 134 | normalize \ |
| 135 | 'NormalizerNFKC("unify_kana_case", true)' \ |
| 136 | "ぁあぃいぅうぇえぉおゃやゅゆょよゎわゕかゖけ" \ |
| 137 | WITH_TYPES |
| 138 | ``` |
| 139 | |
| 140 | <!-- groonga-command --> |
| 141 | |
| 142 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-kana-case-katakana.md |
| 143 | normalize \ |
| 144 | 'NormalizerNFKC("unify_kana_case", true)' \ |
| 145 | "ァアィイゥウェエォオャヤュユョヨヮワヵカヶケ" \ |
| 146 | WITH_TYPES |
| 147 | ``` |
| 148 | |
| 149 | Here is an example of {ref}`normalizer-nfkc-unify-kana-voiced-sound-mark` option. |
| 150 | |
| 151 | This option enables that letters with/without voiced sound mark and semi voiced sound mark in all of full-width Hiragana, full-width Katakana and half-width Katakana are regarded as the same character as below. |
| 152 | |
| 153 | <!-- groonga-command --> |
| 154 | |
| 155 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-voiced-sound-mark-hiragana.md |
| 156 | normalize \ |
| 157 | 'NormalizerNFKC("unify_kana_voiced_sound_mark", true)' \ |
| 158 | "かがきぎくぐけげこごさざしじすずせぜそぞただちぢつづてでとどはばぱひびぴふぶぷへべぺほぼぽ" \ |
| 159 | WITH_TYPES |
| 160 | ``` |
| 161 | |
| 162 | <!-- groonga-command --> |
| 163 | |
| 164 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-voiced-sound-mark-katakana.md |
| 165 | normalize \ |
| 166 | 'NormalizerNFKC("unify_kana_voiced_sound_mark", true)' \ |
| 167 | "カガキギクグケゲコゴサザシジスズセゼソゾタダチヂツヅテデトドハバパヒビピフブプヘベペホボポ" \ |
| 168 | WITH_TYPES |
| 169 | ``` |
| 170 | |
| 171 | Here is an example of {ref}`normalizer-nfkc-unify-hyphen` option. |
| 172 | This option enables normalize hyphen to "-" (U+002D HYPHEN-MINUS) as below. |
| 173 | |
| 174 | <!-- groonga-command --> |
| 175 | |
| 176 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-hyphen.md |
| 177 | normalize \ |
| 178 | 'NormalizerNFKC("unify_hyphen", true)' \ |
| 179 | "-˗֊‐‑‒–⁃⁻₋−" \ |
| 180 | WITH_TYPES |
| 181 | ``` |
| 182 | |
| 183 | Here is an example of {ref}`normalizer-nfkc-unify-prolonged-sound-mark` option. |
| 184 | This option enables normalize prolonged sound to "-" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) as below. |
| 185 | |
| 186 | <!-- groonga-command --> |
| 187 | |
| 188 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-prolonged-sound-mark.md |
| 189 | normalize \ |
| 190 | 'NormalizerNFKC("unify_prolonged_sound_mark", true)' \ |
| 191 | "ー—―─━ー" \ |
| 192 | WITH_TYPES |
| 193 | ``` |
| 194 | |
| 195 | Here is an example of {ref}`normalizer-nfkc-unify-hyphen-and-prolonged-sound-mark` option. |
| 196 | This option enables normalize hyphen and prolonged sound to "-" (U+002D HYPHEN-MINUS) as below. |
| 197 | |
| 198 | <!-- groonga-command --> |
| 199 | |
| 200 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-hyphen-and-prolonged-sound-mark.md |
| 201 | normalize \ |
| 202 | 'NormalizerNFKC("unify_hyphen_and_prolonged_sound_mark", true)' \ |
| 203 | "-˗֊‐‑‒–⁃⁻₋− ﹣- ー—―─━ー" \ |
| 204 | WITH_TYPES |
| 205 | ``` |
| 206 | |
| 207 | Here is an example of {ref}`normalizer-nfkc-unify-middle-dot` option. |
| 208 | This option enables normalize middle dot to "·" (U+00B7 MIDDLE DOT) as below. |
| 209 | |
| 210 | You can use it with {ref}`normalizer-nfkc-remove-symbol` to remove all characters like middle dot. |
| 211 | |
| 212 | <!-- groonga-command --> |
| 213 | |
| 214 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-middle-dot.md |
| 215 | normalize \ |
| 216 | 'NormalizerNFKC("unify_middle_dot", true)' \ |
| 217 | "·ᐧ•∙⋅⸱・・" \ |
| 218 | WITH_TYPES |
| 219 | ``` |
| 220 | |
| 221 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-v-sounds` option. |
| 222 | This option enables normalize "ヴァヴィヴヴェヴォ" to "バビブベボ" as below. |
| 223 | |
| 224 | <!-- groonga-command --> |
| 225 | |
| 226 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-v-sounds.md |
| 227 | normalize \ |
| 228 | 'NormalizerNFKC("unify_katakana_v_sounds", true)' \ |
| 229 | "ヴァヴィヴヴェヴォヴ" \ |
| 230 | WITH_TYPES |
| 231 | ``` |
| 232 | |
| 233 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-bu-sounds` option. |
| 234 | This option enables normalize "ヴァヴィヴゥヴェヴォ" to "ブ" as below. |
| 235 | |
| 236 | <!-- groonga-command --> |
| 237 | |
| 238 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-bu-sounds.md |
| 239 | normalize \ |
| 240 | 'NormalizerNFKC("unify_katakana_bu_sound", true)' \ |
| 241 | "ヴァヴィヴヴェヴォヴ" \ |
| 242 | WITH_TYPES |
| 243 | ``` |
| 244 | |
| 245 | Here is an example of {ref}`normalizer-nfkc-unify-to-katakana` option. |
| 246 | This option normalizes hiragana to katakana. |
| 247 | |
| 248 | <!-- groonga-command --> |
| 249 | |
| 250 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-to-katakana.md |
| 251 | normalize \ |
| 252 | 'NormalizerNFKC("unify_to_katakana", true)' \ |
| 253 | "ゔぁゔぃゔゔぇゔぉ" \ |
| 254 | WITH_TYPES |
| 255 | ``` |
| 256 | |
| 257 | Here is an example of {ref}`normalizer-nfkc-unify-to-romaji` option. |
| 258 | This option enables normalize hiragana and katakana to romaji as below. |
| 259 | |
| 260 | <!-- groonga-command --> |
| 261 | |
| 262 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-to-romaji.md |
| 263 | normalize \ |
| 264 | 'NormalizerNFKC("unify_to_romaji", true)' \ |
| 265 | "アァイィウゥエェオォ" \ |
| 266 | WITH_TYPES |
| 267 | ``` |
| 268 | |
| 269 | Here is an example of {ref}`normalizer-nfkc-remove-symbol` option. |
| 270 | This option removes symbols (e.g. #, !, ", &, %, ...) as below. |
| 271 | |
| 272 | <!-- groonga-command --> |
| 273 | |
| 274 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-remove-symbol.md |
| 275 | normalize \ |
| 276 | 'NormalizerNFKC("remove_symbol", true)' \ |
| 277 | "#This & is %% a pen." \ |
| 278 | WITH_TYPES |
| 279 | ``` |
| 280 | |
| 281 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-gu-small-sounds` option. |
| 282 | This option enables to normalize "グァグィグェグォ" to "ガギゲゴ" as below. |
| 283 | |
| 284 | <!-- groonga-command --> |
| 285 | |
| 286 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-katakana-gu-small-sounds.md |
| 287 | normalize \ |
| 288 | 'NormalizerNFKC("unify_katakana_gu_small_sounds", true)' \ |
| 289 | "グァグィグェグォ" \ |
| 290 | WITH_TYPES |
| 291 | ``` |
| 292 | |
| 293 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-di-sound` option. |
| 294 | This option enables to normalize "ヂ" to "ジ" as below. |
| 295 | |
| 296 | <!-- groonga-command --> |
| 297 | |
| 298 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-di-sound.md |
| 299 | normalize \ |
| 300 | 'NormalizerNFKC("unify_katakana_di_sound", true)' \ |
| 301 | "ヂ" \ |
| 302 | WITH_TYPES |
| 303 | ``` |
| 304 | |
| 305 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-wo-sound` option. |
| 306 | This option enables to normalize "ヲ" to "オ" as below. |
| 307 | |
| 308 | <!-- groonga-command --> |
| 309 | |
| 310 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-wo-sound.md |
| 311 | normalize \ |
| 312 | 'NormalizerNFKC("unify_katakana_wo_sound", true)' \ |
| 313 | "ヲ" \ |
| 314 | WITH_TYPES |
| 315 | ``` |
| 316 | |
| 317 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-zu-small-sounds` option. |
| 318 | This option enables to normalize "ズァズィズェズォ" to "ザジゼゾ" as below. |
| 319 | |
| 320 | <!-- groonga-command --> |
| 321 | |
| 322 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-zu-small-sounds.md |
| 323 | normalize \ |
| 324 | 'NormalizerNFKC("unify_katakana_zu_small_sounds", true)' \ |
| 325 | "ズァズィズェズォ" \ |
| 326 | WITH_TYPES |
| 327 | ``` |
| 328 | |
| 329 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-du-sound` option. |
| 330 | This option enables to normalize "ヅ" to "ズ" as below. |
| 331 | |
| 332 | <!-- groonga-command --> |
| 333 | |
| 334 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-du-sound.md |
| 335 | normalize \ |
| 336 | 'NormalizerNFKC("unify_katakana_du_sound", true)' \ |
| 337 | "ヅ" \ |
| 338 | WITH_TYPES |
| 339 | ``` |
| 340 | |
| 341 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-trailing-o` option. |
| 342 | This option enables to normalize "オ" to "ウ" when the vowel in the previous letter is "オ" as below. |
| 343 | |
| 344 | <!-- groonga-command --> |
| 345 | |
| 346 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-trailing-o.md |
| 347 | normalize \ |
| 348 | 'NormalizerNFKC("unify_katakana_trailing_o", true)' \ |
| 349 | "オオコオソオトオノオ" \ |
| 350 | WITH_TYPES |
| 351 | ``` |
| 352 | |
| 353 | Here is an example of {ref}`normalizer-nfkc-unify-katakana-du-small-sounds` option. |
| 354 | This option enables to normalize "ヅァヅィヅェヅォ" to "ザジゼゾ". |
| 355 | |
| 356 | <!-- groonga-command --> |
| 357 | |
| 358 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-katakana-du-small-sounds.md |
| 359 | normalize \ |
| 360 | 'NormalizerNFKC("unify_katakana_du_small_sounds", true)' \ |
| 361 | "ヅァヅィヅェヅォ" \ |
| 362 | WITH_TYPES |
| 363 | ``` |
| 364 | |
| 365 | Here is an example of {ref}`normalizer-nfkc-unify-kana-prolonged-sound-mark` option. |
| 366 | This option enables to normalize "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 367 | to a vowel of a previous kana letter. |
| 368 | |
| 369 | If a previous kana letter is "ん" , "ー" is normalized to "ん", |
| 370 | And a previous kana letter is "ン" , "ー" is normalized to "ン". |
| 371 | |
| 372 | <!-- groonga-command --> |
| 373 | |
| 374 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-kana-prolonged-sound-mark.md |
| 375 | normalize \ |
| 376 | 'NormalizerNFKC("unify_kana_prolonged_sound_mark", true)' \ |
| 377 | "カーキークーケーコー" \ |
| 378 | WITH_TYPES |
| 379 | ``` |
| 380 | |
| 381 | Here is an example of {ref}`normalizer-nfkc-unify-kana-hyphen` option. |
| 382 | This option enables to normalize "-" (U+002D HYPHEN-MINUS) to a vowel of a previous kana letter. |
| 383 | |
| 384 | If a previous kana letter is "ん" , "-" is normalized to "ん", |
| 385 | And a previous kana letter is "ン" , "-" is normalized to "ン". |
| 386 | |
| 387 | <!-- groonga-command --> |
| 388 | |
| 389 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-kana-hyphen.md |
| 390 | normalize \ |
| 391 | 'NormalizerNFKC("unify_kana_hyphen", true)' \ |
| 392 | "カ-キ-ク-ケ-コ-" \ |
| 393 | WITH_TYPES |
| 394 | ``` |
| 395 | |
| 396 | Here is an example of {ref}`normalizer-nfkc-unify-latin-alphabet-with` option. |
| 397 | This option enables that alphabets with diacritical mark and alphabets without diacritical mark regarded as the same character as below. |
| 398 | |
| 399 | However, this feature focus on only LATIN (SMALL|CAPITAL) LETTER X WITH XXX. It doesn't support LATIN (SMALL|CAPITAL) LETTER X + COMBINING XXX characters. |
| 400 | |
| 401 | <!-- groonga-command --> |
| 402 | |
| 403 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-latin-alphabet-with.md |
| 404 | normalize \ |
| 405 | 'NormalizerNFKC("unify_latin_alphabet_with", true)' \ |
| 406 | "ngoằn" \ |
| 407 | WITH_TYPES |
| 408 | ``` |
| 409 | |
| 410 | Here is an example of {ref}`normalizer-nfkc-unify-iteration-mark` option. |
| 411 | This option enables normalization of iteration marks by replacing them with the actual repeated character. |
| 412 | |
| 413 | <!-- groonga-command --> |
| 414 | |
| 415 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-iteration-mark.md |
| 416 | normalize \ |
| 417 | 'NormalizerNFKC("unify_iteration_mark", true)' \ |
| 418 | "時々" \ |
| 419 | WITH_TYPES |
| 420 | ``` |
| 421 | |
| 422 | ### Advanced usage |
| 423 | |
| 424 | #### With `TokenMecab` |
| 425 | |
| 426 | You can output romaji of specific a part of speech with using to combine |
| 427 | `TokenMecab` and `NormalizerNFKC` as below. |
| 428 | |
| 429 | First of all, you extract reading of a noun with excluding non-independent word and suffix of person name with `target_class` option and `include_reading` option. |
| 430 | |
| 431 | Next, you normalize reading of the noun that extracted with `unify_to_romaji` option of `NormalizerNFKC`. |
| 432 | |
| 433 | <!-- groonga-command --> |
| 434 | |
| 435 | ```{include} ../../example/reference/normalizers/normalizer-nfkc-unify-to-romaji-complex.md |
| 436 | tokenize \ |
| 437 | 'TokenMecab("target_class", "-名詞/非自立", "target_class", "-名詞/接尾/人名", "target_class", "名詞", "include_reading", true)' \ |
| 438 | '彼の名前は山田さんのはずです。' |
| 439 | normalize \ |
| 440 | 'NormalizerNFKC("unify_to_romaji", true)' \ |
| 441 | "カレ" \ |
| 442 | WITH_TYPES |
| 443 | normalize \ |
| 444 | 'NormalizerNFKC("unify_to_romaji", true)' \ |
| 445 | "ナマエ" \ |
| 446 | WITH_TYPES |
| 447 | normalize \ |
| 448 | 'NormalizerNFKC("unify_to_romaji", true)' \ |
| 449 | "ヤマダ" \ |
| 450 | WITH_TYPES |
| 451 | ``` |
| 452 | |
| 453 | #### Use `unify_to_katakana` with other options |
| 454 | |
| 455 | {ref}`normalizer-nfkc-unify-to-katakana` can be combined with the following options to equate special katakana with general katakana. |
| 456 | |
| 457 | - {ref}`normalizer-nfkc-unify-katakana-v-sounds` |
| 458 | |
| 459 | - Equivalent: "ゔぁゔぃゔゔぇゔぉ", "ばびぶべぼ", "ヴァヴィヴヴェヴォ" and "バビブベボ" |
| 460 | |
| 461 | - {ref}`normalizer-nfkc-unify-katakana-gu-small-sounds` |
| 462 | |
| 463 | - Equivalent: "ぐぁぐぃぐぇぐぉ", "がぎげご", "グァグィグェグォ" and "ガギゲゴ" |
| 464 | |
| 465 | - {ref}`normalizer-nfkc-unify-katakana-zu-small-sounds` |
| 466 | |
| 467 | - Equivalent: "ずぁずぃずぇずぉ", "ざじぜぞ", "ズァズィズェズォ" and "ザジゼゾ" |
| 468 | |
| 469 | - {ref}`normalizer-nfkc-unify-katakana-wo-sound` |
| 470 | |
| 471 | - Equivalent: "お", "を", "オ" and "ヲ" |
| 472 | |
| 473 | - {ref}`normalizer-nfkc-unify-katakana-di-sound` |
| 474 | |
| 475 | - Equivalent: "じ", "ぢ", "ジ" and "ヂ" |
| 476 | |
| 477 | - {ref}`normalizer-nfkc-unify-katakana-du-sound` |
| 478 | |
| 479 | - Equivalent: "ず", "づ", "ズ" and "ヅ" |
| 480 | |
| 481 | For example, using `unify_to_katakana` and `unify_katakana_v_sounds` together, you can search "バイオリン", "ヴァイオリン", "ばいおりん" and "ゔぁいおりん" with "ばいおりん". |
| 482 | |
| 483 | (normalizer-nfkc-parameters)= |
| 484 | |
| 485 | ## Parameters |
| 486 | |
| 487 | ### Optional parameter |
| 488 | |
| 489 | There are optional parameters as below. |
| 490 | |
| 491 | (normalizer-nfkc-version)= |
| 492 | |
| 493 | #### `version` |
| 494 | |
| 495 | This option specifies the Unicode version. |
| 496 | |
| 497 | Here are the available versions. |
| 498 | |
| 499 | ```{eval-rst} |
| 500 | .. list-table:: |
| 501 | :header-rows: 1 |
| 502 | |
| 503 | * - Unicode version |
| 504 | - Value |
| 505 | - Note |
| 506 | * - 16.0.0 |
| 507 | - ``"16.0.0"`` |
| 508 | - This is the default value. |
| 509 | * - 15.0.0 |
| 510 | - ``"15.0.0"`` |
| 511 | - Same as :doc:`./normalizer_nfkc150` |
| 512 | * - 13.0.0 |
| 513 | - ``"13.0.0"`` |
| 514 | - Same as :doc:`./normalizer_nfkc130` |
| 515 | * - 12.1.0 |
| 516 | - ``"12.1.0"`` |
| 517 | - Same as :doc:`./normalizer_nfkc121` |
| 518 | * - 10.0.0 |
| 519 | - ``"10.0.0"`` |
| 520 | - Same as :doc:`./normalizer_nfkc100` |
| 521 | * - 5.0.0 |
| 522 | - ``"5.0.0"`` |
| 523 | - Same as :doc:`./normalizer_nfkc51` (It is called ``NormalizerNFKC51``, but it is for Unicode version 5.0) |
| 524 | ``` |
| 525 | |
| 526 | (normalizer-nfkc-unify-kana)= |
| 527 | |
| 528 | #### `unify_kana` |
| 529 | |
| 530 | This option enables that same pronounced characters in all of full-width Hiragana, full-width Katakana and half-width Katakana are regarded as the same character. |
| 531 | |
| 532 | (normalizer-nfkc-unify-kana-case)= |
| 533 | |
| 534 | #### `unify_kana_case` |
| 535 | |
| 536 | This option enables that large and small versions of same letters in all of full-width Hiragana, full-width Katakana and half-width Katakana are regarded as the same character. |
| 537 | |
| 538 | (normalizer-nfkc-unify-kana-voiced-sound-mark)= |
| 539 | |
| 540 | #### `unify_kana_voiced_sound_mark` |
| 541 | |
| 542 | This option enables that letters with/without voiced sound mark and semi voiced sound mark in all of full-width Hiragana, full-width Katakana and half-width Katakana are regarded as the same character. |
| 543 | |
| 544 | (normalizer-nfkc-unify-hyphen)= |
| 545 | |
| 546 | #### `unify_hyphen` |
| 547 | |
| 548 | This option enables normalize hyphen to "-" (U+002D HYPHEN-MINUS). |
| 549 | |
| 550 | Hyphen of the target of normalizing is as below. |
| 551 | |
| 552 | - "-" (U+002D HYPHEN-MINUS) |
| 553 | - "֊" (U+058A ARMENIAN HYPHEN) |
| 554 | - "˗" (U+02D7 MODIFIER LETTER MINUS SIGN) |
| 555 | - "‐" (U+2010 HYPHEN) |
| 556 | - "—" (U+2014 EM DASH) |
| 557 | - "⁃" (U+2043 HYPHEN BULLET) |
| 558 | - "⁻" (U+207B SUPERSCRIPT MINUS) |
| 559 | - "₋" (U+208B SUBSCRIPT MINUS) |
| 560 | - "−" (U+2212 MINUS SIGN) |
| 561 | |
| 562 | (normalizer-nfkc-unify-prolonged-sound-mark)= |
| 563 | |
| 564 | #### `unify_prolonged_sound_mark` |
| 565 | |
| 566 | This option enables normalize prolonged sound to "-" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK). |
| 567 | |
| 568 | Prolonged sound of the target of normalizing is as below. |
| 569 | |
| 570 | - "—" (U+2014 EM DASH) |
| 571 | - "―" (U+2015 HORIZONTAL BAR) |
| 572 | - "─" (U+2500 BOX DRAWINGS LIGHT HORIZONTAL) |
| 573 | - "━" (U+2501 BOX DRAWINGS HEAVY HORIZONTAL) |
| 574 | - "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 575 | - "ー" (U+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 576 | |
| 577 | (normalizer-nfkc-unify-hyphen-and-prolonged-sound-mark)= |
| 578 | |
| 579 | #### `unify_hyphen_and_prolonged_sound_mark` |
| 580 | |
| 581 | This option enables normalize hyphen and prolonged sound to "-" (U+002D HYPHEN-MINUS). |
| 582 | |
| 583 | Hyphen and prolonged sound of the target normalizing is below. |
| 584 | |
| 585 | - "-" (U+002D HYPHEN-MINUS) |
| 586 | - "֊" (U+058A ARMENIAN HYPHEN) |
| 587 | - "˗" (U+02D7 MODIFIER LETTER MINUS SIGN) |
| 588 | - "‐" (U+2010 HYPHEN) |
| 589 | - "—" (U+2014 EM DASH) |
| 590 | - "⁃" (U+2043 HYPHEN BULLET) |
| 591 | - "⁻" (U+207B SUPERSCRIPT MINUS) |
| 592 | - "₋" (U+208B SUBSCRIPT MINUS) |
| 593 | - "−" (U+2212 MINUS SIGN) |
| 594 | - "—" (U+2014 EM DASH) |
| 595 | - "―" (U+2015 HORIZONTAL BAR) |
| 596 | - "─" (U+2500 BOX DRAWINGS LIGHT HORIZONTAL) |
| 597 | - "━" (U+2501 BOX DRAWINGS HEAVY HORIZONTAL) |
| 598 | - "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 599 | - "ー" (U+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 600 | |
| 601 | (normalizer-nfkc-unify-middle-dot)= |
| 602 | |
| 603 | #### `unify_middle_dot` |
| 604 | |
| 605 | This option enables normalize middle dot to "·" (U+00B7 MIDDLE DOT). |
| 606 | |
| 607 | Middle dot of the target of normalizing is as below. |
| 608 | |
| 609 | - "·" (U+00B7 MIDDLE DOT) |
| 610 | - "ᐧ" (U+1427 CANADIAN SYLLABICS FINAL MIDDLE DOT) |
| 611 | - "•" (U+2022 BULLET) |
| 612 | - "∙" (U+2219 BULLET OPERATOR) |
| 613 | - "⋅" (U+22C5 DOT OPERATOR) |
| 614 | - "⸱" (U+2E31 WORD SEPARATOR MIDDLE DOT) |
| 615 | - "・" (U+30FB KATAKANA MIDDLE DOT) |
| 616 | - "・" (U+FF65 HALFWIDTH KATAKANA MIDDLE DOT) |
| 617 | |
| 618 | You can use it with {ref}`normalizer-nfkc-remove-symbol` to remove all characters like middle dot. |
| 619 | |
| 620 | (normalizer-nfkc-unify-katakana-v-sounds)= |
| 621 | |
| 622 | #### `unify_katakana_v_sounds` |
| 623 | |
| 624 | This option enables normalize "ヴァヴィヴヴェヴォ" to "バビブベボ". |
| 625 | |
| 626 | (normalizer-nfkc-unify-katakana-bu-sounds)= |
| 627 | |
| 628 | #### `unify_katakana_bu_sound` |
| 629 | |
| 630 | This option enables normalize "ヴァヴィヴゥヴェヴォ" to "ブ". |
| 631 | |
| 632 | (normalizer-nfkc-unify-to-katakana)= |
| 633 | |
| 634 | #### `unify_to_katakana` |
| 635 | |
| 636 | This option normalizes hiragana to katakana. |
| 637 | |
| 638 | (normalizer-nfkc-unify-to-romaji)= |
| 639 | |
| 640 | #### `unify_to_romaji` |
| 641 | |
| 642 | This option enables normalize hiragana and katakana to romaji. |
| 643 | |
| 644 | (normalizer-nfkc-remove-symbol)= |
| 645 | |
| 646 | #### `remove_symbol` |
| 647 | |
| 648 | This option removes symbols (e.g. #, !, ", &, %, ...) from the string that the target of normalizing. |
| 649 | |
| 650 | (normalizer-nfkc-unify-katakana-gu-small-sounds)= |
| 651 | |
| 652 | #### `unify_katakana_gu_small_sounds` |
| 653 | |
| 654 | This option enables to normalize "グァグィグェグォ" to "ガギゲゴ". |
| 655 | |
| 656 | (normalizer-nfkc-unify-katakana-di-sound)= |
| 657 | |
| 658 | #### `unify_katakana_di_sound` |
| 659 | |
| 660 | This option enables to normalize "ヂ" to "ジ". |
| 661 | |
| 662 | (normalizer-nfkc-unify-katakana-wo-sound)= |
| 663 | |
| 664 | #### `unify_katakana_wo_sound` |
| 665 | |
| 666 | This option enables to normalize "ヲ" to "オ". |
| 667 | |
| 668 | (normalizer-nfkc-unify-katakana-zu-small-sounds)= |
| 669 | |
| 670 | #### `unify_katakana_zu_small_sounds` |
| 671 | |
| 672 | This option enables to normalize "ズァズィズェズォ" to "ザジゼゾ". |
| 673 | |
| 674 | (normalizer-nfkc-unify-katakana-du-sound)= |
| 675 | |
| 676 | #### `unify_katakana_du_sound` |
| 677 | |
| 678 | This option enables to normalize "ヅ" to "ズ". |
| 679 | |
| 680 | (normalizer-nfkc-unify-katakana-trailing-o)= |
| 681 | |
| 682 | #### `unify_katakana_trailing_o` |
| 683 | |
| 684 | This option enables to normalize "オ" to "ウ" |
| 685 | when the vowel in the previous letter is "オ". |
| 686 | |
| 687 | - "ォオ" -> "ォウ" |
| 688 | - "オオ" -> "オウ" |
| 689 | - "コオ" -> "コウ" |
| 690 | - "ソオ" -> "ソウ" |
| 691 | - "トオ" -> "トウ" |
| 692 | - "ノオ" -> "ノウ" |
| 693 | - "ホオ" -> "ホウ" |
| 694 | - "モオ" -> "モウ" |
| 695 | - "ョオ" -> "ョオ" |
| 696 | - "ヨオ" -> "ヨウ" |
| 697 | - "ロオ" -> "ロウ" |
| 698 | - "ゴオ" -> "ゴウ" |
| 699 | - "ゾオ" -> "ゾウ" |
| 700 | - "ドオ" -> "ドウ" |
| 701 | - "ボオ" -> "ボウ" |
| 702 | - "ポオ" -> "ポウ" |
| 703 | - "ヺオ" -> "ヺウ" |
| 704 | |
| 705 | (normalizer-nfkc-unify-katakana-du-small-sounds)= |
| 706 | |
| 707 | #### `unify_katakana_du_small_sounds` |
| 708 | |
| 709 | This option enables to normalize "ヅァヅィヅェヅォ" to "ザジゼゾ". |
| 710 | |
| 711 | (normalizer-nfkc-unify-kana-prolonged-sound-mark)= |
| 712 | |
| 713 | #### `unify_kana_prolonged_sound_mark` |
| 714 | |
| 715 | This option enables to normalize "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 716 | to a vowel of a previous kana letter. |
| 717 | |
| 718 | If a previous kana letter is "ん" , "ー" is normalized to "ん", |
| 719 | And a previous kana letter is "ン" , "ー" is normalized to "ン". |
| 720 | |
| 721 | ``` |
| 722 | ァー -> ァア, アー -> アア, ヵー -> ヵア, カー -> カア, ガー -> ガア, サー -> サア, ザー -> ザア, |
| 723 | ター -> タア, ダー -> ダア, ナー -> ナア, ハー -> ハア, バー -> バア, パー -> パア, マー -> マア, |
| 724 | ャー -> ャア, ヤー -> ヤア, ラー -> ラア, ヮー -> ヮア, ワー -> ワア, ヷー -> ヷア, |
| 725 | ィー -> ィイ, イー -> イイ, キー -> キイ, ギー -> ギイ, シー -> シイ, ジー -> ジイ, チー -> チイ, |
| 726 | ヂー -> ヂイ, ニー -> ニイ, ヒー -> ヒイ, ビー -> ビイ, ピー -> ピイ, ミー -> ミイ, リー -> リイ, |
| 727 | ヰー -> ヰイ, ヸー -> ヸイ, |
| 728 | |
| 729 | ゥー -> ゥウ, ウー -> ウウ, クー -> クウ, グー -> グウ, スー -> スウ, ズー -> ズウ, ツー -> ツウ, |
| 730 | ヅー -> ヅウ, ヌー -> ヌウ, フー -> フウ, ブー -> ブウ, プー -> プウ, ムー -> ムウ, ュー -> ュウ, |
| 731 | ユー -> ユウ, ルー -> ルウ, ヱー -> ヱウ, ヴー -> ヴウ, |
| 732 | |
| 733 | ェー -> ェエ, エー -> エエ, ヶー -> ヶエ, ケー -> ケエ, ゲー -> ゲエ, セー -> セエ, ゼー -> ゼエ, |
| 734 | テー -> テエ, デー -> デエ, ネー -> ネエ, ヘー -> ヘエ, ベー -> ベエ, ペー -> ペエ, メー -> メエ, |
| 735 | レー -> レエ, ヹー -> ヹエ, |
| 736 | |
| 737 | ォー -> ォオ, オー -> オオ, コー -> コオ, ゴー -> ゴオ, ソー -> ソオ, ゾー -> ゾオ, トー -> トオ, |
| 738 | ドー -> ドオ, ノー -> ノオ, ホー -> ホオ, ボー -> ボオ, ポー -> ポオ, モー -> モオ, ョー -> ョオ, |
| 739 | ヨー -> ヨオ, ロー -> ロオ, ヲー -> ヲオ, ヺー -> ヺオ, |
| 740 | |
| 741 | ンー -> ンン |
| 742 | |
| 743 | ぁー -> ぁあ, あー -> ああ, ゕー -> ゕあ, かー -> かあ, がー -> があ, さー -> さあ, ざー -> ざあ, |
| 744 | たー -> たあ, だー -> だあ, なー -> なあ, はー -> はあ, ばー -> ばあ, ぱー -> ぱあ, まー -> まあ, |
| 745 | ゃー -> ゃあ, やー -> やあ, らー -> らあ, ゎー -> ゎあ, わー -> わあ |
| 746 | |
| 747 | ぃー -> ぃい, いー -> いい, きー -> きい, ぎー -> ぎい, しー -> しい, じー -> じい, ちー -> ちい, |
| 748 | ぢー -> ぢい, にー -> にい, ひー -> ひい, びー -> びい, ぴー -> ぴい, みー -> みい, りー -> りい, |
| 749 | ゐー -> ゐい |
| 750 | |
| 751 | ぅー -> ぅう, うー -> うう, くー -> くう, ぐー -> ぐう, すー -> すう, ずー -> ずう, つー -> つう, |
| 752 | づー -> づう, ぬー -> ぬう, ふー -> ふう, ぶー -> ぶう, ぷー -> ぷう, むー -> むう, ゅー -> ゅう, |
| 753 | ゆー -> ゆう, るー -> るう, ゑー -> ゑう, ゔー -> ゔう |
| 754 | |
| 755 | ぇー -> ぇえ, えー -> ええ, ゖー -> ゖえ, けー -> けえ, げー -> げえ, せー -> せえ, ぜー -> ぜえ, |
| 756 | てー -> てえ, でー -> でえ, ねー -> ねえ, へー -> へえ, べー -> べえ, ぺー -> ぺえ, めー -> めえ, |
| 757 | れー -> れえ |
| 758 | |
| 759 | ぉー -> ぉお, おー -> おお, こー -> こお, ごー -> ごお, そー -> そお, ぞー -> ぞお, とー -> とお, |
| 760 | どー -> どお, のー -> のお, ほー -> ほお, ぼー -> ぼお, ぽー -> ぽお, もー -> もお, ょー -> ょお, |
| 761 | よー -> よお, ろー -> ろお, をー -> をお |
| 762 | |
| 763 | んー -> んん |
| 764 | ``` |
| 765 | |
| 766 | (normalizer-nfkc-unify-kana-hyphen)= |
| 767 | |
| 768 | #### `unify_kana_hyphen` |
| 769 | |
| 770 | This option enables to normalize "-" (U+002D HYPHEN-MINUS) to a vowel of a previous kana letter. |
| 771 | |
| 772 | If a previous kana letter is "ん" , "-" is normalized to "ん", |
| 773 | And a previous kana letter is "ン" , "-" is normalized to "ン". |
| 774 | |
| 775 | ``` |
| 776 | ァ- -> ァア, ア- -> アア, ヵ- -> ヵア, カ- -> カア, ガ- -> ガア, サ- -> サア, ザ- -> ザア, |
| 777 | タ- -> タア, ダ- -> ダア, ナ- -> ナア, ハ- -> ハア, バ- -> バア, パ- -> パア, マ- -> マア, |
| 778 | ャ- -> ャア, ヤ- -> ヤア, ラ- -> ラア, ヮ- -> ヮア, ワ- -> ワア, ヷ- -> ヷア, |
| 779 | ィ- -> ィイ, イ- -> イイ, キ- -> キイ, ギ- -> ギイ, シ- -> シイ, ジ- -> ジイ, チ- -> チイ, |
| 780 | ヂ- -> ヂイ, ニ- -> ニイ, ヒ- -> ヒイ, ビ- -> ビイ, ピ- -> ピイ, ミ- -> ミイ, リ- -> リイ, |
| 781 | ヰ- -> ヰイ, ヸ- -> ヸイ, |
| 782 | |
| 783 | ゥ- -> ゥウ, ウ- -> ウウ, ク- -> クウ, グ- -> グウ, ス- -> スウ, ズ- -> ズウ, ツ- -> ツウ, |
| 784 | ヅ- -> ヅウ, ヌ- -> ヌウ, フ- -> フウ, ブ- -> ブウ, プ- -> プウ, ム- -> ムウ, ュ- -> ュウ, |
| 785 | ユ- -> ユウ, ル- -> ルウ, ヱ- -> ヱウ, ヴ- -> ヴウ, |
| 786 | |
| 787 | ェ- -> ェエ, エ- -> エエ, ヶ- -> ヶエ, ケ- -> ケエ, ゲ- -> ゲエ, セ- -> セエ, ゼ- -> ゼエ, |
| 788 | テ- -> テエ, デ- -> デエ, ネ- -> ネエ, ヘ- -> ヘエ, ベ- -> ベエ, ペ- -> ペエ, メ- -> メエ, |
| 789 | レ- -> レエ, ヹ- -> ヹエ, |
| 790 | |
| 791 | ォ- -> ォオ, オ- -> オオ, コ- -> コオ, ゴ- -> ゴオ, ソ- -> ソオ, ゾ- -> ゾオ, ト- -> トオ, |
| 792 | ド- -> ドオ, ノ- -> ノオ, ホ- -> ホオ, ボ- -> ボオ, ポ- -> ポオ, モ- -> モオ, ョ- -> ョオ, |
| 793 | ヨ- -> ヨオ, ロ- -> ロオ, ヲ- -> ヲオ, ヺ- -> ヺオ, |
| 794 | |
| 795 | ン- -> ンン |
| 796 | |
| 797 | ぁ- -> ぁあ, あ- -> ああ, ゕ- -> ゕあ, か- -> かあ, が- -> があ, さ- -> さあ, ざ- -> ざあ, |
| 798 | た- -> たあ, だ- -> だあ, な- -> なあ, は- -> はあ, ば- -> ばあ, ぱ- -> ぱあ, ま- -> まあ, |
| 799 | ゃ- -> ゃあ, や- -> やあ, ら- -> らあ, ゎ- -> ゎあ, わ- -> わあ |
| 800 | |
| 801 | ぃ- -> ぃい, い- -> いい, き- -> きい, ぎ- -> ぎい, し- -> しい, じ- -> じい, ち- -> ちい, |
| 802 | ぢ- -> ぢい, に- -> にい, ひ- -> ひい, び- -> びい, ぴ- -> ぴい, み- -> みい, り- -> りい, |
| 803 | ゐ- -> ゐい |
| 804 | |
| 805 | ぅ- -> ぅう, う- -> うう, く- -> くう, ぐ- -> ぐう, す- -> すう, ず- -> ずう, つ- -> つう, |
| 806 | づ- -> づう, ぬ- -> ぬう, ふ- -> ふう, ぶ- -> ぶう, ぷ- -> ぷう, む- -> むう, ゅ- -> ゅう, |
| 807 | ゆ- -> ゆう, る- -> るう, ゑ- -> ゑう, ゔ- -> ゔう |
| 808 | |
| 809 | ぇ- -> ぇえ, え- -> ええ, ゖ- -> ゖえ, け- -> けえ, げ- -> げえ, せ- -> せえ, ぜ- -> ぜえ, |
| 810 | て- -> てえ, で- -> でえ, ね- -> ねえ, へ- -> へえ, べ- -> べえ, ぺ- -> ぺえ, め- -> めえ, |
| 811 | れ- -> れえ |
| 812 | |
| 813 | ぉ- -> ぉお, お- -> おお, こ- -> こお, ご- -> ごお, そ- -> そお, ぞ- -> ぞお, と- -> とお, |
| 814 | ど- -> どお, の- -> のお, ほ- -> ほお, ぼ- -> ぼお, ぽ- -> ぽお, も- -> もお, ょ- -> ょお, |
| 815 | よ- -> よお, ろ- -> ろお, を- -> をお |
| 816 | |
| 817 | ん- -> んん |
| 818 | ``` |
| 819 | |
| 820 | (normalizer-nfkc-unify-latin-alphabet-with)= |
| 821 | |
| 822 | #### `unify_latin_alphabet_with` |
| 823 | |
| 824 | This option enables that alphabets with diacritical mark and alphabets without diacritical mark regarded as the same character as below. |
| 825 | |
| 826 | However, this feature focus on only LATIN (SMALL|CAPITAL) LETTER X WITH XXX. It doesn't support LATIN (SMALL|CAPITAL) LETTER X + COMBINING XXX characters. |
| 827 | |
| 828 | (normalizer-nfkc-unify-iteration-mark)= |
| 829 | |
| 830 | #### `unify_iteration_mark` |
| 831 | |
| 832 | ```{versionadded} 15.1.7 |
| 833 | |
| 834 | ``` |
| 835 | |
| 836 | This option enables normalization of iteration marks by replacing them with the actual repeated character. |
| 837 | |
| 838 | The following iteration marks are normalize. |
| 839 | |
| 840 | - Hiragana Iteration Mark ゝ (U+309D) |
| 841 | |
| 842 | ``` |
| 843 | こゝ -> ここ |
| 844 | づゝ -> づつ |
| 845 | ``` |
| 846 | |
| 847 | - Hiragana Voiced Iteration Mark ゞ (U+309E) |
| 848 | |
| 849 | ``` |
| 850 | ぶゞ漬け -> ぶぶ漬け |
| 851 | ふゞき -> ふぶき |
| 852 | ``` |
| 853 | |
| 854 | - Katakana Iteration Mark ヽ (U+30FD) |
| 855 | |
| 856 | ``` |
| 857 | バナヽ -> バナナ |
| 858 | バヽナ -> バハナ |
| 859 | ``` |
| 860 | |
| 861 | - Katakana Voiced Iteration Mark ヾ (U+30FE) |
| 862 | |
| 863 | ``` |
| 864 | バヾ -> ババ |
| 865 | フヾキ -> フブキ |
| 866 | ``` |
| 867 | |
| 868 | - Ideographic Iteration Mark 々 (U+3005) - limitation: only repeats the immediately preceding single character |
| 869 | |
| 870 | ``` |
| 871 | 時々 -> 時時 |
| 872 | ``` |
| 873 | |
| 874 | - Vertical Ideographic Iteration Mark 〻 (U+303B) - limitation: only repeats the immediately preceding single character |
| 875 | |
| 876 | ``` |
| 877 | 各〻 -> 各各 |
| 878 | ``` |
| 879 | |
| 880 | ```{note} |
| 881 | For Ideographic Iteration Mark (々) and Vertical Ideographic Iteration Mark (〻), this feature only repeats the immediately preceding single character. |
| 882 | Patterns beyond **repeat the previous one character** are **not** supported like the following cases. |
| 883 | |
| 884 | Examples: |
| 885 | - "部分々々" -> "部分部分" |
| 886 | - "古々々米" -> "古古古米" |
| 887 | ``` |
| 888 | |
| 889 | ## See also |
| 890 | |
| 891 | - {doc}`../commands/normalize` |