From 7030529398f7842c3638e933083fed8d6e882c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=92=E7=8C=AB=E5=A4=A7=E7=A6=8F?= <93469977+rokujyushi@users.noreply.github.com> Date: Tue, 26 Nov 2024 02:03:08 +0900 Subject: [PATCH] =?UTF-8?q?=E5=A4=89=E6=9B=B4=EF=BC=9A=E6=AD=8C=E8=A9=9E?= =?UTF-8?q?=E3=81=AE=E5=85=A5=E5=8A=9B=E5=86=85=E5=AE=B9=E3=83=81=E3=82=A7?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=81=AE=E6=AD=A3=E8=A6=8F=E8=A1=A8=E7=8F=BE?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3=20(#2293)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Hiroshiba --- src/domain/japanese/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/domain/japanese/index.ts b/src/domain/japanese/index.ts index 44c606e9f1..ae20a5275e 100644 --- a/src/domain/japanese/index.ts +++ b/src/domain/japanese/index.ts @@ -44,13 +44,13 @@ export const convertLongVowel = (text: string): string => { // 参考:https://github.com/VOICEVOX/voicevox_core/blob/0848630d81ae3e917c6ff2038f0b15bbd4270702/crates/voicevox_core/src/user_dict/word.rs#L83-L90 export const moraPattern = new RegExp( "(?:" + - "[イ][ェ]|[ヴ][ャュョ]|[トド][ゥ]|[テデ][ィャュョ]|[デ][ェ]|[クグ][ヮ]|" + // rule_others - "[キシチニヒミリギジビピ][ェャュョ]|" + // rule_line_i - "[ツフヴ][ァ]|[ウスツフヴズ][ィ]|[ウツフヴ][ェォ]|" + // rule_line_u + "[イ][ェ]|[ヴ][ャュョ]|[ウクグトド][ゥ]|[テデ][ィェャュョ]|[クグ][ヮ]|" + // rule_others + "[キシチニヒミリギジヂビピ][ェャュョ]|[キニヒミリギビピ][ィ]|" + // rule_line_i + "[クツフヴグ][ァ]|[ウクスツフヴグズ][ィ]|[ウクツフヴグ][ェォ]|" + // rule_line_u "[ァ-ヴー]|" + // rule_one_mora - "[い][ぇ]|[ゃゅょ]|[とど][ぅ]|[てで][ぃゃゅょ]|[で][ぇ]|[くぐ][ゎ]|" + // rule_others - "[きしちにひみりぎじびぴ][ぇゃゅょ]|" + // rule_line_i - "[つふゔ][ぁ]|[うすつふゔず][ぃ]|[うつふゔ][ぇぉ]|" + // rule_line_u + "[い][ぇ]|[ゔ][ゃゅょ]|[うくぐとど][ぅ]|[てで][ぃぇゃゅょ]|[くぐ][わ]|" + // rule_others + "[きしちにひみりぎじぢびぴ][ぇゃゅょ]|[きにひみりぎびぴ][ぃ]|" + // rule_line_i + "[くつふゔぐ][ぁ]|[うくすつふゔぐず][ぃ]|[うくつふゔぐ][ぇぉ]|" + // rule_line_u "[ぁ-ゔー]" + // rule_one_mora ")", "g",