記号の組み合わせから矢印の変換候補を追加する - #372
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
🟡 Changes recommended
手動生成Candidateの lastMid 設定が既存実装と不整合で、変換履歴依存の挙動を招く可能性があるため。
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
日本語入力中に ー> / -> などの記号組み合わせを検出し、矢印記号(例: → / ⇒ / ➜)を追加の変換候補として提示できるようにするPRです。ユーザー辞書登録なしで、完全一致パターンのみを対象に候補を補完します。
Changes:
ArrowSymbolCandidatesを追加し、入力記号列を正規化して矢印候補バリエーションを返す仕組みを実装SegmentsManager.updateRawCandidateで矢印候補を生成し、既存候補との重複を除外して候補リストへ挿入- CoreテストとREADMEに本機能の検証・説明を追加
File summaries
| File | Description |
|---|---|
| README.md | 矢印候補追加機能の概要を追記 |
| Core/Tests/CoreTests/InputUtilsTests/ArrowSymbolCandidatesTests.swift | パターン正規化と候補表示/確定(文節編集含む)のテストを追加 |
| Core/Sources/Core/InputUtils/SegmentsManager.swift | 矢印候補生成・重複排除・候補挿入を追加 |
| Core/Sources/Core/InputUtils/ArrowSymbolCandidates.swift | 入力記号列の正規化と矢印候補のマッピングを実装 |
Review details
- Files reviewed: 4/4 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
これはユーザ辞書などで対応いただければと思います |
日本語入力中の
ー>などを、矢印の変換候補として選べるようにします。特定の単語登録は不要です。ー>/->/-->→・⇒・➜<ー/<-←・⇐・⇦<ー>/<->↔・⇔全角・半角の不等号、および長音符・半角長音符・ハイフン類を入力パターンとして正規化します。完全一致だけを対象とし、元の入力候補も残します。
a->bや文章中の記号、<=は対象外です。文節編集中は選択中の範囲から候補を作り、同じ範囲だけを確定するため、未選択の末尾は残ります。候補がない場合は重複チェック用のSetを作りません。
検証
git diff --check成功他の機能PRには依存せず、本家mainへの差分として実装しています。