Skip to content

OCRC v2.0.1

Choose a tag to compare

@pilgrimlyieu pilgrimlyieu released this 05 Sep 03:55
· 118 commits to master since this release
224d63c

更新日志

OCRC v1 的最新稳定版 v1.2.2 自发布已经 16 个月了,v2.0.0-beta.1 重构也已经过去两周了。在过去的 6 个 beta 版本(发布的有 beta.1 和 beta.5)中,我又进行了功能的增加、选项的修改及错误的修复等内容。而现在终于到了发布稳定版的时候了。

添加

  • 通用
    • 是否在未检测到截图时弹出提示的选项
    • 设置界面帮助提示
  • 百度 OCR
    • 是否在搜索后立即关闭结果窗口的选项
    • 自定义搜索引擎支持(详见 #21
    • 右键快速搜索支持(详见 #21
    • 翻译支持(详见 #23
      • 谷歌翻译(支持,使用两个 API。可配置代理)
      • 腾讯翻译(尚不支持。需配置 SecretID 和 SecretKey)
  • 选项
    • 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 解析与转换,也许可以提高运行效率
    • 破坏:将配置文件名称由 OCRC.privacy.ini 转为 OCRC.ini
    • 使用 SnippingTool 代替 ScreenClippingHost 作为默认截图工具。使其无需依赖于快捷键 Win + Shift + S
  • 破坏:选项
    • 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
    • BREAKING: Convert the configuration file name from OCRC.privacy.ini to OCRC.ini
    • Use SnippingTool instead of ScreenClippingHost as the default screenshot tool. So that it does not depend on the shortcut Win + Shift + S
  • 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

OCRC-v1.2.2...OCRC-v2.0.1