Debian Codegraph @

doc/source/reference/normalizers/normalizer_nfkc150.rst

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