feat(desktop): screen text capture (OCR) overlay with selectable text
A rebindable screen-ocr action (default Ctrl+Alt+O) freezes the monitor under the cursor and covers it with a focusable overlay. Text is selected by flow drag, rectangle drag, double/triple click, Shift+click or Ctrl+A, then copied, saved as PNG or searchable PDF, translated, summarized, read aloud, opened as a link or searched. - Selection, text assembly and the PDF document are pure functions in @d3ro/core/screen-ocr, shared by the main process and the overlay. - Recognition uses Windows.Media.Ocr through powershell.exe -EncodedCommand with 2x upscaling; the capture reaches disk only as a temp PNG that is removed right after recognition. - Capture uses GDI BitBlt for the target monitor (39 ms) because desktopCapturer captured all three monitors and took 2.9 s when DXGI duplication timed out. - The accelerator is reserved only where the feature is available, so macOS does not swallow the key for a feature it cannot run (fails closed with a message). Map: CAP-17 [~], GAP-OCR-01 (live hotkey journey not yet driven in the running app), GAP-OCR-02 (macOS engine, mixed-language accuracy).
This commit is contained in:
parent
6791e29f27
commit
03cd8bf890
41 changed files with 4561 additions and 17 deletions
|
|
@ -2500,5 +2500,46 @@
|
|||
"web.push.unconfigured": "サーバーに通知機能が設定されていません。",
|
||||
"web.push.blocked": "通知がブロックされています。ブラウザのサイト設定で許可してください。",
|
||||
"web.push.revoked": "このブラウザはアカウントから削除されました。再度追加する前に、このサイトの保存データを消去してください。",
|
||||
"web.push.error": "通知設定を変更できませんでした。ブラウザの権限を確認して、もう一度お試しください。"
|
||||
"web.push.error": "通知設定を変更できませんでした。ブラウザの権限を確認して、もう一度お試しください。",
|
||||
"keybinding.action.screenOcr": "画面の文字を読み取る (OCR)",
|
||||
"keybinding.action.screenOcr.desc": "画面をキャプチャし、その上の文字をドラッグして選択します。",
|
||||
"screenOcr.dialog.savePdf": "PDF として保存",
|
||||
"screenOcr.dialog.saveImage": "画像として保存",
|
||||
"screenOcr.errorCapture": "画面をキャプチャできませんでした。",
|
||||
"screenOcr.modeText": "テキスト選択",
|
||||
"screenOcr.modeRect": "範囲選択",
|
||||
"screenOcr.copy": "コピー",
|
||||
"screenOcr.copyLine": "1 行でコピー",
|
||||
"screenOcr.copyImage": "画像をコピー",
|
||||
"screenOcr.saveImage": "画像を保存",
|
||||
"screenOcr.savePdf": "PDF を保存",
|
||||
"screenOcr.translate": "翻訳",
|
||||
"screenOcr.summarize": "要約",
|
||||
"screenOcr.speak": "読み上げ",
|
||||
"screenOcr.stopSpeak": "読み上げを停止",
|
||||
"screenOcr.openLink": "リンクを開く",
|
||||
"screenOcr.search": "ウェブ検索",
|
||||
"screenOcr.selectAll": "すべて選択",
|
||||
"screenOcr.close": "閉じる",
|
||||
"screenOcr.language": "認識言語",
|
||||
"screenOcr.languageAuto": "自動",
|
||||
"screenOcr.statusRecognizing": "文字を読み取り中…",
|
||||
"screenOcr.statusReady": "{{count}} 語 · ドラッグして選択",
|
||||
"screenOcr.statusEmpty": "文字が見つかりませんでした",
|
||||
"screenOcr.statusSelected": "{{count}} 文字を選択",
|
||||
"screenOcr.hint": "ドラッグで選択 · ダブルクリックで単語 · Ctrl+A すべて · Ctrl+C コピー · Esc 閉じる",
|
||||
"screenOcr.toastCopied": "コピーしました",
|
||||
"screenOcr.toastImageCopied": "画像をコピーしました",
|
||||
"screenOcr.toastSaved": "保存しました",
|
||||
"screenOcr.working": "処理中…",
|
||||
"screenOcr.resultTranslate": "翻訳結果",
|
||||
"screenOcr.resultSummary": "要約結果",
|
||||
"screenOcr.errorRecognition": "文字を読み取れませんでした",
|
||||
"screenOcr.errorUnavailable": "この PC では画面の文字読み取りを使用できません。Windows の設定で言語パック(光学式文字認識)をインストールしてください。",
|
||||
"screenOcr.errorExport": "保存またはコピーできませんでした",
|
||||
"screenOcr.errorLlm": "AI から応答がありませんでした。モデル設定を確認してください。",
|
||||
"screenOcr.errorTts": "読み上げできませんでした",
|
||||
"screenOcr.errorLink": "リンクを開けませんでした",
|
||||
"screenOcr.errorInvalid": "このキャプチャはすでに閉じられています。もう一度キャプチャしてください。",
|
||||
"screenOcr.errorEmpty": "テキストが選択されていません"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue