Skip to content

fix: DNCLモード切替時にふりがなが消えない#515

Merged
takaokouji merged 1 commit intodevelopfrom
fix/dncl-furigana-not-disabled
Apr 14, 2026
Merged

fix: DNCLモード切替時にふりがなが消えない#515
takaokouji merged 1 commit intodevelopfrom
fix/dncl-furigana-not-disabled

Conversation

@takaokouji
Copy link
Copy Markdown

Summary

DNCLモード(日本語モード)は日本語表記のため、ふりがなは不要で常にOFFにすべき。しかし、「ふりがなモード → 日本語モード」に直接切り替えると、ふりがなが表示されたままになるバグがあった。

handleSelectDnclMode にふりがなOFF処理を1行追加して修正。

Changes Made

  • ruby-toolbar.jsx: handleSelectDnclMode でふりがなが有効な場合にOFFにする処理を追加(handleSelectRubyMode と同じパターン)

Definition of Done

  • lint pass
  • CI green
  • ブラウザ確認(Playwright MCP):
    • ふりがなモード → 日本語モードに直接切替で、ふりがなが消えること
    • 日本語モード → ふりがなモードに戻すと、ふりがなが再表示されること
    • 日本語モード → Rubyモード → ふりがなモードの遷移が正常に動作すること

Fixes #514

When switching directly from furigana mode to DNCL mode, furigana
annotations were not cleared because handleSelectDnclMode did not
disable furigana. DNCL mode uses Japanese text, so furigana is
redundant and should always be turned off.

Fixes #514

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

@takaokouji takaokouji merged commit c63444a into develop Apr 14, 2026
9 checks passed
@takaokouji takaokouji deleted the fix/dncl-furigana-not-disabled branch April 14, 2026 15:55
github-actions bot pushed a commit that referenced this pull request Apr 14, 2026
…gana-not-disabled

fix: DNCLモード切替時にふりがなが消えない
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.

fix: DNCLモード切替時にふりがなが消えない

1 participant