| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
.. groonga-command |
| 4 |
.. database: normalisers |
| 5 |
|
| 6 |
.. _normalizer-nfkc121: |
| 7 |
|
| 8 |
``NormalizerNFKC121`` |
| 9 |
===================== |
| 10 |
|
| 11 |
.. deprecated:: 14.1.3 |
| 12 |
|
| 13 |
Use :doc:`./normalizer_nfkc` instead. |
| 14 |
|
| 15 |
``NormalizerNFKC121`` and ``NormalizerNFKC("version", "12.1.0")`` are equal. |
| 16 |
|
| 17 |
Summary |
| 18 |
------- |
| 19 |
|
| 20 |
.. versionadded:: 9.0.3 |
| 21 |
|
| 22 |
``NormalizerNFKC121`` normalizes text by Unicode NFKC (Normalization Form Compatibility Composition) for Unicode version 12.1. |
| 23 |
|
| 24 |
This normalizer can change behavior by specifying options. |
| 25 |
|
| 26 |
Syntax |
| 27 |
------ |
| 28 |
|
| 29 |
``NormalizerNFKC121`` has optional parameter. |
| 30 |
|
| 31 |
No options:: |
| 32 |
|
| 33 |
NormalizerNFKC121 |
| 34 |
|
| 35 |
``NormalizerNFKC121`` normalizes text by Unicode NFKC (Normalization Form Compatibility Composition) for Unicode version 12.1. |
| 36 |
|
| 37 |
Specify option:: |
| 38 |
|
| 39 |
NormalizerNFKC121("unify_kana", true) |
| 40 |
|
| 41 |
NormalizerNFKC121("unify_kana_case", true) |
| 42 |
|
| 43 |
NormalizerNFKC121("unify_kana_voiced_sound_mark", true) |
| 44 |
|
| 45 |
NormalizerNFKC121("unify_hyphen", true) |
| 46 |
|
| 47 |
NormalizerNFKC121("unify_prolonged_sound_mark", true) |
| 48 |
|
| 49 |
NormalizerNFKC121("unify_hyphen_and_prolonged_sound_mark", true) |
| 50 |
|
| 51 |
NormalizerNFKC121("unify_middle_dot", true) |
| 52 |
|
| 53 |
NormalizerNFKC121("unify_katakana_v_sounds", true) |
| 54 |
|
| 55 |
NormalizerNFKC121("unify_katakana_bu_sound", true) |
| 56 |
|
| 57 |
NormalizerNFKC121("unify_to_romaji", true) |
| 58 |
|
| 59 |
NormalizerNFKC121("unify_katakana_gu_small_sounds", true) |
| 60 |
|
| 61 |
NormalizerNFKC121("unify_katakana_di_sound", true) |
| 62 |
|
| 63 |
NormalizerNFKC121("unify_katakana_wo_sound", true) |
| 64 |
|
| 65 |
NormalizerNFKC121("unify_katakana_zu_small_sounds", true) |
| 66 |
|
| 67 |
NormalizerNFKC121("unify_katakana_du_sound", true) |
| 68 |
|
| 69 |
NormalizerNFKC121("unify_katakana_trailing_o", true) |
| 70 |
|
| 71 |
NormalizerNFKC121("unify_katakana_du_small_sounds", true) |
| 72 |
|
| 73 |
NormalizerNFKC121("unify_kana_prolonged_sound_mark", true) |
| 74 |
|
| 75 |
NormalizerNFKC121("unify_kana_hyphen", true) |
| 76 |
|
| 77 |
.. versionadded:: 13.0.0 |
| 78 |
|
| 79 |
:ref:`normalizer-nfkc121-unify-katakana-gu-small-sounds` is added. |
| 80 |
|
| 81 |
:ref:`normalizer-nfkc121-unify-katakana-di-sound` is added. |
| 82 |
|
| 83 |
:ref:`normalizer-nfkc121-unify-katakana-wo-sound` is added. |
| 84 |
|
| 85 |
:ref:`normalizer-nfkc121-unify-katakana-zu-small-sounds` is added. |
| 86 |
|
| 87 |
:ref:`normalizer-nfkc121-unify-katakana-du-sound` is added. |
| 88 |
|
| 89 |
:ref:`normalizer-nfkc121-unify-katakana-trailing-o` is added. |
| 90 |
|
| 91 |
:ref:`normalizer-nfkc121-unify-katakana-du-small-sounds` is added. |
| 92 |
|
| 93 |
.. versionadded:: 13.0.1 |
| 94 |
|
| 95 |
:ref:`normalizer-nfkc121-unify-kana-prolonged-sound-mark` is added. |
| 96 |
|
| 97 |
:ref:`normalizer-nfkc121-unify-kana-hyphen` is added. |
| 98 |
|
| 99 |
Specify multiple options:: |
| 100 |
|
| 101 |
NormalizerNFKC121("unify_to_romaji", true, "unify_kana_case", true, "unify_hyphen_and_prolonged_sound_mark", true) |
| 102 |
|
| 103 |
``NormalizerNFKC121`` also specify multiple options as above. You can also specify mingle multiple options except above example. |
| 104 |
|
| 105 |
Usage |
| 106 |
----- |
| 107 |
|
| 108 |
Simple usage |
| 109 |
^^^^^^^^^^^^ |
| 110 |
|
| 111 |
Here is an example of ``NormalizerNFKC121``. ``NormalizerNFKC121`` normalizes text by Unicode NFKC (Normalization Form Compatibility Composition) for Unicode version 12.1. |
| 112 |
|
| 113 |
.. groonga-command |
| 114 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121.log |
| 115 |
.. normalize NormalizerNFKC121 "©" WITH_TYPES |
| 116 |
|
| 117 |
Here is an example of :ref:`normalizer-nfkc121-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 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-kana.log |
| 123 |
.. normalize 'NormalizerNFKC121("unify_kana", true)' "あイウェおヽヾ" WITH_TYPES |
| 124 |
|
| 125 |
Here is an example of :ref:`normalizer-nfkc121-unify-kana-case` option. |
| 126 |
|
| 127 |
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. |
| 128 |
|
| 129 |
.. groonga-command |
| 130 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-kana-case-hiragana.log |
| 131 |
.. normalize 'NormalizerNFKC121("unify_kana_case", true)' "ぁあぃいぅうぇえぉおゃやゅゆょよゎわゕかゖけ" WITH_TYPES |
| 132 |
|
| 133 |
.. groonga-command |
| 134 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-kana-case-katakana.log |
| 135 |
.. normalize 'NormalizerNFKC121("unify_kana_case", true)' "ァアィイゥウェエォオャヤュユョヨヮワヵカヶケ" WITH_TYPES |
| 136 |
|
| 137 |
Here is an example of :ref:`normalizer-nfkc121-unify-kana-voiced-sound-mark` option. |
| 138 |
|
| 139 |
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. |
| 140 |
|
| 141 |
|
| 142 |
.. groonga-command |
| 143 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-voiced-sound-mark-hiragana.log |
| 144 |
.. normalize 'NormalizerNFKC121("unify_kana_voiced_sound_mark", true)' "かがきぎくぐけげこごさざしじすずせぜそぞただちぢつづてでとどはばぱひびぴふぶぷへべぺほぼぽ" WITH_TYPES |
| 145 |
|
| 146 |
.. groonga-command |
| 147 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-voiced-sound-mark-katakana.log |
| 148 |
.. normalize 'NormalizerNFKC121("unify_kana_voiced_sound_mark", true)' "カガキギクグケゲコゴサザシジスズセゼソゾタダチヂツヅテデトドハバパヒビピフブプヘベペホボポ" WITH_TYPES |
| 149 |
|
| 150 |
Here is an example of :ref:`normalizer-nfkc121-unify-hyphen` option. |
| 151 |
This option enables normalize hyphen to "-" (U+002D HYPHEN-MINUS) as below. |
| 152 |
|
| 153 |
.. groonga-command |
| 154 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-hyphen.log |
| 155 |
.. normalize 'NormalizerNFKC121("unify_hyphen", true)' "-˗֊‐‑‒–⁃⁻₋−" WITH_TYPES |
| 156 |
|
| 157 |
Here is an example of :ref:`normalizer-nfkc121-unify-prolonged-sound-mark` option. |
| 158 |
This option enables normalize prolonged sound to "-" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) as below. |
| 159 |
|
| 160 |
.. groonga-command |
| 161 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-prolonged-sound-mark.log |
| 162 |
.. normalize 'NormalizerNFKC121("unify_prolonged_sound_mark", true)' "ー—―─━ー" WITH_TYPES |
| 163 |
|
| 164 |
Here is an example of :ref:`normalizer-nfkc121-unify-hyphen-and-prolonged-sound-mark` option. |
| 165 |
This option enables normalize hyphen and prolonged sound to "-" (U+002D HYPHEN-MINUS) as below. |
| 166 |
|
| 167 |
.. groonga-command |
| 168 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-hyphen-and-prolonged-sound-mark.log |
| 169 |
.. normalize 'NormalizerNFKC121("unify_hyphen_and_prolonged_sound_mark", true)' "-˗֊‐‑‒–⁃⁻₋− ﹣- ー—―─━ー" WITH_TYPES |
| 170 |
|
| 171 |
Here is an example of :ref:`normalizer-nfkc121-unify-middle-dot` option. |
| 172 |
This option enables normalize middle dot to "·" (U+00B7 MIDDLE DOT) as below. |
| 173 |
|
| 174 |
.. groonga-command |
| 175 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-middle-dot.log |
| 176 |
.. normalize 'NormalizerNFKC121("unify_middle_dot", true)' "·ᐧ•∙⋅⸱・・" WITH_TYPES |
| 177 |
|
| 178 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-v-sounds` option. |
| 179 |
This option enables normalize "ヴァヴィヴヴェヴォ" to "バビブベボ" as below. |
| 180 |
|
| 181 |
.. groonga-command |
| 182 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-v-sounds.log |
| 183 |
.. normalize 'NormalizerNFKC121("unify_katakana_v_sounds", true)' "ヴァヴィヴヴェヴォヴ" WITH_TYPES |
| 184 |
|
| 185 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-bu-sounds` option. |
| 186 |
This option enables normalize "ヴァヴィヴゥヴェヴォ" to "ブ" as below. |
| 187 |
|
| 188 |
.. groonga-command |
| 189 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-bu-sounds.log |
| 190 |
.. normalize 'NormalizerNFKC121("unify_katakana_bu_sound", true)' "ヴァヴィヴヴェヴォヴ" WITH_TYPES |
| 191 |
|
| 192 |
Here is an example of :ref:`normalizer-nfkc121-unify-to-romaji` option. |
| 193 |
This option enables normalize hiragana and katakana to romaji as below. |
| 194 |
|
| 195 |
.. groonga-command |
| 196 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-to-romaji.log |
| 197 |
.. normalize 'NormalizerNFKC121("unify_to_romaji", true)' "アァイィウゥエェオォ" WITH_TYPES |
| 198 |
|
| 199 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-gu-small-sounds` option. |
| 200 |
This option enables to normalize "グァグィグェグォ" to "ガギゲゴ" as below. |
| 201 |
|
| 202 |
.. groonga-command |
| 203 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-katakana-gu-small-sounds.log |
| 204 |
.. normalize 'NormalizerNFKC121("unify_katakana_gu_small_sounds", true)' "グァグィグェグォ" WITH_TYPES |
| 205 |
|
| 206 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-di-sound` option. |
| 207 |
This option enables to normalize "ヂ" to "ジ" as below. |
| 208 |
|
| 209 |
.. groonga-command |
| 210 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-di-sound.log |
| 211 |
.. normalize 'NormalizerNFKC121("unify_katakana_di_sound", true)' "ヂ" WITH_TYPES |
| 212 |
|
| 213 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-wo-sound` option. |
| 214 |
This option enables to normalize "ヲ" to "オ" as below. |
| 215 |
|
| 216 |
.. groonga-command |
| 217 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-wo-sound.log |
| 218 |
.. normalize 'NormalizerNFKC121("unify_katakana_wo_sound", true)' "ヲ" WITH_TYPES |
| 219 |
|
| 220 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-zu-small-sounds` option. |
| 221 |
This option enables to normalize "ズァズィズェズォ" to "ザジゼゾ" as below. |
| 222 |
|
| 223 |
.. groonga-command |
| 224 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-zu-small-sounds.log |
| 225 |
.. normalize 'NormalizerNFKC121("unify_katakana_zu_small_sounds", true)' "ズァズィズェズォ" WITH_TYPES |
| 226 |
|
| 227 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-du-sound` option. |
| 228 |
This option enables to normalize "ヅ" to "ズ" as below. |
| 229 |
|
| 230 |
.. groonga-command |
| 231 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-du-sound.log |
| 232 |
.. normalize 'NormalizerNFKC121("unify_katakana_du_sound", true)' "ヅ" WITH_TYPES |
| 233 |
|
| 234 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-trailing-o` option. |
| 235 |
This option enables to normalize "オ" to "ウ" when the vowel in the previous letter is "オ" as below. |
| 236 |
|
| 237 |
.. groonga-command |
| 238 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-trailing-o.log |
| 239 |
.. normalize 'NormalizerNFKC121("unify_katakana_trailing_o", true)' "オオコオソオトオノオ" WITH_TYPES |
| 240 |
|
| 241 |
Here is an example of :ref:`normalizer-nfkc121-unify-katakana-du-small-sounds` option. |
| 242 |
This option enables to normalize "ヅァヅィヅェヅォ" to "ザジゼゾ". |
| 243 |
|
| 244 |
.. groonga-command |
| 245 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-katakana-du-small-sounds.log |
| 246 |
.. normalize 'NormalizerNFKC121("unify_katakana_du_small_sounds", true)' "ヅァヅィヅェヅォ" WITH_TYPES |
| 247 |
|
| 248 |
Here is an example of :ref:`normalizer-nfkc121-unify-kana-prolonged-sound-mark` option. |
| 249 |
This option enables to normalize "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 250 |
to a vowel of a previous kana letter. |
| 251 |
|
| 252 |
If a previous kana letter is "ん" , "ー" is normalized to "ん", |
| 253 |
And a previous kana letter is "ン" , "ー" is normalized to "ン". |
| 254 |
|
| 255 |
.. groonga-command |
| 256 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-kana-prolonged-sound-mark.log |
| 257 |
.. normalize 'NormalizerNFKC121("unify_kana_prolonged_sound_mark", true)' "カーキークーケーコー" WITH_TYPES |
| 258 |
|
| 259 |
Here is an example of :ref:`normalizer-nfkc121-unify-kana-hyphen` option. |
| 260 |
This option enables to normalize "-" (U+002D HYPHEN-MINUS) to a vowel of a previous kana letter. |
| 261 |
|
| 262 |
If a previous kana letter is "ん" , "-" is normalized to "ん", |
| 263 |
And a previous kana letter is "ン" , "-" is normalized to "ン". |
| 264 |
|
| 265 |
.. groonga-command |
| 266 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-kana-hyphen.log |
| 267 |
.. normalize 'NormalizerNFKC121("unify_kana_hyphen", true)' "カ-キ-ク-ケ-コ-" WITH_TYPES |
| 268 |
|
| 269 |
Advanced usage |
| 270 |
^^^^^^^^^^^^^^ |
| 271 |
|
| 272 |
You can output romaji of specific a part of speech with using to combine |
| 273 |
``TokenMecab`` and ``NormalizerNFKC121`` as below. |
| 274 |
|
| 275 |
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. |
| 276 |
|
| 277 |
Next, you normalize reading of the noun that extracted with ``unify_to_romaji`` option of ``NormalizerNFKC121``. |
| 278 |
|
| 279 |
.. groonga-command |
| 280 |
.. include:: ../../example/reference/normalizers/normalizer-nfkc121-unify-to-romaji-complex.log |
| 281 |
.. tokenize 'TokenMecab("target_class", "-名詞/非自立", "target_class", "-名詞/接尾/人名", "target_class", "名詞", "include_reading", true)' '彼の名前は山田さんのはずです。' |
| 282 |
.. normalize 'NormalizerNFKC121("unify_to_romaji", true)' "カレ" WITH_TYPES |
| 283 |
.. normalize 'NormalizerNFKC121("unify_to_romaji", true)' "ナマエ" WITH_TYPES |
| 284 |
.. normalize 'NormalizerNFKC121("unify_to_romaji", true)' "ヤマダ" WITH_TYPES |
| 285 |
|
| 286 |
Parameters |
| 287 |
---------- |
| 288 |
|
| 289 |
Optional parameter |
| 290 |
^^^^^^^^^^^^^^^^^^ |
| 291 |
|
| 292 |
There are optional parameters as below. |
| 293 |
|
| 294 |
.. _normalizer-nfkc121-unify-kana: |
| 295 |
|
| 296 |
``unify_kana`` |
| 297 |
"""""""""""""" |
| 298 |
|
| 299 |
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. |
| 300 |
|
| 301 |
.. _normalizer-nfkc121-unify-kana-case: |
| 302 |
|
| 303 |
``unify_kana_case`` |
| 304 |
""""""""""""""""""" |
| 305 |
|
| 306 |
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. |
| 307 |
|
| 308 |
.. _normalizer-nfkc121-unify-kana-voiced-sound-mark: |
| 309 |
|
| 310 |
``unify_kana_voiced_sound_mark`` |
| 311 |
"""""""""""""""""""""""""""""""" |
| 312 |
|
| 313 |
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. |
| 314 |
|
| 315 |
.. _normalizer-nfkc121-unify-hyphen: |
| 316 |
|
| 317 |
``unify_hyphen`` |
| 318 |
"""""""""""""""" |
| 319 |
|
| 320 |
This option enables normalize hyphen to "-" (U+002D HYPHEN-MINUS). |
| 321 |
|
| 322 |
Hyphen of the target of normalizing is as below. |
| 323 |
|
| 324 |
* "-" (U+002D HYPHEN-MINUS) |
| 325 |
* "֊" (U+058A ARMENIAN HYPHEN) |
| 326 |
* "˗" (U+02D7 MODIFIER LETTER MINUS SIGN) |
| 327 |
* "‐" (U+2010 HYPHEN) |
| 328 |
* "—" (U+2014 EM DASH) |
| 329 |
* "⁃" (U+2043 HYPHEN BULLET) |
| 330 |
* "⁻" (U+207B SUPERSCRIPT MINUS) |
| 331 |
* "₋" (U+208B SUBSCRIPT MINUS) |
| 332 |
* "−" (U+2212 MINUS SIGN) |
| 333 |
|
| 334 |
.. _normalizer-nfkc121-unify-prolonged-sound-mark: |
| 335 |
|
| 336 |
``unify_prolonged_sound_mark`` |
| 337 |
"""""""""""""""""""""""""""""" |
| 338 |
|
| 339 |
This option enables normalize prolonged sound to "-" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK). |
| 340 |
|
| 341 |
Prolonged sound of the target of normalizing is as below. |
| 342 |
|
| 343 |
* "—" (U+2014 EM DASH) |
| 344 |
* "―" (U+2015 HORIZONTAL BAR) |
| 345 |
* "─" (U+2500 BOX DRAWINGS LIGHT HORIZONTAL) |
| 346 |
* "━" (U+2501 BOX DRAWINGS HEAVY HORIZONTAL) |
| 347 |
* "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 348 |
* "ー" (U+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 349 |
|
| 350 |
.. _normalizer-nfkc121-unify-hyphen-and-prolonged-sound-mark: |
| 351 |
|
| 352 |
``unify_hyphen_and_prolonged_sound_mark`` |
| 353 |
""""""""""""""""""""""""""""""""""""""""" |
| 354 |
|
| 355 |
This option enables normalize hyphen and prolonged sound to "-" (U+002D HYPHEN-MINUS). |
| 356 |
|
| 357 |
Hyphen and prolonged sound of the target normalizing is below. |
| 358 |
|
| 359 |
* "-" (U+002D HYPHEN-MINUS) |
| 360 |
* "֊" (U+058A ARMENIAN HYPHEN) |
| 361 |
* "˗" (U+02D7 MODIFIER LETTER MINUS SIGN) |
| 362 |
* "‐" (U+2010 HYPHEN) |
| 363 |
* "—" (U+2014 EM DASH) |
| 364 |
* "⁃" (U+2043 HYPHEN BULLET) |
| 365 |
* "⁻" (U+207B SUPERSCRIPT MINUS) |
| 366 |
* "₋" (U+208B SUBSCRIPT MINUS) |
| 367 |
* "−" (U+2212 MINUS SIGN) |
| 368 |
|
| 369 |
* "—" (U+2014 EM DASH) |
| 370 |
* "―" (U+2015 HORIZONTAL BAR) |
| 371 |
* "─" (U+2500 BOX DRAWINGS LIGHT HORIZONTAL) |
| 372 |
* "━" (U+2501 BOX DRAWINGS HEAVY HORIZONTAL) |
| 373 |
* "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 374 |
* "ー" (U+FF70 HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 375 |
|
| 376 |
.. _normalizer-nfkc121-unify-middle-dot: |
| 377 |
|
| 378 |
``unify_middle_dot`` |
| 379 |
"""""""""""""""""""" |
| 380 |
|
| 381 |
This option enables normalize middle dot to "·" (U+00B7 MIDDLE DOT). |
| 382 |
|
| 383 |
Middle dot of the target of normalizing is as below. |
| 384 |
|
| 385 |
* "·" (U+00B7 MIDDLE DOT) |
| 386 |
* "ᐧ" (U+1427 CANADIAN SYLLABICS FINAL MIDDLE DOT) |
| 387 |
* "•" (U+2022 BULLET) |
| 388 |
* "∙" (U+2219 BULLET OPERATOR) |
| 389 |
* "⋅" (U+22C5 DOT OPERATOR) |
| 390 |
* "⸱" (U+2E31 WORD SEPARATOR MIDDLE DOT) |
| 391 |
* "・" (U+30FB KATAKANA MIDDLE DOT) |
| 392 |
* "・" (U+FF65 HALFWIDTH KATAKANA MIDDLE DOT) |
| 393 |
|
| 394 |
.. _normalizer-nfkc121-unify-katakana-v-sounds: |
| 395 |
|
| 396 |
``unify_katakana_v_sounds`` |
| 397 |
""""""""""""""""""""""""""" |
| 398 |
|
| 399 |
This option enables normalize "ヴァヴィヴヴェヴォ" to "バビブベボ". |
| 400 |
|
| 401 |
.. _normalizer-nfkc121-unify-katakana-bu-sounds: |
| 402 |
|
| 403 |
``unify_katakana_bu_sound`` |
| 404 |
""""""""""""""""""""""""""" |
| 405 |
|
| 406 |
This option enables normalize "ヴァヴィヴゥヴェヴォ" to "ブ". |
| 407 |
|
| 408 |
.. _normalizer-nfkc121-unify-to-romaji: |
| 409 |
|
| 410 |
``unify_to_romaji`` |
| 411 |
""""""""""""""""""" |
| 412 |
|
| 413 |
This option enables normalize hiragana and katakana to romaji. |
| 414 |
|
| 415 |
.. _normalizer-nfkc121-unify-katakana-gu-small-sounds: |
| 416 |
|
| 417 |
``unify_katakana_gu_small_sounds`` |
| 418 |
"""""""""""""""""""""""""""""""""" |
| 419 |
|
| 420 |
.. versionadded:: 13.0.0 |
| 421 |
|
| 422 |
This option enables to normalize "グァグィグェグォ" to "ガギゲゴ". |
| 423 |
|
| 424 |
.. _normalizer-nfkc121-unify-katakana-di-sound: |
| 425 |
|
| 426 |
``unify_katakana_di_sound`` |
| 427 |
""""""""""""""""""""""""""" |
| 428 |
|
| 429 |
.. versionadded:: 13.0.0 |
| 430 |
|
| 431 |
This option enables to normalize "ヂ" to "ジ". |
| 432 |
|
| 433 |
.. _normalizer-nfkc121-unify-katakana-wo-sound: |
| 434 |
|
| 435 |
``unify_katakana_wo_sound`` |
| 436 |
""""""""""""""""""""""""""" |
| 437 |
|
| 438 |
.. versionadded:: 13.0.0 |
| 439 |
|
| 440 |
This option enables to normalize "ヲ" to "オ". |
| 441 |
|
| 442 |
.. _normalizer-nfkc121-unify-katakana-zu-small-sounds: |
| 443 |
|
| 444 |
``unify_katakana_zu_small_sounds`` |
| 445 |
"""""""""""""""""""""""""""""""""" |
| 446 |
|
| 447 |
.. versionadded:: 13.0.0 |
| 448 |
|
| 449 |
This option enables to normalize "ズァズィズェズォ" to "ザジゼゾ". |
| 450 |
|
| 451 |
.. _normalizer-nfkc121-unify-katakana-du-sound: |
| 452 |
|
| 453 |
``unify_katakana_du_sound`` |
| 454 |
""""""""""""""""""""""""""" |
| 455 |
|
| 456 |
.. versionadded:: 13.0.0 |
| 457 |
|
| 458 |
This option enables to normalize "ヅ" to "ズ". |
| 459 |
|
| 460 |
.. _normalizer-nfkc121-unify-katakana-trailing-o: |
| 461 |
|
| 462 |
``unify_katakana_trailing_o`` |
| 463 |
""""""""""""""""""""""""""""" |
| 464 |
|
| 465 |
.. versionadded:: 13.0.0 |
| 466 |
|
| 467 |
This option enables to normalize "オ" to "ウ" |
| 468 |
when the vowel in the previous letter is "オ". |
| 469 |
|
| 470 |
* "ォオ" -> "ォウ" |
| 471 |
* "オオ" -> "オウ" |
| 472 |
* "コオ" -> "コウ" |
| 473 |
* "ソオ" -> "ソウ" |
| 474 |
* "トオ" -> "トウ" |
| 475 |
* "ノオ" -> "ノウ" |
| 476 |
* "ホオ" -> "ホウ" |
| 477 |
* "モオ" -> "モウ" |
| 478 |
* "ョオ" -> "ョオ" |
| 479 |
* "ヨオ" -> "ヨウ" |
| 480 |
* "ロオ" -> "ロウ" |
| 481 |
* "ゴオ" -> "ゴウ" |
| 482 |
* "ゾオ" -> "ゾウ" |
| 483 |
* "ドオ" -> "ドウ" |
| 484 |
* "ボオ" -> "ボウ" |
| 485 |
* "ポオ" -> "ポウ" |
| 486 |
* "ヺオ" -> "ヺウ" |
| 487 |
|
| 488 |
.. _normalizer-nfkc121-unify-katakana-du-small-sounds: |
| 489 |
|
| 490 |
``unify_katakana_du_small_sounds`` |
| 491 |
"""""""""""""""""""""""""""""""""" |
| 492 |
|
| 493 |
.. versionadded:: 13.0.0 |
| 494 |
|
| 495 |
This option enables to normalize "ヅァヅィヅェヅォ" to "ザジゼゾ". |
| 496 |
|
| 497 |
.. _normalizer-nfkc121-unify-kana-prolonged-sound-mark: |
| 498 |
|
| 499 |
``unify_kana_prolonged_sound_mark`` |
| 500 |
""""""""""""""""""""""""""""""""""" |
| 501 |
|
| 502 |
.. versionadded:: 13.0.1 |
| 503 |
|
| 504 |
This option enables to normalize "ー" (U+30FC KATAKANA-HIRAGANA PROLONGED SOUND MARK) |
| 505 |
to a vowel of a previous kana letter. |
| 506 |
|
| 507 |
If a previous kana letter is "ん" , "ー" is normalized to "ん", |
| 508 |
And a previous kana letter is "ン" , "ー" is normalized to "ン". |
| 509 |
|
| 510 |
.. code-block:: |
| 511 |
|
| 512 |
ァー -> ァア, アー -> アア, ヵー -> ヵア, カー -> カア, ガー -> ガア, サー -> サア, ザー -> ザア, |
| 513 |
ター -> タア, ダー -> ダア, ナー -> ナア, ハー -> ハア, バー -> バア, パー -> パア, マー -> マア, |
| 514 |
ャー -> ャア, ヤー -> ヤア, ラー -> ラア, ヮー -> ヮア, ワー -> ワア, ヷー -> ヷア, |
| 515 |
ィー -> ィイ, イー -> イイ, キー -> キイ, ギー -> ギイ, シー -> シイ, ジー -> ジイ, チー -> チイ, |
| 516 |
ヂー -> ヂイ, ニー -> ニイ, ヒー -> ヒイ, ビー -> ビイ, ピー -> ピイ, ミー -> ミイ, リー -> リイ, |
| 517 |
ヰー -> ヰイ, ヸー -> ヸイ, |
| 518 |
|
| 519 |
ゥー -> ゥウ, ウー -> ウウ, クー -> クウ, グー -> グウ, スー -> スウ, ズー -> ズウ, ツー -> ツウ, |
| 520 |
ヅー -> ヅウ, ヌー -> ヌウ, フー -> フウ, ブー -> ブウ, プー -> プウ, ムー -> ムウ, ュー -> ュウ, |
| 521 |
ユー -> ユウ, ルー -> ルウ, ヱー -> ヱウ, ヴー -> ヴウ, |
| 522 |
|
| 523 |
ェー -> ェエ, エー -> エエ, ヶー -> ヶエ, ケー -> ケエ, ゲー -> ゲエ, セー -> セエ, ゼー -> ゼエ, |
| 524 |
テー -> テエ, デー -> デエ, ネー -> ネエ, ヘー -> ヘエ, ベー -> ベエ, ペー -> ペエ, メー -> メエ, |
| 525 |
レー -> レエ, ヹー -> ヹエ, |
| 526 |
|
| 527 |
ォー -> ォオ, オー -> オオ, コー -> コオ, ゴー -> ゴオ, ソー -> ソオ, ゾー -> ゾオ, トー -> トオ, |
| 528 |
ドー -> ドオ, ノー -> ノオ, ホー -> ホオ, ボー -> ボオ, ポー -> ポオ, モー -> モオ, ョー -> ョオ, |
| 529 |
ヨー -> ヨオ, ロー -> ロオ, ヲー -> ヲオ, ヺー -> ヺオ, |
| 530 |
|
| 531 |
ンー -> ンン |
| 532 |
|
| 533 |
ぁー -> ぁあ, あー -> ああ, ゕー -> ゕあ, かー -> かあ, がー -> があ, さー -> さあ, ざー -> ざあ, |
| 534 |
たー -> たあ, だー -> だあ, なー -> なあ, はー -> はあ, ばー -> ばあ, ぱー -> ぱあ, まー -> まあ, |
| 535 |
ゃー -> ゃあ, やー -> やあ, らー -> らあ, ゎー -> ゎあ, わー -> わあ |
| 536 |
|
| 537 |
ぃー -> ぃい, いー -> いい, きー -> きい, ぎー -> ぎい, しー -> しい, じー -> じい, ちー -> ちい, |
| 538 |
ぢー -> ぢい, にー -> にい, ひー -> ひい, びー -> びい, ぴー -> ぴい, みー -> みい, りー -> りい, |
| 539 |
ゐー -> ゐい |
| 540 |
|
| 541 |
ぅー -> ぅう, うー -> うう, くー -> くう, ぐー -> ぐう, すー -> すう, ずー -> ずう, つー -> つう, |
| 542 |
づー -> づう, ぬー -> ぬう, ふー -> ふう, ぶー -> ぶう, ぷー -> ぷう, むー -> むう, ゅー -> ゅう, |
| 543 |
ゆー -> ゆう, るー -> るう, ゑー -> ゑう, ゔー -> ゔう |
| 544 |
|
| 545 |
ぇー -> ぇえ, えー -> ええ, ゖー -> ゖえ, けー -> けえ, げー -> げえ, せー -> せえ, ぜー -> ぜえ, |
| 546 |
てー -> てえ, でー -> でえ, ねー -> ねえ, へー -> へえ, べー -> べえ, ぺー -> ぺえ, めー -> めえ, |
| 547 |
れー -> れえ |
| 548 |
|
| 549 |
ぉー -> ぉお, おー -> おお, こー -> こお, ごー -> ごお, そー -> そお, ぞー -> ぞお, とー -> とお, |
| 550 |
どー -> どお, のー -> のお, ほー -> ほお, ぼー -> ぼお, ぽー -> ぽお, もー -> もお, ょー -> ょお, |
| 551 |
よー -> よお, ろー -> ろお, をー -> をお |
| 552 |
|
| 553 |
んー -> んん |
| 554 |
|
| 555 |
.. _normalizer-nfkc121-unify-kana-hyphen: |
| 556 |
|
| 557 |
``unify_kana_hyphen`` |
| 558 |
""""""""""""""""""""" |
| 559 |
|
| 560 |
.. versionadded:: 13.0.1 |
| 561 |
|
| 562 |
This option enables to normalize "-" (U+002D HYPHEN-MINUS) to a vowel of a previous kana letter. |
| 563 |
|
| 564 |
If a previous kana letter is "ん" , "-" is normalized to "ん", |
| 565 |
And a previous kana letter is "ン" , "-" is normalized to "ン". |
| 566 |
|
| 567 |
.. code-block:: |
| 568 |
|
| 569 |
ァ- -> ァア, ア- -> アア, ヵ- -> ヵア, カ- -> カア, ガ- -> ガア, サ- -> サア, ザ- -> ザア, |
| 570 |
タ- -> タア, ダ- -> ダア, ナ- -> ナア, ハ- -> ハア, バ- -> バア, パ- -> パア, マ- -> マア, |
| 571 |
ャ- -> ャア, ヤ- -> ヤア, ラ- -> ラア, ヮ- -> ヮア, ワ- -> ワア, ヷ- -> ヷア, |
| 572 |
ィ- -> ィイ, イ- -> イイ, キ- -> キイ, ギ- -> ギイ, シ- -> シイ, ジ- -> ジイ, チ- -> チイ, |
| 573 |
ヂ- -> ヂイ, ニ- -> ニイ, ヒ- -> ヒイ, ビ- -> ビイ, ピ- -> ピイ, ミ- -> ミイ, リ- -> リイ, |
| 574 |
ヰ- -> ヰイ, ヸ- -> ヸイ, |
| 575 |
|
| 576 |
ゥ- -> ゥウ, ウ- -> ウウ, ク- -> クウ, グ- -> グウ, ス- -> スウ, ズ- -> ズウ, ツ- -> ツウ, |
| 577 |
ヅ- -> ヅウ, ヌ- -> ヌウ, フ- -> フウ, ブ- -> ブウ, プ- -> プウ, ム- -> ムウ, ュ- -> ュウ, |
| 578 |
ユ- -> ユウ, ル- -> ルウ, ヱ- -> ヱウ, ヴ- -> ヴウ, |
| 579 |
|
| 580 |
ェ- -> ェエ, エ- -> エエ, ヶ- -> ヶエ, ケ- -> ケエ, ゲ- -> ゲエ, セ- -> セエ, ゼ- -> ゼエ, |
| 581 |
テ- -> テエ, デ- -> デエ, ネ- -> ネエ, ヘ- -> ヘエ, ベ- -> ベエ, ペ- -> ペエ, メ- -> メエ, |
| 582 |
レ- -> レエ, ヹ- -> ヹエ, |
| 583 |
|
| 584 |
ォ- -> ォオ, オ- -> オオ, コ- -> コオ, ゴ- -> ゴオ, ソ- -> ソオ, ゾ- -> ゾオ, ト- -> トオ, |
| 585 |
ド- -> ドオ, ノ- -> ノオ, ホ- -> ホオ, ボ- -> ボオ, ポ- -> ポオ, モ- -> モオ, ョ- -> ョオ, |
| 586 |
ヨ- -> ヨオ, ロ- -> ロオ, ヲ- -> ヲオ, ヺ- -> ヺオ, |
| 587 |
|
| 588 |
ン- -> ンン |
| 589 |
|
| 590 |
ぁ- -> ぁあ, あ- -> ああ, ゕ- -> ゕあ, か- -> かあ, が- -> があ, さ- -> さあ, ざ- -> ざあ, |
| 591 |
た- -> たあ, だ- -> だあ, な- -> なあ, は- -> はあ, ば- -> ばあ, ぱ- -> ぱあ, ま- -> まあ, |
| 592 |
ゃ- -> ゃあ, や- -> やあ, ら- -> らあ, ゎ- -> ゎあ, わ- -> わあ |
| 593 |
|
| 594 |
ぃ- -> ぃい, い- -> いい, き- -> きい, ぎ- -> ぎい, し- -> しい, じ- -> じい, ち- -> ちい, |
| 595 |
ぢ- -> ぢい, に- -> にい, ひ- -> ひい, び- -> びい, ぴ- -> ぴい, み- -> みい, り- -> りい, |
| 596 |
ゐ- -> ゐい |
| 597 |
|
| 598 |
ぅ- -> ぅう, う- -> うう, く- -> くう, ぐ- -> ぐう, す- -> すう, ず- -> ずう, つ- -> つう, |
| 599 |
づ- -> づう, ぬ- -> ぬう, ふ- -> ふう, ぶ- -> ぶう, ぷ- -> ぷう, む- -> むう, ゅ- -> ゅう, |
| 600 |
ゆ- -> ゆう, る- -> るう, ゑ- -> ゑう, ゔ- -> ゔう |
| 601 |
|
| 602 |
ぇ- -> ぇえ, え- -> ええ, ゖ- -> ゖえ, け- -> けえ, げ- -> げえ, せ- -> せえ, ぜ- -> ぜえ, |
| 603 |
て- -> てえ, で- -> でえ, ね- -> ねえ, へ- -> へえ, べ- -> べえ, ぺ- -> ぺえ, め- -> めえ, |
| 604 |
れ- -> れえ |
| 605 |
|
| 606 |
ぉ- -> ぉお, お- -> おお, こ- -> こお, ご- -> ごお, そ- -> そお, ぞ- -> ぞお, と- -> とお, |
| 607 |
ど- -> どお, の- -> のお, ほ- -> ほお, ぼ- -> ぼお, ぽ- -> ぽお, も- -> もお, ょ- -> ょお, |
| 608 |
よ- -> よお, ろ- -> ろお, を- -> をお |
| 609 |
|
| 610 |
ん- -> んん |
| 611 |
|
| 612 |
See also |
| 613 |
---------- |
| 614 |
|
| 615 |
* :doc:`../commands/normalize` |