tisfeng
tisfeng
赞 👍
We need this feature 👍
看起来和 https://github.com/tisfeng/Easydict/issues/461 功能类似,但由于目前的截图功能模块不方便修改和扩展,我们计划后面使用 Swift 重写它,这可能需要一段时间。 另外一个问题是,我还没有构思好这个【固定屏幕区域截图翻译功能】的产品设计,不知道以什么方式添加到 Easydict 😓 如果你好的建议,或是其他同类应用有类似的功能,欢迎分享。
[2.13.0](https://github.com/tisfeng/Easydict/releases/tag/2.13.0) 版本重写了截图功能, 已添加快捷选择上一次截图区域功能。
> 支持 也非常需要这个功能 另外想问一下现在有什么通过执行一个命令的方式去调出这个划词翻译/输入翻译/截图翻译窗口的吗?类似的bob里面提供Apple script的方式, pot里面提供curl 一个本地端口的方式 Easydict 支持 [URL Scheme](https://github.com/tisfeng/Easydict?tab=readme-ov-file#url-scheme) 调用。
目前 URL Scheme 只支持调用 Easydict 查询文本:easydict://query?text=good 。 如果你想 shell 调用,你先为 Easydict 设置好快捷键,比如划词翻译 Opt + D,然后脚本使用模拟这个快捷键就行。
Sad 😔 那暂时先放这儿。 如果有小伙伴对这个有兴趣,可以留言接手一下。
我来用 [vapor](https://github.com/vapor/vapor) 尝试一下。
[2.8.0](https://github.com/tisfeng/Easydict/releases/tag/2.8.0) 版本目前已支持 translate 和 ocr 两个接口。
还没写文档,,服务类型在这里 https://github.com/tisfeng/Easydict/blob/2d0cf752df5fd3e7f31e5752409c801744d83f2a/Easydict/objc/Service/Model/EZEnumTypes.m#L13 ``` NSString *const EZServiceTypeGoogle = @"Google"; NSString *const EZServiceTypeBaidu = @"Baidu"; NSString *const EZServiceTypeYoudao = @"Youdao"; NSString *const EZServiceTypeApple = @"Apple"; NSString *const EZServiceTypeDeepL = @"DeepL"; NSString *const...