英語TTSで「Seibu」が「さいぶ」と読まれる誤読を端末内蔵TTS向けの読み替え表に追加して修正 - #6876
Conversation
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WS1LSBnYTMfm7CyrzqKxuW
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (2)
Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthrough英語 TTS 向けに、単語境界の Changes英語読み上げ
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change corrects the built-in English TTS reading of standalone and hyphenated “Seibu” while leaving “Seibuen” unchanged. The covered behavior is ready to merge with no identified material risk. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
概要
英語アナウンスで「Seibu(西武)」が「さいぶ」と読み上げられる誤読を、#6869 で入れた「Keisei → Kay-say」と同じ方式で修正します。端末内蔵 TTS 向けの読み替え表に
Seibu → Say-booを追加します。リモート TTS 向けの同じ置換は TrainLCD/Functions#27 で行います。変更の種類
変更内容
src/utils/englishReading.ts:ENGLISH_READING_RULESに/\bSeibu\b/gi → 'Say-boo'を追加Seibu Ikebukuro Line/Seibu-Shinjukuは置換され、1 語のSeibuen(西武園)は対象外ですsrc/utils/englishReading.test.ts: 上記のケースを追加engine: 'native')の経路だけに適用されます。リモート TTS へは原文の「Seibu」のまま送りますテスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ることローカル実行結果(Node 24.20.0 / npm 11.19.0):
関連Issue
スクリーンショット(任意)
UI 変更なし:
src/utils/**の読み上げテキスト生成ロジックのみの変更で、画面表示には変化がありません🤖 Generated with Claude Code
https://claude.ai/code/session_01WS1LSBnYTMfm7CyrzqKxuW
Generated by Claude Code
Summary by CodeRabbit