Releases: pilgrimlyieu/AutoHotkey-Script
OCRC v2.2.2
更新日志
添加
- 文本 OCR
- 为结果窗口保存或导入文件夹输出时弹出覆盖提示
- 为导入文件夹输出完成后添加弹出提示
- 添加始终覆盖输出文件选项
- 为百度 OCR 识别错误提示标题添加错误码
更改
- 通用
- 更改了部分错误提示的标题
修复
- 文本 OCR
- 修复了导入不合法图片时会报错并开启截图的问题
由 GitHub Copilot 生成的翻译
Generated by GitHub Copilot
Changelog
Added
- Text OCR
- Pop-up overwrite prompt when saving or importing folder output for result window
- Add pop-up prompt after importing folder output is completed
- Add always overwrite output file option
- Add error code to Baidu OCR recognition error prompt title
Changed
- General
- Changed the title of some error prompts
Fixed
- Text OCR
- Fixed the problem that an error will be reported and screenshot will be turned on when importing illegal pictures
详细更新 Detailed
OCRC v2.2.1
更新日志
几天前就更新版本了,但迟迟未发布和更新日志。实际上也没更新多少,只是修复了一些问题。
修复
- 文本 OCR
- 设置更新未及时对导入图片或文件夹 OCR 生效的问题
- JPG 编码精度对导入图片或文件夹 OCR 不生效的问题
- 结果窗口取消保存结果时仍然保存的问题
由 GitHub Copilot 生成的翻译
Generated by GitHub Copilot
Changelog
The version was updated a few days ago, but it has not been released and updated for a long time. In fact, not much has been updated, just fixing some problems.
Fixed
- Text OCR
- The setting update does not take effect on the imported image or folder OCR in time
- JPG encoding accuracy does not take effect on the imported image or folder OCR
- The problem of saving the result even if canceling in the result window
具体更新 Detailed
OCRC v2.2.0
更新日志
#26 拖延了两周才完成。姗姗来迟的更新,加入了「导入图片」及「导入文件夹」以进行文本 OCR 的功能。
添加
- 通用
- 任务栏菜单添加「导入图片」及「导入文件夹」选项,以支持外部文件的文本 OCR。
- 文本 OCR
- 「导入图片」:可选择多张图片文件(支持 jpg, jpeg, png 和 bmp 格式),将会为每张图片打开一个 OCR 结果窗口
- 「导入文件夹」:可选择一个文件夹,将会把文件夹内所有图片文件(支持 jpg, jpeg, png 和 bmp 格式)的结果保存到对应文件名的 txt 文件中
- 结果窗口保存 OCR 结果支持
移除
- 文本 OCR
- 破坏:移除了「默认标点」和「默认空格」中的「原始结果」选项。
修复
- 文本 OCR
- 百度 OCR
- 「手写文字识别」和「网络图片文字识别」不支持智能段落的问题
- 结果窗口翻译时最初会选中全文的问题
- 百度 OCR
由 GitHub Copilot 生成的翻译
Generated by GitHub Copilot
Changelog
#26 took two weeks to procrastinate before it was completed. The late update adds the function of "importing pictures" and "importing folders" to perform Text OCR on external files.
Added
- General
- The taskbar menu adds the "Import Picture" and "Import Folder" options to support the Text OCR of external files.
- "Import Picture": You can select multiple image files (supports jpg, jpeg, png and bmp formats), and an OCR result window will be opened for each image.
- "Import Folder": You can select a folder, and the results of all image files in the folder (supports jpg, jpeg, png and bmp formats) will be saved to the corresponding txt file with the file name.
- The result window supports saving OCR results
Removed
- Text OCR
- BREAKING: Removed the "Original Result" option in "Default Punctuation" and "Default Spaces".
Fixed
- Text OCR
- Baidu OCR
- The problem that "handwritten text recognition" and "network picture text recognition" do not support intelligent paragraphs
- The problem that the translation of the result window will initially select the entire text
- Baidu OCR
具体更新 Detailed
OCRC v2.1.0
更新日志
这几天,我专注于开发 OCRC v2.1.0(除了出去玩了一天)。这个版本的更新比较巨大,几乎重写了结构,同时配置文件也进行了颠覆性的改造,其实完全可以作为 3.0.0 发布。但是,我还是决定将其作为 2.1.0 发布,因为我一开始分支的命名就是 2.1.0,而且我觉得 3.0.0 应该是一个更大的版本,应该有更多的新功能,而不是仅仅是重构。当然除了结构的修改外,也引入了一些新功能,这使 OCRC 扩展性更强,会使以后新 OCR 引擎的接入更加方便。
添加
- 通用
- 设置界面工具提示开关选项
- 文本 OCR 与公式 OCR 引擎设置选项
- 文本 OCR
- 默认翻译原始语言选项
- 默认翻译目标语言选项
- 百度 OCR
- 识别语言选项
- 默认翻译原始语言选项
- 默认翻译目标语言选项
- 结果窗口切换文本 OCR 引擎选项(目前只有一个选项)
- 结果窗口切换识别语言选项
- 结果窗口切换翻译语言选项
- 公式 OCR
- 添加 Bing OCR 引擎(效果一般,排版也较差,仅支持识别纯公式)
- 结果窗口切换公式 OCR 引擎选项
- 选项
Basic_TextOCREngine
Basic_FormulaOCREngine
Basic_OCRCToolTips
TextOCR_TranslateFrom
TextOCR_TranslateTo
TextOCR_TranslateLanguages
块与以下默认键值自动检测
:auto
简体中文
:zh-CN
英文
:en
BaiduOCR_LanguageType
BaiduOCR_LanguageTypes
块与以下默认键值中英文混合
:CHN_ENG
英文
:ENG
更改
- 通用
- 基础设置与引擎设置分离
- 文本 OCR
- 百度 OCR
- 结果窗口调整
- 百度 OCR
- 公式 OCR
- 结果窗口调整
- 破坏:选项
Basic_BaiduOCROnOff
->Basic_TextOCROnOff
Basic_MathpixOCROnOff
->Basic_FormulaOCROnOff
Baidu
块 ->BaiduOCR
块Baidu_Hotkey
->Basic_TextOCRHotkey
Baidu_APIKey
->BaiduOCR_APIKey
Baidu_SecretKey
->BaiduOCR_SecretKey
Baidu_Token
->BaiduOCR_Token
Baidu_TokenExpiration
->BaiduOCR_TokenExpiration
Baidu_RecognitionType
->BaiduOCR_ProbabilityType
Baidu_ProbabilityType
->BaiduOCR_ProbabilityType
Baidu_FormatStyle
->TextOCR_FormatStyle
Baidu_PunctuationStyle
->TextOCR_PunctuationStyle
Baidu_SpaceStyle
->TextOCR_SpaceStyle
Baidu_TranslationEngine
->TextOCR_TranslateEngine
Baidu_SearchEngine
->TextOCR_SearchEngine
Baidu_CloseAndSearch
->TextOCR_CloseAndSearch
Baidu_SearchEngines
块 ->TextOCR_SearchEngines
块Mathpix
块 ->MathpixOCR
块Mathpix_Hotkey
->Basic_FormulaOCRHotkey
Mathpix_APIKey
->MathpixOCR_APIKey
Mathpix_AppKey
->MathpixOCR_AppKey
Mathpix_InlineStyle
->FormulaOCR_InlineStyle
Mathpix_DisplayStyle
->FormulaOCR_DisplayStyle
Mathpix_DefaultSelect
->FormulaOCR_DefaultSelect
移除
- 文本 OCR
- 腾讯翻译相关选项
- 百度 OCR
- 默认翻译引擎选项
- 默认翻译类型选项
- 选项
Advance_TencentTranslationSecretID
Advance_TencentTranslationSecretKey
Baidu_TranslationType
修复
- 通用
- AutoHotkey 运行弹出内部错误的问题(只是掩盖了问题,没有解决)
- 更改文本或公式 OCR 的热键时会使关闭的热键重新启用的问题
- 文本 OCR
- 百度 OCR
- 多段落内容翻译只保留第一段落的问题
- 结果为空时置信度计算出现除 0 的问题
- 百度 OCR
- 公式 OCR
- Mathpix OCR
- 文本公式中数学分隔符与设置不符的问题
- 换行符
\\
被错误地处理为\
的问题 - 行内公式出现换行的问题
- 结果窗口刚弹出时全选的美观问题
- Mathpix OCR
由 GitHub Copilot 生成的翻译
Generated by GitHub Copilot
Changelog
These days, I have been focusing on the development of OCRC v2.1.0 (except for going out for a day). The update of this version is quite huge, almost rewriting the structure, and the configuration file has also been subverted. In fact, it can be released as 3.0.0. But I still decided to release it as 2.1.0, because the name of the branch I started with was 2.1.0, and I think 3.0.0 should be a bigger version, there should be more new features, rather than just refactoring. Of course, in addition to the modification of the structure, some new functions have also been introduced, which makes OCRC more extensible and will make it easier to access new OCR engines in the future.
Added
- General
- Setting interface tool tip switch option
- Text OCR and formula OCR engine setting options
- Text OCR
- Default translation source language option
- Default translation target language option
- Baidu OCR
- Recognition language option
- Default translation source language option
- Default translation target language option
- Result window switch Text OCR engine option (currently only one option)
- Result window switch recognition language option
- Result window switch translation language option
- Formula OCR
- Add Bing OCR engine (the effect is general, the typesetting is also poor, and only pure formulas are supported)
- Result window switch formula OCR engine option
- Options
Basic_TextOCREngine
Basic_FormulaOCREngine
Basic_OCRCToolTips
TextOCR_TranslateFrom
TextOCR_TranslateTo
TextOCR_TranslateLanguages
section with the following default key values自动检测
:auto
简体中文
:zh-CN
英文
:en
BaiduOCR_LanguageType
BaiduOCR_LanguageTypes
section with the following default key values中英文混合
:CHN_ENG
英文
:ENG
Changed
- General
- Basic settings are separated from engine settings
- Text OCR
- Baidu OCR
- Result window adjustment
- Baidu OCR
- Formula OCR
- Result window adjustment
- BREAKING: Options
Basic_BaiduOCROnOff
->Basic_TextOCROnOff
Basic_MathpixOCROnOff
->Basic_FormulaOCROnOff
Baidu
section ->BaiduOCR
sectionBaidu_Hotkey
->Basic_TextOCRHotkey
Baidu_APIKey
->BaiduOCR_APIKey
Baidu_SecretKey
->BaiduOCR_SecretKey
Baidu_Token
->BaiduOCR_Token
Baidu_TokenExpiration
->BaiduOCR_TokenExpiration
Baidu_RecognitionType
->BaiduOCR_ProbabilityType
Baidu_ProbabilityType
->BaiduOCR_ProbabilityType
Baidu_FormatStyle
->TextOCR_FormatStyle
Baidu_PunctuationStyle
->TextOCR_PunctuationStyle
Baidu_SpaceStyle
->TextOCR_SpaceStyle
Baidu_TranslationEngine
->TextOCR_TranslateEngine
Baidu_SearchEngine
->TextOCR_SearchEngine
Baidu_CloseAndSearch
->TextOCR_CloseAndSearch
Baidu_SearchEngines
section ->TextOCR_SearchEngines
sectionMathpix
section ->MathpixOCR
sectionMathpix_Hotkey
->Basic_FormulaOCRHotkey
Mathpix_APIKey
->MathpixOCR_APIKey
Mathpix_AppKey
->MathpixOCR_AppKey
Mathpix_InlineStyle
->FormulaOCR_InlineStyle
Mathpix_DisplayStyle
->FormulaOCR_DisplayStyle
Mathpix_DefaultSelect
->FormulaOCR_DefaultSelect
Removed
- Text OCR
- Tencent translation related options
- Baidu OCR
- Default translation engine option
- Default translation type option
- Options
Advance_TencentTranslationSecretID
Advance_TencentTranslationSecretKey
Baidu_TranslationType
Fixed
- General
- AutoHotkey runs the problem of popping up internal errors (just masking the problem without solving it)
- Changing the hotkey of text or formula OCR will re-enable the closed hotkey
- Text OCR
- Baidu OCR
- The problem of retaining only the first paragraph of multi-paragraph content translation
- The problem of confidence calculation when the result is empty
- Baidu OCR
- Formula OCR
- Mathpix OCR
- The problem that the mathematical separator in the text formula does not match the setting
- The problem that the line break character
\\
is incorrectly processed as\
- The problem of line breaks in inline formulas
- The aesthetic problem of selecting all when the result window just pops up
- Mathpix OCR
具体更新 Detailed
OCRC v2.0.2
更新日志
添加
- 百度 OCR
- 右键快速搜索支持
修复
- 百度 OCR
- 「翻译结果被错误地注入 OCR 结果」的问题
由 GitHub Copilot 生成的翻译
Generated by GitHub Copilot
Changelog
Added
- Baidu OCR
- Right-click quick search support
Fixed
- Baidu OCR
- The problem of "translation results being incorrectly injected into OCR results"
具体更新 Detailed
OCRC v2.0.1
更新日志
OCRC v1 的最新稳定版 v1.2.2 自发布已经 16 个月了,v2.0.0-beta.1 重构也已经过去两周了。在过去的 6 个 beta 版本(发布的有 beta.1 和 beta.5)中,我又进行了功能的增加、选项的修改及错误的修复等内容。而现在终于到了发布稳定版的时候了。
添加
- 通用
- 是否在未检测到截图时弹出提示的选项
- 设置界面帮助提示
- 百度 OCR
- 选项
Basic_SnipWarning
Advance_GoogleTranslationProxy
Advance_TencentTranslationSecretID
Advance_TencentTranslationSecretKey
Baidu_TranslationEngine
Baidu_CloseAndSearch
Baidu_SearchEngines
块与以下默认键值百度
:https://www.baidu.com/s?wd=@W
谷歌
:https://www.google.com/search?q=@W
必应
:https://cn.bing.com/search?q=@W
百度百科
:https://baike.baidu.com/item/@W
维基百科
:https://zh.wikipedia.org/wiki/@W
更改
- 通用
- 破坏:重构代码(将代码由 v1.1 转为 v2)
- 使用 thqby 的由 C++ 编写的
ahk-json.dll
进行 JSON 解析与转换,也许可以提高运行效率
- 使用 thqby 的由 C++ 编写的
- 破坏:将配置文件名称由
OCRC.privacy.ini
转为OCRC.ini
- 使用
SnippingTool
代替ScreenClippingHost
作为默认截图工具。使其无需依赖于快捷键 Win + Shift + S
- 破坏:重构代码(将代码由 v1.1 转为 v2)
- 破坏:选项
Baidu_RecogType
->Baidu_RecognitionType
Baidu_ProbType
->Baidu_ProbabilityType
Baidu_PuncStyle
->Baidu_PunctuationStyle
Baidu_TranType
->Baidu_TranslationType
移除
- 通用
- 是否在重要设置更改后自动重启的选项
- 百度 OCR
- 移除了搜索的镜像网站(谷歌镜像与维基镜像)
- Everything 配置相关选项
- 破坏:选项
Basic_AutoReloadOnOff
Advance_EverythingOnOff
Advance_EverythingPath
由 GitHub Copilot 生成的翻译
Generated by GitHub Copilot
Changelog
It has been 16 months since the latest stable version of OCRC v1.2.2 was released, and it has been two weeks since the v2.0.0-beta.1 refactoring. In the past 6 beta versions (beta.1 and beta.5 were released), I have added functions, modified options, and fixed errors. And now it's time to release the stable version.
Added
- General
- Option to pop up a prompt when no screenshot is detected
- Help prompt on the settings page
- Baidu OCR
- Option to close the result window immediately after searching
- Custom search engine support (see #21 for details)
- Right-click quick search support (see #21 for details)
- Translation support (see #23 for details)
- Google Translate (supported, using two APIs. Proxy can be configured)
- Tencent Translation (not supported yet. SecretID and SecretKey need to be configured)
- Options
Basic_SnipWarning
Advance_GoogleTranslationProxy
Advance_TencentTranslationSecretID
Advance_TencentTranslationSecretKey
Baidu_TranslationEngine
Baidu_CloseAndSearch
Baidu_SearchEngines
section and the following default key values百度
:https://www.baidu.com/s?wd=@W
谷歌
:https://www.google.com/search?q=@W
必应
:https://cn.bing.com/search?q=@W
百度百科
:https://baike.baidu.com/item/@W
维基百科
:https://zh.wikipedia.org/wiki/@W
Changed
- General
- BREAKING: REFACTOR code (convert code from v1.1 to v2)
- Use
ahk-json.dll
written by thqby to parse and convert JSON, which is written in C++. It may improve runtime efficiency
- Use
- BREAKING: Convert the configuration file name from
OCRC.privacy.ini
toOCRC.ini
- Use
SnippingTool
instead ofScreenClippingHost
as the default screenshot tool. So that it does not depend on the shortcut Win + Shift + S
- BREAKING: REFACTOR code (convert code from v1.1 to v2)
- BREAKING: Options
Baidu_RecogType
->Baidu_RecognitionType
Baidu_ProbType
->Baidu_ProbabilityType
Baidu_PuncStyle
->Baidu_PunctuationStyle
Baidu_TranType
->Baidu_TranslationType
Removed
- General
- Option to automatically restart after important settings are changed
- Baidu OCR
- Removed search mirror sites (Google mirror and Wikipedia mirror)
- Everything configuration related options
- BREAKING: Options
Basic_AutoReloadOnOff
Advance_EverythingOnOff
Advance_EverythingPath
具体更新 Detailed
[beta] OCRC v2.0.0-beta.5
更新日志
添加
- 通用
- 选项
BaiduSearchEngine
块与以下默认键值百度
:https://www.baidu.com/s?wd=@W
谷歌
:https://www.google.com/search?q=@W
必应
:https://cn.bing.com/search?q=@W
百度百科
:https://baike.baidu.com/item/@W
维基百科
:https://zh.wikipedia.org/wiki/@W
移除
- 选项
- 破坏:
Advance_EverythingOnOff
- 破坏:
Advance_EverythingPath
- 破坏:
更改
- 通用
- 使用
SnippingTool
代替ScreenClippingHost
作为默认截图工具。使其无需依赖于快捷键 Win + Shift + S
- 使用
修复
- 通用
- 修复默认截图工具更改后无法成功截图的问题
Changelog
Added
- General
- Options
BaiduSearchEngine
section with default keys and values百度
:https://www.baidu.com/s?wd=@W
谷歌
:https://www.google.com/search?q=@W
必应
:https://cn.bing.com/search?q=@W
百度百科
:https://baike.baidu.com/item/@W
维基百科
:https://zh.wikipedia.org/wiki/@W
Removed
- Options
- BREAKING:
Advance_EverythingOnOff
- BREAKING:
Advance_EverythingPath
- BREAKING:
Changed
- General
- Use
SnippingTool
instead ofScreenClippingHost
as default snipping tool, which makes it not need to depend on shortcut key Win + Shift + S
- Use
Fixed
- General
- Fix "Cann't succeed in snippings" bug after default snipping tool is changed
具体更新 Detailed
[beta] OCRC v2.0.0-beta.1
更新日志
更改
-
通用
- 未经严密测试:重构代码(将代码由 v1.1 转为 v2)
- 使用 thqby 的由 C++ 编写的
ahk-json.dll
进行 JSON 解析与转换,也许可以提高运行效率
- 使用 thqby 的由 C++ 编写的
- 破坏:将配置文件名称由
OCRC.privacy.ini
转为OCRC.ini
- 破坏:更改了部分选项的名称
Advance_ThirdPartyScreenShotOnOff
->Advance_ThirdPartyScreenshotOnOff
Advance_ThirdPartyScreenShotPath
->Advance_ThirdPartyScreenshotPath
Baidu_RecogType
->Baidu_RecognitionType
Baidu_ProbType
->Baidu_ProbabilityType
Baidu_PuncStyle
->Baidu_PunctuationStyle
- 未经严密测试:重构代码(将代码由 v1.1 转为 v2)
-
Baidu
- 移除了搜索的镜像网站(谷歌镜像与维基镜像)
Changelog
Changed
-
General
- UNTESTED:Refactor(Convert codes from v1.1 to v2)
- Use thqby's
ahk-json.dll
written by C++ to achieve the parse and stringify, which maybe enhance performance
- Use thqby's
- BREAKING: Rename configure name from
OCRC.privacy.ini
toOCRC.ini
- BREAKING: Change some names of setting
Advance_ThirdPartyScreenShotOnOff
->Advance_ThirdPartyScreenshotOnOff
Advance_ThirdPartyScreenShotPath
->Advance_ThirdPartyScreenshotPath
Baidu_RecogType
->Baidu_RecognitionType
Baidu_ProbType
->Baidu_ProbabilityType
Baidu_PuncStyle
->Baidu_PunctuationStyle
- UNTESTED:Refactor(Convert codes from v1.1 to v2)
-
Baidu
- Remove mirror sites in search engines(Google mirror and Wiki mirro)
具体更新 Detailed
OCRC v1.2.2
更新日志 Changelog
更改 Changed
- 通用
- 将等待剪贴板时间从 0.001 秒改为 0.1 秒
- 将图标名称从 "OCRC_icon.ico" 改为 "OCRC.ico"
- Baidu
- 在格式化标点与空格前计算置信度
- Mathpix
- 仅当文本公式与行内公式不同且其不包括 LaTeX 所包含的 "\begin{xxx}" 时才显示它
- General
- Change clipboard wait time from 0.001s to 0.1s
- Rename icon name from "OCRC_icon.ico" to "OCRC.ico"
- Baidu
- Calculate probability before formatting punctuation and space
- Mathpix
- Show TextResult only when it is different from InlineResult and it doesn't contain "\begin{xxx}" which LaTeXResult does
具体更新 SpecificChange
OCRC v1.2.1
更新日志 Changelog
增加 Added
- 通用
- 自定义 Everything 路径支持 (1.2.0)
- 截图时间上限自定义支持
- 截图缓冲时间自定义支持
- 重要选项更改自动重启选项支持
- General
- Custom Everything path support (1.2.0)
- Screenshot maximum time support
- Screenshot buffer time support
- Option of auto reload after crucial change
修复 Fixed
- General