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": "Thông báo chưa được cấu hình trên máy chủ.",
|
||||
"web.push.blocked": "Thông báo đang bị chặn. Hãy cho phép trong phần cài đặt trang web của trình duyệt.",
|
||||
"web.push.revoked": "Trình duyệt này đã bị xóa khỏi tài khoản. Hãy xóa dữ liệu đã lưu của trang web trước khi thêm lại.",
|
||||
"web.push.error": "Không thể thay đổi thông báo. Hãy kiểm tra quyền của trình duyệt rồi thử lại."
|
||||
"web.push.error": "Không thể thay đổi thông báo. Hãy kiểm tra quyền của trình duyệt rồi thử lại.",
|
||||
"keybinding.action.screenOcr": "Nhận dạng chữ trên màn hình (OCR)",
|
||||
"keybinding.action.screenOcr.desc": "Chụp màn hình để bạn kéo chọn chữ trên đó.",
|
||||
"screenOcr.dialog.savePdf": "Lưu thành PDF",
|
||||
"screenOcr.dialog.saveImage": "Lưu thành ảnh",
|
||||
"screenOcr.errorCapture": "Không chụp được màn hình.",
|
||||
"screenOcr.modeText": "Chọn chữ",
|
||||
"screenOcr.modeRect": "Chọn vùng",
|
||||
"screenOcr.copy": "Sao chép",
|
||||
"screenOcr.copyLine": "Sao chép thành một dòng",
|
||||
"screenOcr.copyImage": "Sao chép ảnh",
|
||||
"screenOcr.saveImage": "Lưu ảnh",
|
||||
"screenOcr.savePdf": "Lưu PDF",
|
||||
"screenOcr.translate": "Dịch",
|
||||
"screenOcr.summarize": "Tóm tắt",
|
||||
"screenOcr.speak": "Đọc to",
|
||||
"screenOcr.stopSpeak": "Dừng đọc",
|
||||
"screenOcr.openLink": "Mở liên kết",
|
||||
"screenOcr.search": "Tìm trên web",
|
||||
"screenOcr.selectAll": "Chọn tất cả",
|
||||
"screenOcr.close": "Đóng",
|
||||
"screenOcr.language": "Ngôn ngữ",
|
||||
"screenOcr.languageAuto": "Tự động",
|
||||
"screenOcr.statusRecognizing": "Đang đọc chữ…",
|
||||
"screenOcr.statusReady": "{{count}} từ · kéo để chọn",
|
||||
"screenOcr.statusEmpty": "Không tìm thấy chữ",
|
||||
"screenOcr.statusSelected": "Đã chọn {{count}} ký tự",
|
||||
"screenOcr.hint": "Kéo để chọn · nhấp đúp chọn từ · Ctrl+A tất cả · Ctrl+C sao chép · Esc đóng",
|
||||
"screenOcr.toastCopied": "Đã sao chép",
|
||||
"screenOcr.toastImageCopied": "Đã sao chép ảnh",
|
||||
"screenOcr.toastSaved": "Đã lưu",
|
||||
"screenOcr.working": "Đang xử lý…",
|
||||
"screenOcr.resultTranslate": "Bản dịch",
|
||||
"screenOcr.resultSummary": "Bản tóm tắt",
|
||||
"screenOcr.errorRecognition": "Không đọc được chữ",
|
||||
"screenOcr.errorUnavailable": "Máy tính này không dùng được tính năng nhận dạng chữ. Hãy cài gói ngôn ngữ có nhận dạng ký tự quang học trong Cài đặt Windows.",
|
||||
"screenOcr.errorExport": "Không lưu hoặc sao chép được",
|
||||
"screenOcr.errorLlm": "AI không phản hồi. Hãy kiểm tra cài đặt mô hình.",
|
||||
"screenOcr.errorTts": "Không đọc to được",
|
||||
"screenOcr.errorLink": "Không mở được liên kết",
|
||||
"screenOcr.errorInvalid": "Ảnh chụp này đã đóng. Hãy chụp lại.",
|
||||
"screenOcr.errorEmpty": "Chưa chọn chữ"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue