Skip to content

Conversation

@Hiroshiba
Copy link
Member

内容

を解決します。
信じられないほど簡単なミスでした。。

関連 Issue

close #2600

その他

@Hiroshiba Hiroshiba requested a review from a team as a code owner March 8, 2025 03:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR fixes the issue where "くわ" was not being split into separate moras, addressing #2600. Key changes include:

  • Adding a new test case in tests/unit/lib/splitLyricsByMoras.spec.ts to verify the correct handling of "くわ" versus "くゎ".
  • Updating the regular expression in src/domain/japanese/index.ts to change "[くぐ][わ]" to "[くぐ][ゎ]", ensuring that "くわ" is split as separate moras.

Reviewed Changes

File Description
tests/unit/lib/splitLyricsByMoras.spec.ts Added test case for special string handling of "くわ" and "くゎ".
src/domain/japanese/index.ts Modified regex pattern for proper separation of "くわ" into distinct moras.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

@voicevox-preview-pages
Copy link

🚀 プレビュー用ページを作成しました 🚀

更新時点でのコミットハッシュ:9e0ab1b

Copy link
Member

@sevenc-nanashi sevenc-nanashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM(うーんこの)

コア/エディタはカタカナのregexで、かつちゃんと動いてそうなのでこっちの修正はいらなさそう。

@Hiroshiba Hiroshiba enabled auto-merge March 8, 2025 03:33
@Hiroshiba Hiroshiba added this pull request to the merge queue Mar 8, 2025
Merged via the queue into VOICEVOX:main with commit 95892af Mar 8, 2025
11 checks passed
@Hiroshiba Hiroshiba deleted the fix--「くわ」が別モーラとして分割されない問題を修正 branch March 9, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ソング:歌詞の一括入力で「くわ」を入力すると1つのノートに「くわ」が入る

2 participants