Borber / Tran

简洁, 快速, 划词翻译
https://tran.borber.top
GNU General Public License v3.0
490 stars 21 forks source link

[Feature] Add command-line interface support #190

Open cliouo opened 3 months ago

cliouo commented 3 months ago

增加命令行传入待翻译文本调用。 Added command line call to pass in text to be translated.

使用场景: 目前没有,先挂着等我以后想到场景可能需要。 Usage scenarios: None at the moment, just wait until I think of scenarios where I may need it.

一个可能的场景: OCR识别后的文本直接传入翻译工具。 A possible scenario: The OCR-recognized text is directly passed to the translation tool.

http监听会不会太臃肿

Borber commented 3 months ago

仔细想了一下, 目前的操作逻辑已经可以满足了的其实, 如果时 ocr, 复制完文本之后, 只要不选中其他文本, 直接双击快捷键就可以翻译剪贴板里的文本, 所以不需要一个额外的调用