Update ocr.md

This commit is contained in:
shenleban tongying 2023-08-07 07:58:32 -04:00 committed by GitHub
parent ce4656eda5
commit 628146a41b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,11 +2,7 @@
GoldenDict offered a functionality to translate the word under cursor on Windows in the past, but the technique used there is old and does not work crossplatformly. GoldenDict offered a functionality to translate the word under cursor on Windows in the past, but the technique used there is old and does not work crossplatformly.
However, any OCR program that allow you to set "after capturing action" can be easily used in conjunction with GoldenDict. However, any OCR program that allows you to set "after capturing action" can be easily used in conjunction with GoldenDict.
## Capture2Text release
[Capture2Text Download](https://github.com/xiaoyifang/Capture2Text/releases/tag/prerelease-20220806)
A few examples are provided below, but there are many options: A few examples are provided below, but there are many options:
@ -16,6 +12,8 @@ Capture2Text can call executable after capturing, and you can set the executable
Detailed usage document: [Capture2Text](https://capture2text.sourceforge.net/) Detailed usage document: [Capture2Text](https://capture2text.sourceforge.net/)
[Capture2Text Download](https://github.com/xiaoyifang/Capture2Text/releases/tag/prerelease-20220806)
For example, change the Output action `Call Executable` to `path_to_the_GD_executable\GoldenDict.exe "${capture}"` For example, change the Output action `Call Executable` to `path_to_the_GD_executable\GoldenDict.exe "${capture}"`
Then press <kbd>Win+Q</kbd> and select a region. After capturing a word, Capture2Text will forward the word to GoldenDict. If GoldenDict's scanpopup is enabled, it will show up. Then press <kbd>Win+Q</kbd> and select a region. After capturing a word, Capture2Text will forward the word to GoldenDict. If GoldenDict's scanpopup is enabled, it will show up.