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
279
packages/core/__tests__/screen-ocr.test.ts
Normal file
279
packages/core/__tests__/screen-ocr.test.ts
Normal file
|
|
@ -0,0 +1,279 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import {
|
||||
allWords,
|
||||
buildSearchablePdfHtml,
|
||||
chooseOcrScale,
|
||||
clampRect,
|
||||
detectLinks,
|
||||
flowSelection,
|
||||
lineSelection,
|
||||
nearestWordIndex,
|
||||
parseOcrEngineOutput,
|
||||
pickTranslationTarget,
|
||||
rectFromPoints,
|
||||
selectionBounds,
|
||||
selectionHighlightRects,
|
||||
selectionText,
|
||||
wordAtPoint,
|
||||
wordsInRect,
|
||||
wordsRelativeTo,
|
||||
type OcrResult
|
||||
} from '../src/screen-ocr'
|
||||
|
||||
/** 한 줄에 단어를 폭 40, 간격 10 으로 늘어놓는다. */
|
||||
function line(y: number, texts: string[], startX = 10): { words: Array<Record<string, unknown>> } {
|
||||
return { words: texts.map((t, i) => ({ t, x: startX + i * 50, y, w: 40, h: 20 })) }
|
||||
}
|
||||
|
||||
function sample(): OcrResult {
|
||||
const result = parseOcrEngineOutput({
|
||||
lang: 'ko',
|
||||
lines: [line(10, ['화면', 'OCR', '기능']), line(50, ['둘째', '줄']), line(90, ['Third', 'line', 'here'])]
|
||||
})
|
||||
if (!result) throw new Error('sample did not parse')
|
||||
return result
|
||||
}
|
||||
|
||||
describe('parseOcrEngineOutput', () => {
|
||||
it('엔진출력해석_정상입력_읽는순서로단어번호와줄범위를매긴다', () => {
|
||||
const result = sample()
|
||||
expect(result.language).toBe('ko')
|
||||
expect(result.words.map((w) => w.text)).toEqual(['화면', 'OCR', '기능', '둘째', '줄', 'Third', 'line', 'here'])
|
||||
expect(result.words.map((w) => w.index)).toEqual([0, 1, 2, 3, 4, 5, 6, 7])
|
||||
expect(result.lines.map((l) => [l.start, l.count])).toEqual([
|
||||
[0, 3],
|
||||
[3, 2],
|
||||
[5, 3]
|
||||
])
|
||||
expect(result.lines[0]).toMatchObject({ x: 10, y: 10, width: 140, height: 20 })
|
||||
})
|
||||
|
||||
it('엔진출력해석_모양이틀린최상위_null을돌려줘빈결과로꾸미지않는다', () => {
|
||||
expect(parseOcrEngineOutput(null)).toBeNull()
|
||||
expect(parseOcrEngineOutput({ lang: 'ko' })).toBeNull()
|
||||
expect(parseOcrEngineOutput({ lines: 'nope' })).toBeNull()
|
||||
})
|
||||
|
||||
it('엔진출력해석_망가진단어와빈줄_버리고나머지번호는이어진다', () => {
|
||||
const result = parseOcrEngineOutput({
|
||||
lang: 'en',
|
||||
lines: [
|
||||
{ words: [{ t: '', x: 0, y: 0, w: 10, h: 10 }, { t: 'ok', x: 'NaN', y: 0, w: 10, h: 10 }] },
|
||||
{ words: [{ t: 'zero', x: 0, y: 0, w: 0, h: 10 }, { t: 'kept', x: 5, y: 5, w: 10, h: 10 }] },
|
||||
'garbage'
|
||||
]
|
||||
})
|
||||
expect(result?.words.map((w) => [w.text, w.index, w.line])).toEqual([['kept', 0, 0]])
|
||||
expect(result?.lines).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
|
||||
describe('사각형 선택', () => {
|
||||
it('사각형선택_중심이든단어만_살짝스친옆줄은고르지않는다', () => {
|
||||
const result = sample()
|
||||
// 첫 줄 전체를 덮고 둘째 줄(y 50~70) 윗부분 4px 만 스친다.
|
||||
expect(wordsInRect(result, { x: 0, y: 0, width: 200, height: 54 })).toEqual([0, 1, 2])
|
||||
})
|
||||
|
||||
it('사각형선택_절반넘게걸친단어만_절반이안되면고르지않는다', () => {
|
||||
const result = sample()
|
||||
// 첫 단어(x 10~50)의 왼쪽 45% 만 덮으면 고르지 않는다. 높이 20 중 12 만 덮어도 폭을 다 덮으면(60%) 고른다.
|
||||
expect(wordsInRect(result, { x: 0, y: 0, width: 28, height: 40 })).toEqual([])
|
||||
expect(wordsInRect(result, { x: 0, y: 12, width: 60, height: 12 })).toEqual([0])
|
||||
})
|
||||
|
||||
it('rectFromPoints_거꾸로끌어도_양수크기사각형이된다', () => {
|
||||
expect(rectFromPoints({ x: 100, y: 80 }, { x: 20, y: 30 })).toEqual({ x: 20, y: 30, width: 80, height: 50 })
|
||||
})
|
||||
|
||||
it('clampRect_그림밖으로나간영역_안쪽으로자르고완전히밖이면null', () => {
|
||||
expect(clampRect({ x: -10, y: -5, width: 50.4, height: 30 }, { width: 100, height: 20 })).toEqual({
|
||||
x: 0,
|
||||
y: 0,
|
||||
width: 41,
|
||||
height: 20
|
||||
})
|
||||
expect(clampRect({ x: 200, y: 0, width: 50, height: 10 }, { width: 100, height: 100 })).toBeNull()
|
||||
expect(clampRect({ x: 10, y: 10, width: 0, height: 0 }, { width: 100, height: 100 })).toBeNull()
|
||||
})
|
||||
})
|
||||
|
||||
describe('글 흐름 선택', () => {
|
||||
it('wordAtPoint_단어위와빈곳_단어번호또는null', () => {
|
||||
const result = sample()
|
||||
expect(wordAtPoint(result, { x: 70, y: 20 })).toBe(1)
|
||||
expect(wordAtPoint(result, { x: 300, y: 300 })).toBeNull()
|
||||
})
|
||||
|
||||
it('nearestWordIndex_줄사이여백과줄오른쪽바깥_가까운줄의가까운단어를고른다', () => {
|
||||
const result = sample()
|
||||
// 둘째 줄(y 50~70) 오른쪽 바깥 → 둘째 줄의 마지막 단어
|
||||
expect(nearestWordIndex(result, { x: 400, y: 60 })).toBe(4)
|
||||
// 셋째 줄 아래 여백 → 셋째 줄에서 가로로 가장 가까운 단어
|
||||
expect(nearestWordIndex(result, { x: 65, y: 400 })).toBe(6)
|
||||
})
|
||||
|
||||
it('nearestWordIndex_단어가없는결과_null', () => {
|
||||
const empty = parseOcrEngineOutput({ lang: 'ko', lines: [] })
|
||||
expect(empty && nearestWordIndex(empty, { x: 0, y: 0 })).toBeNull()
|
||||
})
|
||||
|
||||
it('flowSelection_뒤에서앞으로끌어도_사이단어를전부고른다', () => {
|
||||
expect(flowSelection(6, 2)).toEqual([2, 3, 4, 5, 6])
|
||||
expect(flowSelection(3, 3)).toEqual([3])
|
||||
})
|
||||
|
||||
it('lineSelection과allWords_줄전체와전체단어', () => {
|
||||
const result = sample()
|
||||
expect(lineSelection(result, 4)).toEqual([3, 4])
|
||||
expect(lineSelection(result, 99)).toEqual([])
|
||||
expect(allWords(result)).toHaveLength(8)
|
||||
})
|
||||
})
|
||||
|
||||
describe('선택 → 텍스트', () => {
|
||||
it('selectionText_여러줄선택_줄바꿈을유지하고단어는공백으로잇는다', () => {
|
||||
const result = sample()
|
||||
expect(selectionText(result, [1, 2, 3, 4, 5])).toBe('OCR 기능\n둘째 줄\nThird')
|
||||
})
|
||||
|
||||
it('selectionText_한줄옵션_줄바꿈없이잇는다', () => {
|
||||
const result = sample()
|
||||
expect(selectionText(result, [2, 3, 4], { singleLine: true })).toBe('기능 둘째 줄')
|
||||
})
|
||||
|
||||
it('selectionText_순서가뒤섞이고겹치고범위밖인번호_정리해서읽는순서로낸다', () => {
|
||||
const result = sample()
|
||||
expect(selectionText(result, [4, 0, 0, 99, -1, 3])).toBe('화면\n둘째 줄')
|
||||
})
|
||||
|
||||
it('selectionText_일본어중국어처럼글자마다단어인줄_공백없이잇는다', () => {
|
||||
const result = parseOcrEngineOutput({
|
||||
lang: 'ja',
|
||||
lines: [line(0, ['日', '本', '語', 'OCR', 'テ', 'ス', 'ト']), line(40, ['次', 'の', '行'])]
|
||||
})
|
||||
if (!result) throw new Error('no result')
|
||||
expect(selectionText(result, allWords(result))).toBe('日本語 OCR テスト\n次の行')
|
||||
expect(selectionText(result, allWords(result), { singleLine: true })).toBe('日本語 OCR テスト次の行')
|
||||
})
|
||||
|
||||
it('selectionText_아무것도안고름_빈문자열', () => {
|
||||
expect(selectionText(sample(), [])).toBe('')
|
||||
})
|
||||
})
|
||||
|
||||
describe('강조 사각형과 경계', () => {
|
||||
it('selectionHighlightRects_같은줄에서이어진단어_하나로잇고끊긴곳은나눈다', () => {
|
||||
const result = sample()
|
||||
const rects = selectionHighlightRects(result, [0, 1, 3, 5, 7])
|
||||
expect(rects).toEqual([
|
||||
{ x: 10, y: 10, width: 90, height: 20 },
|
||||
{ x: 10, y: 50, width: 40, height: 20 },
|
||||
{ x: 10, y: 90, width: 40, height: 20 },
|
||||
{ x: 110, y: 90, width: 40, height: 20 }
|
||||
])
|
||||
})
|
||||
|
||||
it('selectionBounds_고른단어를모두감싼다_없으면null', () => {
|
||||
const result = sample()
|
||||
expect(selectionBounds(result, [1, 4])).toEqual({ x: 60, y: 10, width: 40, height: 60 })
|
||||
expect(selectionBounds(result, [])).toBeNull()
|
||||
})
|
||||
|
||||
it('wordsRelativeTo_잘라낸영역기준좌표로옮긴다', () => {
|
||||
const result = sample()
|
||||
const moved = wordsRelativeTo(result, { x: 50, y: 40, width: 200, height: 40 })
|
||||
expect(moved.map((w) => [w.text, w.x, w.y])).toEqual([['줄', 10, 10]])
|
||||
})
|
||||
})
|
||||
|
||||
describe('chooseOcrScale', () => {
|
||||
it('인식배율_100퍼센트화면_2배로키운다', () => {
|
||||
expect(chooseOcrScale(1920, 1080, 1, 10000)).toBe(2)
|
||||
})
|
||||
|
||||
it('인식배율_고배율화면_이미큰글자는덜키운다', () => {
|
||||
expect(chooseOcrScale(2880, 1800, 1.5, 10000)).toBe(1.33)
|
||||
expect(chooseOcrScale(3840, 2160, 2, 10000)).toBe(1)
|
||||
})
|
||||
|
||||
it('인식배율_엔진최대변길이를넘지않는다', () => {
|
||||
const scale = chooseOcrScale(7680, 2160, 1, 10000)
|
||||
expect(scale).toBe(1.3)
|
||||
expect(7680 * scale).toBeLessThanOrEqual(10000)
|
||||
})
|
||||
|
||||
it('인식배율_배율값이이상하면_1배율화면으로본다', () => {
|
||||
expect(chooseOcrScale(1000, 1000, Number.NaN, 10000)).toBe(2)
|
||||
expect(chooseOcrScale(0, 0, 1, 10000)).toBe(1)
|
||||
})
|
||||
})
|
||||
|
||||
describe('detectLinks', () => {
|
||||
it('링크찾기_주소와메일_열수있는URL로돌려준다', () => {
|
||||
expect(detectLinks('보기: https://example.com/path?q=1, 그리고 www.d3ro.io. 문의 help@example.com')).toEqual([
|
||||
'mailto:help@example.com',
|
||||
'https://example.com/path?q=1',
|
||||
'https://www.d3ro.io'
|
||||
])
|
||||
})
|
||||
|
||||
it('링크찾기_주소가없는글_빈목록', () => {
|
||||
expect(detectLinks('그냥 문장입니다 3.14 e.g.')).toEqual([])
|
||||
})
|
||||
|
||||
it('링크찾기_같은주소가여러번_한번만', () => {
|
||||
expect(detectLinks('https://a.io https://a.io')).toEqual(['https://a.io'])
|
||||
})
|
||||
})
|
||||
|
||||
describe('pickTranslationTarget', () => {
|
||||
it('번역대상_외국어글_사용자의앱언어로옮긴다', () => {
|
||||
expect(pickTranslationTarget('The quick brown fox', 'ko', 'English')).toBe('Korean')
|
||||
expect(pickTranslationTarget('안녕하세요 반갑습니다', 'en', 'Japanese')).toBe('English')
|
||||
})
|
||||
|
||||
it('번역대상_이미사용자언어인글_설정의번역대상언어로옮긴다', () => {
|
||||
expect(pickTranslationTarget('안녕하세요 반갑습니다', 'ko', 'English')).toBe('English')
|
||||
expect(pickTranslationTarget('Hello there, friend', 'en', 'Japanese')).toBe('Japanese')
|
||||
expect(pickTranslationTarget('こんにちは、世界', 'ja', 'English')).toBe('English')
|
||||
})
|
||||
|
||||
it('번역대상_모르는앱언어_설정값을그대로쓴다', () => {
|
||||
expect(pickTranslationTarget('hello', 'xx', 'German')).toBe('German')
|
||||
})
|
||||
})
|
||||
|
||||
describe('buildSearchablePdfHtml', () => {
|
||||
const html = buildSearchablePdfHtml({
|
||||
imageDataUrl: 'data:image/png;base64,AAAA',
|
||||
width: 800,
|
||||
height: 600,
|
||||
language: 'ko',
|
||||
words: [
|
||||
{ text: '화면 <b>&"', x: 10, y: 20, width: 100, height: 20 },
|
||||
{ text: ' ', x: 0, y: 0, width: 10, height: 10 },
|
||||
{ text: 'zero', x: 0, y: 0, width: 0, height: 10 }
|
||||
]
|
||||
})
|
||||
|
||||
it('PDF문서_쪽크기가그림크기와같다', () => {
|
||||
expect(html).toContain('@page{size:800px 600px;margin:0}')
|
||||
expect(html).toContain('viewBox="0 0 800 600"')
|
||||
})
|
||||
|
||||
it('PDF문서_글자층이그림아래에깔린다', () => {
|
||||
expect(html.indexOf('<svg')).toBeLessThan(html.indexOf('<img'))
|
||||
expect(html).toContain('.page svg{z-index:0}.page img{z-index:1}')
|
||||
})
|
||||
|
||||
it('PDF문서_단어상자폭에맞춘글자를넣고특수문자는이스케이프한다', () => {
|
||||
expect(html).toContain('textLength="100.0"')
|
||||
expect(html).toContain('화면 <b>&"')
|
||||
expect(html).not.toContain('<b>')
|
||||
})
|
||||
|
||||
it('PDF문서_빈글자와크기없는단어_글자층에넣지않는다', () => {
|
||||
expect(html.match(/<text /gu)).toHaveLength(1)
|
||||
})
|
||||
})
|
||||
|
|
@ -101,6 +101,16 @@ export enum ErrorCode {
|
|||
// === Phase 10: Screen Context (750-759) ===
|
||||
ContextCaptureFailed = 750,
|
||||
ContextSelectedTextFailed = 751,
|
||||
/** 화면 OCR: 화면 캡처 실패 */
|
||||
ScreenOcrCaptureFailed = 755,
|
||||
/** 화면 OCR: 글자 인식 실패 (엔진 실행·출력 해석) */
|
||||
ScreenOcrRecognitionFailed = 756,
|
||||
/** 화면 OCR: 이 플랫폼·환경에서 쓸 수 있는 인식 엔진이 없다 */
|
||||
ScreenOcrUnavailable = 757,
|
||||
/** 화면 OCR: PDF·그림 내보내기 실패 */
|
||||
ScreenOcrExportFailed = 758,
|
||||
/** 화면 OCR: 끝난 캡처에 대한 요청이거나 요청 값이 잘못됐다 */
|
||||
ScreenOcrInvalidRequest = 759,
|
||||
|
||||
// === Phase 10: LLM Chain (760-769) ===
|
||||
ChainNotFound = 760,
|
||||
|
|
|
|||
|
|
@ -457,6 +457,22 @@ export const IPC_CHANNELS = {
|
|||
KEY_EVENT: 'command:keyEvent',
|
||||
},
|
||||
|
||||
// ── Popup Internal Channels (화면 OCR 오버레이) ──
|
||||
POPUP_SCREEN_OCR: {
|
||||
/** main → overlay: 새 캡처 (그림 · 크기 · 문구) */
|
||||
SESSION: 'screenOcr:session',
|
||||
/** main → overlay: 인식 결과 또는 인식 실패 */
|
||||
RECOGNIZED: 'screenOcr:recognized',
|
||||
/** main → overlay: 요청(REQUEST)에 대한 응답 */
|
||||
RESPONSE: 'screenOcr:response',
|
||||
/** overlay → main: 동작 요청 (복사 · PDF · 그림 · 번역 · 요약 · 읽기 · 링크 · 언어 변경) */
|
||||
REQUEST: 'screenOcr:request',
|
||||
/** overlay → main: 그림을 다 그렸다 — 이제 창을 보여도 깜빡이지 않는다 */
|
||||
READY: 'screenOcr:ready',
|
||||
/** overlay → main: 닫기 */
|
||||
DISMISS: 'screenOcr:dismiss',
|
||||
},
|
||||
|
||||
// ── Popup Internal Channels (Caption) ──
|
||||
POPUP_CAPTION: {
|
||||
HIDE: 'caption:hide',
|
||||
|
|
|
|||
|
|
@ -679,6 +679,7 @@ export type KeyBindingActionId =
|
|||
| 'caption'
|
||||
| 'history-popup'
|
||||
| 'command-popup'
|
||||
| 'screen-ocr'
|
||||
| 'suggestion-accept'
|
||||
| 'suggestion-accept-word'
|
||||
| 'suggestion-next'
|
||||
|
|
@ -780,6 +781,16 @@ export const KEYBINDING_ACTIONS: readonly KeyBindingActionSpec[] = Object.freeze
|
|||
doublePress: false,
|
||||
defaultBindings: [kb(0x43 /* C */, { ctrl: true, shift: true })]
|
||||
},
|
||||
{
|
||||
id: 'screen-ocr',
|
||||
group: 'window',
|
||||
labelKey: 'keybinding.action.screenOcr',
|
||||
descriptionKey: 'keybinding.action.screenOcr.desc',
|
||||
holdMode: false,
|
||||
doublePress: false,
|
||||
// 화면을 캡처해 글자를 고르는 오버레이를 연다. Ctrl+Shift+O 는 브라우저 북마크 관리자와 겹쳐 피했다.
|
||||
defaultBindings: [kb(0x4f /* O */, { ctrl: true, alt: true })]
|
||||
},
|
||||
{
|
||||
id: 'suggestion-accept',
|
||||
group: 'input',
|
||||
|
|
|
|||
516
packages/core/src/screen-ocr.ts
Normal file
516
packages/core/src/screen-ocr.ts
Normal file
|
|
@ -0,0 +1,516 @@
|
|||
// packages/core — 화면 OCR 정본 (순수 함수만: Electron/Node/DOM 의존 금지).
|
||||
//
|
||||
// 담는 것:
|
||||
// 1) OCR 결과 표현 — OcrResult / OcrLine / OcrWord (좌표는 캡처 이미지의 **물리 픽셀**)
|
||||
// 2) 엔진 출력 해석 — parseOcrEngineOutput (엔진이 준 JSON 을 검증해 정본 표현으로)
|
||||
// 3) 선택 계산 — 사각형 선택(wordsInRect) · 글 흐름 선택(flowSelection) · 단어/줄 선택
|
||||
// 4) 선택 → 텍스트 — selectionText (줄바꿈 유지 / 한 줄, CJK 는 공백 없이 잇기)
|
||||
// 5) 강조 사각형 — selectionHighlightRects (줄 단위로 이어 붙인 사각형)
|
||||
// 6) 검색 가능한 PDF 문서 — buildSearchablePdfHtml (그림 아래에 실제 글자를 깐다)
|
||||
// 7) 부가 판정 — chooseOcrScale · detectLinks · pickTranslationTarget
|
||||
//
|
||||
// 오버레이(Vanilla JS 팝업)와 메인 프로세스가 같은 계산을 쓰도록 여기에 둔다.
|
||||
|
||||
export interface OcrRect {
|
||||
x: number
|
||||
y: number
|
||||
width: number
|
||||
height: number
|
||||
}
|
||||
|
||||
export interface OcrPoint {
|
||||
x: number
|
||||
y: number
|
||||
}
|
||||
|
||||
/** 인식된 단어 하나. 좌표는 캡처 이미지의 물리 픽셀. */
|
||||
export interface OcrWord extends OcrRect {
|
||||
text: string
|
||||
/** 속한 줄의 번호 (OcrResult.lines 의 인덱스) */
|
||||
line: number
|
||||
/** 읽는 순서대로 매긴 전체 단어 번호 (OcrResult.words 의 인덱스) */
|
||||
index: number
|
||||
}
|
||||
|
||||
export interface OcrLine extends OcrRect {
|
||||
/** 이 줄의 첫 단어 번호 */
|
||||
start: number
|
||||
/** 이 줄의 단어 수 */
|
||||
count: number
|
||||
}
|
||||
|
||||
export interface OcrResult {
|
||||
/** 인식에 쓴 언어 태그 (예: 'ko', 'en-US') */
|
||||
language: string
|
||||
lines: OcrLine[]
|
||||
/** 읽는 순서로 편 전체 단어 */
|
||||
words: OcrWord[]
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 엔진 출력 해석
|
||||
// ============================================================
|
||||
|
||||
function isRecord(value: unknown): value is Record<string, unknown> {
|
||||
return typeof value === 'object' && value !== null && !Array.isArray(value)
|
||||
}
|
||||
|
||||
function finiteNumber(value: unknown): number | null {
|
||||
return typeof value === 'number' && Number.isFinite(value) ? value : null
|
||||
}
|
||||
|
||||
function unionRect(rects: readonly OcrRect[]): OcrRect {
|
||||
let left = Infinity
|
||||
let top = Infinity
|
||||
let right = -Infinity
|
||||
let bottom = -Infinity
|
||||
for (const r of rects) {
|
||||
left = Math.min(left, r.x)
|
||||
top = Math.min(top, r.y)
|
||||
right = Math.max(right, r.x + r.width)
|
||||
bottom = Math.max(bottom, r.y + r.height)
|
||||
}
|
||||
return { x: left, y: top, width: right - left, height: bottom - top }
|
||||
}
|
||||
|
||||
/**
|
||||
* 엔진이 준 `{ lang, lines: [{ words: [{ t, x, y, w, h }] }] }` 를 정본 표현으로 옮긴다.
|
||||
* 모양이 어긋난 단어(글자 없음 · 좌표가 수가 아님 · 크기 0)는 버리고, 단어가 하나도 안 남은 줄도 버린다.
|
||||
* 최상위 모양이 틀리면 null — 호출자는 인식 실패로 다룬다(빈 결과로 꾸미지 않는다).
|
||||
*/
|
||||
export function parseOcrEngineOutput(raw: unknown): OcrResult | null {
|
||||
if (!isRecord(raw) || !Array.isArray(raw.lines)) return null
|
||||
const language = typeof raw.lang === 'string' ? raw.lang : ''
|
||||
const lines: OcrLine[] = []
|
||||
const words: OcrWord[] = []
|
||||
|
||||
for (const rawLine of raw.lines) {
|
||||
if (!isRecord(rawLine) || !Array.isArray(rawLine.words)) continue
|
||||
const start = words.length
|
||||
for (const rawWord of rawLine.words) {
|
||||
if (!isRecord(rawWord)) continue
|
||||
const text = typeof rawWord.t === 'string' ? rawWord.t : ''
|
||||
const x = finiteNumber(rawWord.x)
|
||||
const y = finiteNumber(rawWord.y)
|
||||
const width = finiteNumber(rawWord.w)
|
||||
const height = finiteNumber(rawWord.h)
|
||||
if (text.length === 0 || x === null || y === null || width === null || height === null) continue
|
||||
if (width <= 0 || height <= 0) continue
|
||||
words.push({ text, x, y, width, height, line: lines.length, index: words.length })
|
||||
}
|
||||
const count = words.length - start
|
||||
if (count === 0) continue
|
||||
lines.push({ ...unionRect(words.slice(start)), start, count })
|
||||
}
|
||||
|
||||
return { language, lines, words }
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 기하
|
||||
// ============================================================
|
||||
|
||||
/** 두 점으로 사각형을 만든다 (끌기 방향과 무관하게 양수 크기). */
|
||||
export function rectFromPoints(a: OcrPoint, b: OcrPoint): OcrRect {
|
||||
return {
|
||||
x: Math.min(a.x, b.x),
|
||||
y: Math.min(a.y, b.y),
|
||||
width: Math.abs(a.x - b.x),
|
||||
height: Math.abs(a.y - b.y)
|
||||
}
|
||||
}
|
||||
|
||||
/** 사각형을 경계 안으로 자르고 정수 픽셀로 맞춘다. 남는 면적이 없으면 null. */
|
||||
export function clampRect(rect: OcrRect, bounds: { width: number; height: number }): OcrRect | null {
|
||||
const left = Math.max(0, Math.floor(rect.x))
|
||||
const top = Math.max(0, Math.floor(rect.y))
|
||||
const right = Math.min(bounds.width, Math.ceil(rect.x + rect.width))
|
||||
const bottom = Math.min(bounds.height, Math.ceil(rect.y + rect.height))
|
||||
if (right - left < 1 || bottom - top < 1) return null
|
||||
return { x: left, y: top, width: right - left, height: bottom - top }
|
||||
}
|
||||
|
||||
function containsPoint(rect: OcrRect, point: OcrPoint, pad = 0): boolean {
|
||||
return (
|
||||
point.x >= rect.x - pad &&
|
||||
point.x <= rect.x + rect.width + pad &&
|
||||
point.y >= rect.y - pad &&
|
||||
point.y <= rect.y + rect.height + pad
|
||||
)
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 선택 계산
|
||||
// ============================================================
|
||||
|
||||
/**
|
||||
* 사각형 선택 — 중심이 사각형 안에 있거나 면적의 절반 이상이 걸친 단어.
|
||||
* 살짝 스친 옆 줄까지 딸려 오지 않게 "닿기만 하면 선택"으로 하지 않는다.
|
||||
*/
|
||||
export function wordsInRect(result: OcrResult, rect: OcrRect): number[] {
|
||||
const out: number[] = []
|
||||
const right = rect.x + rect.width
|
||||
const bottom = rect.y + rect.height
|
||||
for (const word of result.words) {
|
||||
const cx = word.x + word.width / 2
|
||||
const cy = word.y + word.height / 2
|
||||
if (cx >= rect.x && cx <= right && cy >= rect.y && cy <= bottom) {
|
||||
out.push(word.index)
|
||||
continue
|
||||
}
|
||||
const overlapW = Math.min(right, word.x + word.width) - Math.max(rect.x, word.x)
|
||||
const overlapH = Math.min(bottom, word.y + word.height) - Math.max(rect.y, word.y)
|
||||
if (overlapW > 0 && overlapH > 0 && overlapW * overlapH >= word.width * word.height * 0.5) {
|
||||
out.push(word.index)
|
||||
}
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
/** 점 바로 아래(여유 pad 픽셀)의 단어 번호. 없으면 null. */
|
||||
export function wordAtPoint(result: OcrResult, point: OcrPoint, pad = 2): number | null {
|
||||
for (const word of result.words) {
|
||||
if (containsPoint(word, point, pad)) return word.index
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
* 글 흐름 선택의 끝점 — 점에서 가장 가까운 줄을 고르고, 그 줄 안에서 가장 가까운 단어를 고른다.
|
||||
* 줄 밖 여백으로 끌어도 선택이 이어지게 하려는 것이다(일반 글 선택과 같은 느낌).
|
||||
*/
|
||||
export function nearestWordIndex(result: OcrResult, point: OcrPoint): number | null {
|
||||
if (result.words.length === 0) return null
|
||||
let bestLine: OcrLine | null = null
|
||||
let bestDistance = Infinity
|
||||
for (const line of result.lines) {
|
||||
const dy = point.y < line.y ? line.y - point.y : point.y > line.y + line.height ? point.y - (line.y + line.height) : 0
|
||||
const dx = point.x < line.x ? line.x - point.x : point.x > line.x + line.width ? point.x - (line.x + line.width) : 0
|
||||
// 세로 거리를 훨씬 무겁게 본다 — 같은 높이의 줄이 먼 옆 단(column)이라도 위아래 줄보다 우선이다.
|
||||
const distance = dy * 4 + dx
|
||||
if (distance < bestDistance) {
|
||||
bestDistance = distance
|
||||
bestLine = line
|
||||
}
|
||||
}
|
||||
if (!bestLine) return null
|
||||
|
||||
let best = bestLine.start
|
||||
let bestDx = Infinity
|
||||
for (let i = bestLine.start; i < bestLine.start + bestLine.count; i += 1) {
|
||||
const word = result.words[i]
|
||||
const dx = point.x < word.x ? word.x - point.x : point.x > word.x + word.width ? point.x - (word.x + word.width) : 0
|
||||
if (dx < bestDx) {
|
||||
bestDx = dx
|
||||
best = i
|
||||
}
|
||||
}
|
||||
return best
|
||||
}
|
||||
|
||||
/** 글 흐름 선택 — 시작 단어부터 끝 단어까지 읽는 순서로 전부. */
|
||||
export function flowSelection(anchor: number, focus: number): number[] {
|
||||
const from = Math.min(anchor, focus)
|
||||
const to = Math.max(anchor, focus)
|
||||
const out: number[] = []
|
||||
for (let i = from; i <= to; i += 1) out.push(i)
|
||||
return out
|
||||
}
|
||||
|
||||
/** 단어가 속한 줄 전체. */
|
||||
export function lineSelection(result: OcrResult, wordIndex: number): number[] {
|
||||
const word = result.words[wordIndex]
|
||||
if (!word) return []
|
||||
const line = result.lines[word.line]
|
||||
return flowSelection(line.start, line.start + line.count - 1)
|
||||
}
|
||||
|
||||
export function allWords(result: OcrResult): number[] {
|
||||
return result.words.map((word) => word.index)
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 선택 → 텍스트
|
||||
// ============================================================
|
||||
|
||||
/** 한자 · 히라가나 · 가타카나 — 띄어 쓰지 않는 글자. (한글은 띄어 쓴다) */
|
||||
function isUnspacedScript(char: string): boolean {
|
||||
const code = char.codePointAt(0) ?? 0
|
||||
return (
|
||||
(code >= 0x3040 && code <= 0x30ff) || // 히라가나 · 가타카나
|
||||
(code >= 0x3400 && code <= 0x4dbf) || // 한자 확장 A
|
||||
(code >= 0x4e00 && code <= 0x9fff) || // 한자
|
||||
(code >= 0x3000 && code <= 0x303f) || // CJK 문장부호
|
||||
(code >= 0xff00 && code <= 0xffef) // 전각 문자
|
||||
)
|
||||
}
|
||||
|
||||
function lastChar(text: string): string {
|
||||
const chars = Array.from(text)
|
||||
return chars[chars.length - 1] ?? ''
|
||||
}
|
||||
|
||||
function firstChar(text: string): string {
|
||||
return Array.from(text)[0] ?? ''
|
||||
}
|
||||
|
||||
/** 한 줄 안에서 이웃한 두 단어 사이에 공백을 넣을지. 일본어 · 중국어는 엔진이 글자마다 단어로 준다. */
|
||||
function joiner(previous: string, next: string): string {
|
||||
return isUnspacedScript(lastChar(previous)) && isUnspacedScript(firstChar(next)) ? '' : ' '
|
||||
}
|
||||
|
||||
export interface SelectionTextOptions {
|
||||
/** true 면 줄바꿈 없이 한 줄로 잇는다 */
|
||||
singleLine?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* 선택한 단어들을 글로 만든다. 줄은 인식된 줄 순서를 따르고, 같은 줄의 단어는 왼쪽부터 잇는다.
|
||||
* 번호가 범위를 벗어나거나 겹쳐도 무시한다.
|
||||
*/
|
||||
export function selectionText(
|
||||
result: OcrResult,
|
||||
selected: readonly number[],
|
||||
options: SelectionTextOptions = {}
|
||||
): string {
|
||||
const picked = Array.from(new Set(selected))
|
||||
.filter((index) => Number.isInteger(index) && index >= 0 && index < result.words.length)
|
||||
.sort((a, b) => a - b)
|
||||
const lines: string[] = []
|
||||
let currentLine = -1
|
||||
let buffer = ''
|
||||
for (const index of picked) {
|
||||
const word = result.words[index]
|
||||
if (word.line !== currentLine) {
|
||||
if (currentLine !== -1) lines.push(buffer)
|
||||
currentLine = word.line
|
||||
buffer = word.text
|
||||
} else {
|
||||
buffer += joiner(buffer, word.text) + word.text
|
||||
}
|
||||
}
|
||||
if (currentLine !== -1) lines.push(buffer)
|
||||
|
||||
if (!options.singleLine) return lines.join('\n')
|
||||
let joined = ''
|
||||
for (const line of lines) {
|
||||
joined = joined.length === 0 ? line : joined + joiner(joined, line) + line
|
||||
}
|
||||
return joined
|
||||
}
|
||||
|
||||
/** 선택한 단어를 모두 감싸는 사각형. 선택이 비면 null. */
|
||||
export function selectionBounds(result: OcrResult, selected: readonly number[]): OcrRect | null {
|
||||
const rects = selected.map((index) => result.words[index]).filter((word): word is OcrWord => Boolean(word))
|
||||
return rects.length === 0 ? null : unionRect(rects)
|
||||
}
|
||||
|
||||
/**
|
||||
* 강조 표시용 사각형 — 같은 줄에서 연달아 선택된 단어는 하나로 잇는다(단어 사이 틈이 비어 보이지 않게).
|
||||
* 높이는 그 줄의 높이로 맞춰 글자마다 들쭉날쭉하지 않게 한다.
|
||||
*/
|
||||
export function selectionHighlightRects(result: OcrResult, selected: readonly number[]): OcrRect[] {
|
||||
const picked = Array.from(new Set(selected))
|
||||
.filter((index) => Number.isInteger(index) && index >= 0 && index < result.words.length)
|
||||
.sort((a, b) => a - b)
|
||||
const out: OcrRect[] = []
|
||||
let runStart = -1
|
||||
let previous = -1
|
||||
const flush = (): void => {
|
||||
if (runStart === -1) return
|
||||
const first = result.words[runStart]
|
||||
const last = result.words[previous]
|
||||
const line = result.lines[first.line]
|
||||
out.push({ x: first.x, y: line.y, width: last.x + last.width - first.x, height: line.height })
|
||||
}
|
||||
for (const index of picked) {
|
||||
const word = result.words[index]
|
||||
const continues = previous !== -1 && index === previous + 1 && result.words[previous].line === word.line
|
||||
if (!continues) {
|
||||
flush()
|
||||
runStart = index
|
||||
}
|
||||
previous = index
|
||||
}
|
||||
flush()
|
||||
return out
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 인식 배율
|
||||
// ============================================================
|
||||
|
||||
/**
|
||||
* OCR 에 넣기 전 확대 배율. 화면 글자(100% 배율에서 9~10pt)는 그대로 넣으면 인식률이 뚝 떨어지고
|
||||
* 2배로 키우면 크게 좋아진다(2026-11-20 실측). 이미 고배율(HiDPI) 화면이면 덜 키운다.
|
||||
* 엔진의 최대 변 길이를 넘지 않게 줄인다.
|
||||
*/
|
||||
export function chooseOcrScale(
|
||||
width: number,
|
||||
height: number,
|
||||
displayScaleFactor: number,
|
||||
maxDimension: number
|
||||
): number {
|
||||
const factor = Number.isFinite(displayScaleFactor) && displayScaleFactor > 0 ? displayScaleFactor : 1
|
||||
const wanted = Math.max(1, 2 / factor)
|
||||
const longest = Math.max(width, height)
|
||||
if (longest <= 0) return 1
|
||||
const allowed = maxDimension / longest
|
||||
const scale = Math.min(wanted, allowed)
|
||||
return Math.round(scale * 100) / 100
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 링크 · 번역 대상
|
||||
// ============================================================
|
||||
|
||||
const URL_PATTERN = /\b((?:https?:\/\/|www\.)[^\s<>"'`]+[^\s<>"'`.,;:!?)\]}])/giu
|
||||
const EMAIL_PATTERN = /\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/giu
|
||||
|
||||
/** 글에서 열 수 있는 주소를 찾는다 (http/https, www. 로 시작하는 주소, 메일 주소). 중복은 뺀다. */
|
||||
export function detectLinks(text: string): string[] {
|
||||
const out: string[] = []
|
||||
const add = (value: string): void => {
|
||||
if (!out.includes(value)) out.push(value)
|
||||
}
|
||||
for (const match of text.matchAll(EMAIL_PATTERN)) add(`mailto:${match[0]}`)
|
||||
for (const match of text.matchAll(URL_PATTERN)) {
|
||||
const raw = match[1]
|
||||
add(/^https?:\/\//iu.test(raw) ? raw : `https://${raw}`)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
/** 앱 언어 코드 → 번역 프롬프트에 넣을 언어 이름. */
|
||||
const LOCALE_LANGUAGE_NAMES: Readonly<Record<string, string>> = {
|
||||
ko: 'Korean',
|
||||
en: 'English',
|
||||
ja: 'Japanese',
|
||||
zh: 'Chinese (Simplified)',
|
||||
'zh-TW': 'Chinese (Traditional)',
|
||||
es: 'Spanish',
|
||||
fr: 'French',
|
||||
de: 'German',
|
||||
pt: 'Portuguese',
|
||||
ru: 'Russian',
|
||||
th: 'Thai',
|
||||
vi: 'Vietnamese'
|
||||
}
|
||||
|
||||
function scriptShare(text: string, test: (code: number) => boolean): number {
|
||||
let letters = 0
|
||||
let hits = 0
|
||||
for (const char of text) {
|
||||
if (!/\p{L}/u.test(char)) continue
|
||||
letters += 1
|
||||
if (test(char.codePointAt(0) ?? 0)) hits += 1
|
||||
}
|
||||
return letters === 0 ? 0 : hits / letters
|
||||
}
|
||||
|
||||
const isHangul = (code: number): boolean => (code >= 0xac00 && code <= 0xd7a3) || (code >= 0x1100 && code <= 0x11ff)
|
||||
const isKana = (code: number): boolean => code >= 0x3040 && code <= 0x30ff
|
||||
const isHan = (code: number): boolean => (code >= 0x4e00 && code <= 0x9fff) || (code >= 0x3400 && code <= 0x4dbf)
|
||||
const isCyrillic = (code: number): boolean => code >= 0x0400 && code <= 0x04ff
|
||||
const isThai = (code: number): boolean => code >= 0x0e00 && code <= 0x0e7f
|
||||
const isLatin = (code: number): boolean =>
|
||||
(code >= 0x41 && code <= 0x5a) || (code >= 0x61 && code <= 0x7a) || (code >= 0xc0 && code <= 0x24f)
|
||||
|
||||
/** 글이 이미 사용자의 언어로 보이는지 (문자 체계로만 어림한다). */
|
||||
function looksLikeLocale(text: string, locale: string): boolean {
|
||||
switch (locale) {
|
||||
case 'ko':
|
||||
return scriptShare(text, isHangul) >= 0.3
|
||||
case 'ja':
|
||||
return scriptShare(text, isKana) >= 0.15
|
||||
case 'zh':
|
||||
case 'zh-TW':
|
||||
return scriptShare(text, isHan) >= 0.5 && scriptShare(text, isKana) < 0.05
|
||||
case 'ru':
|
||||
return scriptShare(text, isCyrillic) >= 0.5
|
||||
case 'th':
|
||||
return scriptShare(text, isThai) >= 0.5
|
||||
default:
|
||||
// 라틴 문자 언어끼리는 문자로 구분할 수 없다 — 라틴 글이면 "이미 사용자 언어"로 본다.
|
||||
return scriptShare(text, isLatin) >= 0.7
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 번역 대상 언어를 고른다 — 기본은 사용자의 앱 언어로 옮긴다.
|
||||
* 글이 이미 그 언어로 보이면 설정의 번역 대상 언어(configuredTarget)로 옮긴다.
|
||||
*/
|
||||
export function pickTranslationTarget(text: string, appLocale: string, configuredTarget: string): string {
|
||||
const own = LOCALE_LANGUAGE_NAMES[appLocale]
|
||||
if (!own) return configuredTarget
|
||||
return looksLikeLocale(text, appLocale) ? configuredTarget : own
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// 검색 가능한 PDF 문서
|
||||
// ============================================================
|
||||
|
||||
function escapeHtml(value: string): string {
|
||||
return value
|
||||
.replace(/&/gu, '&')
|
||||
.replace(/</gu, '<')
|
||||
.replace(/>/gu, '>')
|
||||
.replace(/"/gu, '"')
|
||||
}
|
||||
|
||||
export interface SearchablePdfInput {
|
||||
/** 그림의 data URL (image/png) */
|
||||
imageDataUrl: string
|
||||
/** 그림 크기 (물리 픽셀) — 쪽 크기가 된다 */
|
||||
width: number
|
||||
height: number
|
||||
/** 그림 좌표계의 단어 (잘라낸 영역이면 그 영역 기준으로 옮긴 좌표) */
|
||||
words: ReadonlyArray<Pick<OcrWord, 'text' | 'x' | 'y' | 'width' | 'height'>>
|
||||
/** 문서 lang 속성 */
|
||||
language: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 그림 한 장 + 글자 층으로 된 한 쪽짜리 HTML — printToPDF 로 넘기면 검색·복사가 되는 PDF 가 된다.
|
||||
*
|
||||
* 글자를 투명하게 칠하지 않고 **그림 아래에** 깐다: 투명 글자는 PDF 백엔드가 그리지 않고 버릴 수 있지만,
|
||||
* 가려진 글자는 내용 스트림에 그대로 남아 보기 프로그램이 찾고 고를 수 있다.
|
||||
* 글자 폭은 SVG textLength 로 단어 상자에 정확히 맞춘다(측정용 스크립트가 필요 없다).
|
||||
*/
|
||||
export function buildSearchablePdfHtml(input: SearchablePdfInput): string {
|
||||
const width = Math.max(1, Math.round(input.width))
|
||||
const height = Math.max(1, Math.round(input.height))
|
||||
const texts = input.words
|
||||
.filter((word) => word.text.trim().length > 0 && word.width > 0 && word.height > 0)
|
||||
.map((word) => {
|
||||
const fontSize = Math.max(1, word.height * 0.9)
|
||||
const baseline = word.y + word.height * 0.82
|
||||
return (
|
||||
`<text x="${word.x.toFixed(1)}" y="${baseline.toFixed(1)}" font-size="${fontSize.toFixed(1)}" ` +
|
||||
`textLength="${word.width.toFixed(1)}" lengthAdjust="spacingAndGlyphs">${escapeHtml(word.text)}</text>`
|
||||
)
|
||||
})
|
||||
.join('')
|
||||
|
||||
return (
|
||||
`<!DOCTYPE html><html lang="${escapeHtml(input.language || 'en')}"><head><meta charset="utf-8">` +
|
||||
`<style>@page{size:${width}px ${height}px;margin:0}` +
|
||||
`html,body{margin:0;padding:0;background:white}` +
|
||||
`.page{position:relative;width:${width}px;height:${height}px;overflow:hidden}` +
|
||||
`.page svg,.page img{position:absolute;left:0;top:0;width:${width}px;height:${height}px;display:block}` +
|
||||
`.page svg{z-index:0}.page img{z-index:1}` +
|
||||
`text{font-family:'Malgun Gothic','Segoe UI','Noto Sans CJK KR',sans-serif;fill:black}</style></head>` +
|
||||
`<body><div class="page">` +
|
||||
`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${width} ${height}">${texts}</svg>` +
|
||||
`<img alt="" src="${escapeHtml(input.imageDataUrl)}">` +
|
||||
`</div></body></html>`
|
||||
)
|
||||
}
|
||||
|
||||
/** 사각형 안에 중심이 든 단어를 그 사각형 기준 좌표로 옮긴다 (영역만 PDF/그림으로 낼 때). */
|
||||
export function wordsRelativeTo(result: OcrResult, rect: OcrRect): OcrWord[] {
|
||||
return wordsInRect(result, rect).map((index) => {
|
||||
const word = result.words[index]
|
||||
return { ...word, x: word.x - rect.x, y: word.y - rect.y }
|
||||
})
|
||||
}
|
||||
|
|
@ -443,6 +443,8 @@ export interface AppConfig {
|
|||
handsFreeEnabled: boolean
|
||||
/** 스크린 컨텍스트 캡처 활성화 (Phase 10.2) */
|
||||
screenContextEnabled: boolean
|
||||
/** 화면 OCR 인식 언어 태그 (예: 'ko', 'en-US'). 'auto' 면 Windows 사용자 언어를 따른다. */
|
||||
screenOcrLanguage: string
|
||||
/** Phase 15.5: HuggingFace 토큰 (화자 구분용) */
|
||||
hfToken: string
|
||||
/** Phase 15.5: 화자 구분 활성화 */
|
||||
|
|
|
|||
|
|
@ -2500,5 +2500,46 @@
|
|||
"web.push.unconfigured": "Benachrichtigungen sind auf dem Server nicht konfiguriert.",
|
||||
"web.push.blocked": "Benachrichtigungen sind blockiert. Erlaube sie in den Website-Einstellungen des Browsers.",
|
||||
"web.push.revoked": "Dieser Browser wurde aus dem Konto entfernt. Lösche die gespeicherten Websitedaten, bevor du ihn erneut hinzufügst.",
|
||||
"web.push.error": "Benachrichtigungen konnten nicht geändert werden. Prüfe die Browserberechtigung und versuche es erneut."
|
||||
"web.push.error": "Benachrichtigungen konnten nicht geändert werden. Prüfe die Browserberechtigung und versuche es erneut.",
|
||||
"keybinding.action.screenOcr": "Bildschirmtext erfassen (OCR)",
|
||||
"keybinding.action.screenOcr.desc": "Nimmt den Bildschirm auf, damit Sie den Text darauf durch Ziehen auswählen können.",
|
||||
"screenOcr.dialog.savePdf": "Als PDF speichern",
|
||||
"screenOcr.dialog.saveImage": "Als Bild speichern",
|
||||
"screenOcr.errorCapture": "Der Bildschirm konnte nicht aufgenommen werden.",
|
||||
"screenOcr.modeText": "Text",
|
||||
"screenOcr.modeRect": "Bereich",
|
||||
"screenOcr.copy": "Kopieren",
|
||||
"screenOcr.copyLine": "Als eine Zeile kopieren",
|
||||
"screenOcr.copyImage": "Bild kopieren",
|
||||
"screenOcr.saveImage": "Bild speichern",
|
||||
"screenOcr.savePdf": "PDF speichern",
|
||||
"screenOcr.translate": "Übersetzen",
|
||||
"screenOcr.summarize": "Zusammenfassen",
|
||||
"screenOcr.speak": "Vorlesen",
|
||||
"screenOcr.stopSpeak": "Vorlesen stoppen",
|
||||
"screenOcr.openLink": "Link öffnen",
|
||||
"screenOcr.search": "Im Web suchen",
|
||||
"screenOcr.selectAll": "Alles auswählen",
|
||||
"screenOcr.close": "Schließen",
|
||||
"screenOcr.language": "Sprache",
|
||||
"screenOcr.languageAuto": "Automatisch",
|
||||
"screenOcr.statusRecognizing": "Text wird gelesen…",
|
||||
"screenOcr.statusReady": "{{count}} Wörter · zum Auswählen ziehen",
|
||||
"screenOcr.statusEmpty": "Kein Text gefunden",
|
||||
"screenOcr.statusSelected": "{{count}} Zeichen ausgewählt",
|
||||
"screenOcr.hint": "Ziehen zum Auswählen · Doppelklick auf ein Wort · Strg+A alles · Strg+C kopieren · Esc schließen",
|
||||
"screenOcr.toastCopied": "Kopiert",
|
||||
"screenOcr.toastImageCopied": "Bild kopiert",
|
||||
"screenOcr.toastSaved": "Gespeichert",
|
||||
"screenOcr.working": "Wird verarbeitet…",
|
||||
"screenOcr.resultTranslate": "Übersetzung",
|
||||
"screenOcr.resultSummary": "Zusammenfassung",
|
||||
"screenOcr.errorRecognition": "Der Text konnte nicht gelesen werden",
|
||||
"screenOcr.errorUnavailable": "Die Texterfassung ist auf diesem PC nicht verfügbar. Installieren Sie in den Windows-Einstellungen ein Sprachpaket mit optischer Zeichenerkennung.",
|
||||
"screenOcr.errorExport": "Speichern oder Kopieren fehlgeschlagen",
|
||||
"screenOcr.errorLlm": "Keine Antwort von der KI. Prüfen Sie die Modelleinstellungen.",
|
||||
"screenOcr.errorTts": "Vorlesen fehlgeschlagen",
|
||||
"screenOcr.errorLink": "Der Link konnte nicht geöffnet werden",
|
||||
"screenOcr.errorInvalid": "Diese Aufnahme wurde bereits geschlossen. Nehmen Sie erneut auf.",
|
||||
"screenOcr.errorEmpty": "Kein Text ausgewählt"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2500,5 +2500,46 @@
|
|||
"web.push.unconfigured": "Notifications are not configured on the server.",
|
||||
"web.push.blocked": "Notifications are blocked. Allow them in this site's browser settings.",
|
||||
"web.push.revoked": "This browser was removed from the account. Clear this site's stored data before adding it again.",
|
||||
"web.push.error": "Notifications could not be changed. Check the browser permission and try again."
|
||||
"web.push.error": "Notifications could not be changed. Check the browser permission and try again.",
|
||||
"keybinding.action.screenOcr": "Screen text capture (OCR)",
|
||||
"keybinding.action.screenOcr.desc": "Captures the screen so you can drag to select the text on it.",
|
||||
"screenOcr.dialog.savePdf": "Save as PDF",
|
||||
"screenOcr.dialog.saveImage": "Save as image",
|
||||
"screenOcr.errorCapture": "Could not capture the screen.",
|
||||
"screenOcr.modeText": "Text",
|
||||
"screenOcr.modeRect": "Area",
|
||||
"screenOcr.copy": "Copy",
|
||||
"screenOcr.copyLine": "Copy as one line",
|
||||
"screenOcr.copyImage": "Copy image",
|
||||
"screenOcr.saveImage": "Save image",
|
||||
"screenOcr.savePdf": "Save PDF",
|
||||
"screenOcr.translate": "Translate",
|
||||
"screenOcr.summarize": "Summarize",
|
||||
"screenOcr.speak": "Read aloud",
|
||||
"screenOcr.stopSpeak": "Stop reading",
|
||||
"screenOcr.openLink": "Open link",
|
||||
"screenOcr.search": "Search the web",
|
||||
"screenOcr.selectAll": "Select all",
|
||||
"screenOcr.close": "Close",
|
||||
"screenOcr.language": "Language",
|
||||
"screenOcr.languageAuto": "Auto",
|
||||
"screenOcr.statusRecognizing": "Reading text…",
|
||||
"screenOcr.statusReady": "{{count}} words · drag to select",
|
||||
"screenOcr.statusEmpty": "No text found",
|
||||
"screenOcr.statusSelected": "{{count}} characters selected",
|
||||
"screenOcr.hint": "Drag to select · double-click a word · Ctrl+A all · Ctrl+C copy · Esc close",
|
||||
"screenOcr.toastCopied": "Copied",
|
||||
"screenOcr.toastImageCopied": "Image copied",
|
||||
"screenOcr.toastSaved": "Saved",
|
||||
"screenOcr.working": "Working…",
|
||||
"screenOcr.resultTranslate": "Translation",
|
||||
"screenOcr.resultSummary": "Summary",
|
||||
"screenOcr.errorRecognition": "Could not read the text",
|
||||
"screenOcr.errorUnavailable": "Screen text capture is not available on this PC. Install a language pack with optical character recognition in Windows Settings.",
|
||||
"screenOcr.errorExport": "Could not save or copy",
|
||||
"screenOcr.errorLlm": "No response from the AI. Check your model settings.",
|
||||
"screenOcr.errorTts": "Could not read aloud",
|
||||
"screenOcr.errorLink": "Could not open the link",
|
||||
"screenOcr.errorInvalid": "This capture is already closed. Capture again.",
|
||||
"screenOcr.errorEmpty": "No text selected"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2500,5 +2500,46 @@
|
|||
"web.push.unconfigured": "Las notificaciones no están configuradas en el servidor.",
|
||||
"web.push.blocked": "Las notificaciones están bloqueadas. Permítelas en la configuración del sitio del navegador.",
|
||||
"web.push.revoked": "Este navegador se eliminó de la cuenta. Borra los datos guardados del sitio antes de volver a añadirlo.",
|
||||
"web.push.error": "No se pudieron cambiar las notificaciones. Revisa el permiso del navegador e inténtalo de nuevo."
|
||||
"web.push.error": "No se pudieron cambiar las notificaciones. Revisa el permiso del navegador e inténtalo de nuevo.",
|
||||
"keybinding.action.screenOcr": "Capturar texto de pantalla (OCR)",
|
||||
"keybinding.action.screenOcr.desc": "Captura la pantalla para seleccionar su texto arrastrando.",
|
||||
"screenOcr.dialog.savePdf": "Guardar como PDF",
|
||||
"screenOcr.dialog.saveImage": "Guardar como imagen",
|
||||
"screenOcr.errorCapture": "No se pudo capturar la pantalla.",
|
||||
"screenOcr.modeText": "Texto",
|
||||
"screenOcr.modeRect": "Área",
|
||||
"screenOcr.copy": "Copiar",
|
||||
"screenOcr.copyLine": "Copiar en una línea",
|
||||
"screenOcr.copyImage": "Copiar imagen",
|
||||
"screenOcr.saveImage": "Guardar imagen",
|
||||
"screenOcr.savePdf": "Guardar PDF",
|
||||
"screenOcr.translate": "Traducir",
|
||||
"screenOcr.summarize": "Resumir",
|
||||
"screenOcr.speak": "Leer en voz alta",
|
||||
"screenOcr.stopSpeak": "Detener lectura",
|
||||
"screenOcr.openLink": "Abrir enlace",
|
||||
"screenOcr.search": "Buscar en la web",
|
||||
"screenOcr.selectAll": "Seleccionar todo",
|
||||
"screenOcr.close": "Cerrar",
|
||||
"screenOcr.language": "Idioma",
|
||||
"screenOcr.languageAuto": "Automático",
|
||||
"screenOcr.statusRecognizing": "Leyendo texto…",
|
||||
"screenOcr.statusReady": "{{count}} palabras · arrastra para seleccionar",
|
||||
"screenOcr.statusEmpty": "No se encontró texto",
|
||||
"screenOcr.statusSelected": "{{count}} caracteres seleccionados",
|
||||
"screenOcr.hint": "Arrastra para seleccionar · doble clic en una palabra · Ctrl+A todo · Ctrl+C copiar · Esc cerrar",
|
||||
"screenOcr.toastCopied": "Copiado",
|
||||
"screenOcr.toastImageCopied": "Imagen copiada",
|
||||
"screenOcr.toastSaved": "Guardado",
|
||||
"screenOcr.working": "Procesando…",
|
||||
"screenOcr.resultTranslate": "Traducción",
|
||||
"screenOcr.resultSummary": "Resumen",
|
||||
"screenOcr.errorRecognition": "No se pudo leer el texto",
|
||||
"screenOcr.errorUnavailable": "La captura de texto no está disponible en este PC. Instala un paquete de idioma con reconocimiento óptico de caracteres en Configuración de Windows.",
|
||||
"screenOcr.errorExport": "No se pudo guardar ni copiar",
|
||||
"screenOcr.errorLlm": "La IA no respondió. Revisa la configuración del modelo.",
|
||||
"screenOcr.errorTts": "No se pudo leer en voz alta",
|
||||
"screenOcr.errorLink": "No se pudo abrir el enlace",
|
||||
"screenOcr.errorInvalid": "Esta captura ya se cerró. Vuelve a capturar.",
|
||||
"screenOcr.errorEmpty": "No hay texto seleccionado"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2500,5 +2500,46 @@
|
|||
"web.push.unconfigured": "Les notifications ne sont pas configurées sur le serveur.",
|
||||
"web.push.blocked": "Les notifications sont bloquées. Autorisez-les dans les paramètres du site du navigateur.",
|
||||
"web.push.revoked": "Ce navigateur a été retiré du compte. Effacez les données enregistrées du site avant de l’ajouter à nouveau.",
|
||||
"web.push.error": "Impossible de modifier les notifications. Vérifiez l’autorisation du navigateur et réessayez."
|
||||
"web.push.error": "Impossible de modifier les notifications. Vérifiez l’autorisation du navigateur et réessayez.",
|
||||
"keybinding.action.screenOcr": "Capture de texte à l’écran (OCR)",
|
||||
"keybinding.action.screenOcr.desc": "Capture l’écran pour sélectionner son texte en faisant glisser.",
|
||||
"screenOcr.dialog.savePdf": "Enregistrer en PDF",
|
||||
"screenOcr.dialog.saveImage": "Enregistrer comme image",
|
||||
"screenOcr.errorCapture": "Impossible de capturer l’écran.",
|
||||
"screenOcr.modeText": "Texte",
|
||||
"screenOcr.modeRect": "Zone",
|
||||
"screenOcr.copy": "Copier",
|
||||
"screenOcr.copyLine": "Copier sur une ligne",
|
||||
"screenOcr.copyImage": "Copier l’image",
|
||||
"screenOcr.saveImage": "Enregistrer l’image",
|
||||
"screenOcr.savePdf": "Enregistrer en PDF",
|
||||
"screenOcr.translate": "Traduire",
|
||||
"screenOcr.summarize": "Résumer",
|
||||
"screenOcr.speak": "Lire à voix haute",
|
||||
"screenOcr.stopSpeak": "Arrêter la lecture",
|
||||
"screenOcr.openLink": "Ouvrir le lien",
|
||||
"screenOcr.search": "Rechercher sur le Web",
|
||||
"screenOcr.selectAll": "Tout sélectionner",
|
||||
"screenOcr.close": "Fermer",
|
||||
"screenOcr.language": "Langue",
|
||||
"screenOcr.languageAuto": "Auto",
|
||||
"screenOcr.statusRecognizing": "Lecture du texte…",
|
||||
"screenOcr.statusReady": "{{count}} mots · faites glisser pour sélectionner",
|
||||
"screenOcr.statusEmpty": "Aucun texte trouvé",
|
||||
"screenOcr.statusSelected": "{{count}} caractères sélectionnés",
|
||||
"screenOcr.hint": "Glisser pour sélectionner · double-clic sur un mot · Ctrl+A tout · Ctrl+C copier · Échap fermer",
|
||||
"screenOcr.toastCopied": "Copié",
|
||||
"screenOcr.toastImageCopied": "Image copiée",
|
||||
"screenOcr.toastSaved": "Enregistré",
|
||||
"screenOcr.working": "Traitement…",
|
||||
"screenOcr.resultTranslate": "Traduction",
|
||||
"screenOcr.resultSummary": "Résumé",
|
||||
"screenOcr.errorRecognition": "Impossible de lire le texte",
|
||||
"screenOcr.errorUnavailable": "La capture de texte n’est pas disponible sur ce PC. Installez un module linguistique avec reconnaissance optique de caractères dans les Paramètres Windows.",
|
||||
"screenOcr.errorExport": "Impossible d’enregistrer ou de copier",
|
||||
"screenOcr.errorLlm": "Aucune réponse de l’IA. Vérifiez les réglages du modèle.",
|
||||
"screenOcr.errorTts": "Impossible de lire à voix haute",
|
||||
"screenOcr.errorLink": "Impossible d’ouvrir le lien",
|
||||
"screenOcr.errorInvalid": "Cette capture est déjà fermée. Recommencez la capture.",
|
||||
"screenOcr.errorEmpty": "Aucun texte sélectionné"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": "テキストが選択されていません"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": "한 줄로 복사",
|
||||
"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": "선택한 글자가 없습니다"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2500,5 +2500,46 @@
|
|||
"web.push.unconfigured": "As notificações não estão configuradas no servidor.",
|
||||
"web.push.blocked": "As notificações estão bloqueadas. Permita-as nas configurações do site no navegador.",
|
||||
"web.push.revoked": "Este navegador foi removido da conta. Limpe os dados salvos deste site antes de adicioná-lo novamente.",
|
||||
"web.push.error": "Não foi possível alterar as notificações. Verifique a permissão do navegador e tente novamente."
|
||||
"web.push.error": "Não foi possível alterar as notificações. Verifique a permissão do navegador e tente novamente.",
|
||||
"keybinding.action.screenOcr": "Capturar texto da tela (OCR)",
|
||||
"keybinding.action.screenOcr.desc": "Captura a tela para você selecionar o texto arrastando.",
|
||||
"screenOcr.dialog.savePdf": "Salvar como PDF",
|
||||
"screenOcr.dialog.saveImage": "Salvar como imagem",
|
||||
"screenOcr.errorCapture": "Não foi possível capturar a tela.",
|
||||
"screenOcr.modeText": "Texto",
|
||||
"screenOcr.modeRect": "Área",
|
||||
"screenOcr.copy": "Copiar",
|
||||
"screenOcr.copyLine": "Copiar em uma linha",
|
||||
"screenOcr.copyImage": "Copiar imagem",
|
||||
"screenOcr.saveImage": "Salvar imagem",
|
||||
"screenOcr.savePdf": "Salvar PDF",
|
||||
"screenOcr.translate": "Traduzir",
|
||||
"screenOcr.summarize": "Resumir",
|
||||
"screenOcr.speak": "Ler em voz alta",
|
||||
"screenOcr.stopSpeak": "Parar leitura",
|
||||
"screenOcr.openLink": "Abrir link",
|
||||
"screenOcr.search": "Pesquisar na web",
|
||||
"screenOcr.selectAll": "Selecionar tudo",
|
||||
"screenOcr.close": "Fechar",
|
||||
"screenOcr.language": "Idioma",
|
||||
"screenOcr.languageAuto": "Automático",
|
||||
"screenOcr.statusRecognizing": "Lendo o texto…",
|
||||
"screenOcr.statusReady": "{{count}} palavras · arraste para selecionar",
|
||||
"screenOcr.statusEmpty": "Nenhum texto encontrado",
|
||||
"screenOcr.statusSelected": "{{count}} caracteres selecionados",
|
||||
"screenOcr.hint": "Arraste para selecionar · clique duplo em uma palavra · Ctrl+A tudo · Ctrl+C copiar · Esc fechar",
|
||||
"screenOcr.toastCopied": "Copiado",
|
||||
"screenOcr.toastImageCopied": "Imagem copiada",
|
||||
"screenOcr.toastSaved": "Salvo",
|
||||
"screenOcr.working": "Processando…",
|
||||
"screenOcr.resultTranslate": "Tradução",
|
||||
"screenOcr.resultSummary": "Resumo",
|
||||
"screenOcr.errorRecognition": "Não foi possível ler o texto",
|
||||
"screenOcr.errorUnavailable": "A captura de texto não está disponível neste PC. Instale um pacote de idioma com reconhecimento óptico de caracteres nas Configurações do Windows.",
|
||||
"screenOcr.errorExport": "Não foi possível salvar ou copiar",
|
||||
"screenOcr.errorLlm": "A IA não respondeu. Verifique as configurações do modelo.",
|
||||
"screenOcr.errorTts": "Não foi possível ler em voz alta",
|
||||
"screenOcr.errorLink": "Não foi possível abrir o link",
|
||||
"screenOcr.errorInvalid": "Esta captura já foi fechada. Capture novamente.",
|
||||
"screenOcr.errorEmpty": "Nenhum texto selecionado"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": "Копировать одной строкой",
|
||||
"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": "Распознавание текста на этом ПК недоступно. Установите в параметрах Windows языковой пакет с оптическим распознаванием символов.",
|
||||
"screenOcr.errorExport": "Не удалось сохранить или скопировать",
|
||||
"screenOcr.errorLlm": "ИИ не ответил. Проверьте настройки модели.",
|
||||
"screenOcr.errorTts": "Не удалось прочитать вслух",
|
||||
"screenOcr.errorLink": "Не удалось открыть ссылку",
|
||||
"screenOcr.errorInvalid": "Этот снимок уже закрыт. Сделайте новый.",
|
||||
"screenOcr.errorEmpty": "Текст не выделен"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": "คัดลอกเป็นบรรทัดเดียว",
|
||||
"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": "พีซีนี้ใช้การจับข้อความบนหน้าจอไม่ได้ โปรดติดตั้งชุดภาษาที่มีการรู้จำอักขระด้วยแสงในการตั้งค่า Windows",
|
||||
"screenOcr.errorExport": "บันทึกหรือคัดลอกไม่ได้",
|
||||
"screenOcr.errorLlm": "AI ไม่ตอบกลับ โปรดตรวจสอบการตั้งค่าโมเดล",
|
||||
"screenOcr.errorTts": "อ่านออกเสียงไม่ได้",
|
||||
"screenOcr.errorLink": "เปิดลิงก์ไม่ได้",
|
||||
"screenOcr.errorInvalid": "การจับภาพนี้ปิดไปแล้ว โปรดจับภาพใหม่",
|
||||
"screenOcr.errorEmpty": "ยังไม่ได้เลือกข้อความ"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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ữ"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": "複製為一行",
|
||||
"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": "此電腦無法使用螢幕文字辨識。請在 Windows 設定中安裝含光學字元辨識的語言套件。",
|
||||
"screenOcr.errorExport": "無法儲存或複製",
|
||||
"screenOcr.errorLlm": "未收到 AI 回應。請檢查模型設定。",
|
||||
"screenOcr.errorTts": "無法朗讀",
|
||||
"screenOcr.errorLink": "無法開啟連結",
|
||||
"screenOcr.errorInvalid": "此擷取已關閉。請重新擷取。",
|
||||
"screenOcr.errorEmpty": "未選取文字"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": "复制为一行",
|
||||
"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": "此电脑无法使用屏幕文字识别。请在 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