Skip to content

見分けにくい単独記号の変換候補に説明を表示する - #371

Open
sinoda1114 wants to merge 1 commit into
azooKey:mainfrom
sinoda1114:codex/symbol-candidate-labels
Open

見分けにくい単独記号の変換候補に説明を表示する#371
sinoda1114 wants to merge 1 commit into
azooKey:mainfrom
sinoda1114:codex/symbol-candidate-labels

Conversation

@sinoda1114

Copy link
Copy Markdown

-・-・ー・ー・−の単独候補に記号名を表示します。候補の文字と順序を維持し、既存の説明を優先します。表示幅とアクセシビリティにも反映します。

検証

Coreの説明生成テストとUI側の候補表示テストを追加。追加したAppKitテストは未実行です。

このブランチ単独で swift test --package-path Core --jobs 4 を実行し、Coreの70テストが成功しました。git diff --check も成功しています。

Copilot AI lite review requested due to automatic review settings September 5, 2026 03:43
@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-05T03:45:32.604233Z fe3dd9b 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.

🟢 Approval recommended

Coreの自動annotation付与が既存annotationを尊重しつつ単独記号に限定され、UI側も表示幅・セル再利用・アクセシビリティをテスト込みで整合させています。

Pull request overview

単独の記号候補(- / / / / )が見分けにくい問題に対して、候補の文字や順序を変えずに「記号名(説明)」を付与して表示できるようにするPRです。Core側で説明文(annotation)を自動生成し、macOS UI側では表示幅計算とアクセシビリティラベルへ反映することで、視認性と読み上げの両方を改善しています。

Changes:

  • Core: 単独記号の候補に対して annotation(例: -半角ハイフン)を自動付与(既存annotationがあれば優先)
  • Core/UI テスト: 説明生成のテストと、セル再利用時のクリア・アクセシビリティ・ウィンドウ幅計算のテストを追加
  • ドキュメント: READMEに仕様(対象記号・既存説明優先・語中は対象外)を追記
File summaries
File Description
README.md 単独記号候補に表示される説明の仕様を追記
Core/Tests/CoreTests/InputUtilsTests/CandidateSymbolAnnotationTests.swift Core側の説明付与仕様(単独限定・既存優先・transport保持)をテスト追加
Core/Sources/Core/InputUtils/CandidatePresentationContext.swift CandidatePresentation 初期化時に単独記号のannotationを自動生成
azooKeyMacTests/CandidateSelectionFeedbackTests.swift UI側のアクセシビリティ反映・セル再利用時のクリア・幅計算のテスト追加
azooKeyMac/InputController/CandidateWindow/CandidateView.swift アクセシビリティラベルの更新、annotation幅を考慮したウィンドウ幅計算へ更新
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants