Skip to content

Issue #651 文字送り中の領域内Busyと最終文字列翻訳を実装 - #656

Draft
Freeesia wants to merge 1 commit into
masterfrom
codex/issue-651-typewriter-busy
Draft

Issue #651 文字送り中の領域内Busyと最終文字列翻訳を実装#656
Freeesia wants to merge 1 commit into
masterfrom
codex/issue-651-typewriter-busy

Conversation

@Freeesia

Copy link
Copy Markdown
Owner

概要

Issue #651 に対応し、文字送り中は対象領域を Busy 表示に切り替え、途中の文字列を翻訳せず、終了後に選択した最終文字列だけを翻訳するようにしました。

変更内容

  • 論理トラック単位の Busy 理由(翻訳待ち/文字送り待ち)を追加
  • 同一トラックの文字列伸長を文字送りとして追跡
  • 文字送り中は中間候補の翻訳要求と翻訳表示を抑制
  • 末尾の OCR 揺れでは、進行度・候補履歴・反復観測から最終候補を確定
  • 元の確定文字列へ戻った場合は文字送りを取り消し、以前の状態へ復帰
  • 複数領域は独立して処理
  • Busy 状態を明示的に UI へバインド

検証

  • dotnet build WindowTranslator.Tests\\WindowTranslator.Tests.csproj --no-restore -m:1 -nr:false -p:BuildInParallel=false -p:UseSharedCompilation=false
  • dotnet test WindowTranslator.Tests\\WindowTranslator.Tests.csproj --no-build --no-restore -m:1 -nr:false -p:BuildInParallel=false -p:UseSharedCompilation=false
  • 全 67 件成功
  • 既存の LanguageOptions.cs 警告(CS9336)以外のビルドエラーなし
  • git diff --check 成功

Fixes #651

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

もっと長文かつ途中で認識ミスで文字列がブレている状況のテストを追加したい。

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.

文字送り中は領域内Busyを表示し、完了後の最終文字列だけを翻訳する

1 participant