Skip to content

記号の組み合わせから矢印の変換候補を追加する - #372

Closed
sinoda1114 wants to merge 2 commits into
azooKey:mainfrom
sinoda1114:codex/arrow-symbol-candidates
Closed

記号の組み合わせから矢印の変換候補を追加する#372
sinoda1114 wants to merge 2 commits into
azooKey:mainfrom
sinoda1114:codex/arrow-symbol-candidates

Conversation

@sinoda1114

Copy link
Copy Markdown

日本語入力中の ー> などを、矢印の変換候補として選べるようにします。特定の単語登録は不要です。

入力例 追加候補
ー> / -> / -->
<ー / <-
<ー> / <->

全角・半角の不等号、および長音符・半角長音符・ハイフン類を入力パターンとして正規化します。完全一致だけを対象とし、元の入力候補も残します。a->bや文章中の記号、<=は対象外です。

文節編集中は選択中の範囲から候補を作り、同じ範囲だけを確定するため、未選択の末尾は残ります。候補がない場合は重複チェック用のSetを作りません。

検証

  • このブランチ単独のCoreテスト:70件成功
  • 入力パターン・対象外入力、重複なし、元候補保持、全文確定、文節確定後の末尾保持を検証
  • SwiftLintとgit diff --check成功
  • ローカル統合版で149テスト成功、署名付きビルドとインストール後のエンジン応答を確認

他の機能PRには依存せず、本家mainへの差分として実装しています。

Copilot AI lite review requested due to automatic review settings September 5, 2026 06:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-05T06:06:15.455342Z 46daf7c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 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.

Comment thread Core/Sources/Core/InputUtils/SegmentsManager.swift Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@ensan-hcl

Copy link
Copy Markdown
Member

これはユーザ辞書などで対応いただければと思います

@ensan-hcl ensan-hcl closed this Sep 5, 2026
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.

3 participants