goldendict-ng/howto/How to use ocr together with GoldenDict.md
2022-01-30 19:20:08 +08:00

2.6 KiB

Current Situation

GoldenDict did offer a functionality to translate the word under cursor(when scan popup been enabled) on Windows. the technique used there is old and can not work crossplatform .

with the help of another great tool Capture2Text ,GoldenDict can work with ocr seamlessly.

Note

Capture2Text has offered Windows precompiled executable files.I think it would be easier and possible to make it work on Linux as some afforts have tried.

Configuration

after installation of both software. configure the Capture2Text ,see screenshot following

configure external Call Executable path (Windows for example)

path\GoldenDict.exe "${capture}"

image

configure hotkey

I only left three of them . image

configure First word only

without this configuration ,it will capture the last word of image

Use it

place the cursor on the word (can be on the image ),press

  • Win+W to capture the first word.

image

  • Win+Q select rectangle.

image

result:

image

use Capture2Text on Linxu

download and build the capture2text

https://github.com/xiaoyifang/Capture2Text

2022-01-30 15-54-35屏幕截图

settings

2022-01-30 15-54-35屏幕截图1

image

start capture

Ctrl+Shift+Q

image

end capture

press Ctrl+Shift+Q again.