Skip to content

Commit

Permalink
テスト用山のコードを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rokujyushi committed Nov 12, 2024
1 parent 2f2f4fd commit c384f01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions voicevox_engine/user_dict/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ def check_is_katakana(cls, pronunciation: str) -> str:
def check_mora_count_and_accent_type(self) -> Self:
if self.mora_count is None:
rule_others = (
"[イ][ェ]|[ヴ][ャュョ]|[トド][ゥ]|[テデ][ィャュョ]|[デ][ェ]|[クグ][ヮ]"
"[イ][ェ]|[ヴ][ャュョ]|[ウクグトド][ゥ]|[テデ][ィェャュョ]|[クグ][ヮ]"
)
rule_line_i = "[キシチニヒミリギジビピ][ェャュョ]"
rule_line_u = "[ツフヴ][ァ]|[ウスツフヴズ][ィ]|[ウツフヴ][ェォ]"
rule_line_i = (
"[キシチニヒミリギジヂビピ][ェャュョ]|[キスニヒミリギズビピ][ィ]"
)
rule_line_u = "[クツフヴグ][ァ]|[ウクスツフヴグズ][ィ]|[ウクツフヴグ][ェォ]"
rule_one_mora = "[ァ-ヴー]"
self.mora_count = len(
findall(
Expand Down

0 comments on commit c384f01

Please sign in to comment.