9 Star 143 Fork 26

ByLiangCheng/TTime

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

TTime

🚀 一款简洁高效的输入、截图、划词翻译软件

(中文 | English)

简介

主要功能:输入翻译截图翻译划词翻译悬浮球翻译截图OCR静默截图OCR剪贴板监听翻译

界面

明亮模式

暗黑模式

方式 描述 预览
截图翻译 按下截图翻译快捷键(默认 Alt + W),截取需要翻译的区域 截图翻译
划词翻译 选中需要翻译的文本之后,按下划词翻译快捷键即可(默认 Alt + E 划词翻译
输入翻译 按下输入翻译快捷键(默认 Alt + Q),输入需要翻译的文本,Enter 键翻译 输入翻译
悬浮球翻译 选中需要翻译的文本之后,点击悬浮球图标即可 (默认关闭,需要自行在设置中开启) 悬浮球翻译
截图OCR 按下此快捷键将会根据你截图区域进行文字识别 截图OCR
截图静默OCR 按下此快捷键将会根据你截图区域进行文字识别,识别的内容自动写入剪贴板不会打开OCR窗口 截图静默OCR

目前已集成翻译/文字识别服务

翻译源/文字识别申请参考

  • 翻译源

    • TTime (内置)
    • Google翻译 (内置)
    • DeepL (内置) = DeepLX
    • Bing (内置)
    • Bing词典翻译 (内置)
    • 腾讯交互翻译 (内置)
    • 小牛翻译 (内置)
    • 简明英汉字典-离线 (内置)
    • 腾讯翻译君
    • 百度翻译
    • 阿里翻译
    • Google翻译
    • OpenAI翻译(ChatGPT)
    • AzureOpenAI翻译
    • 有道翻译
    • DeepL翻译
    • 火山翻译
    • 小牛翻译
    • 彩云翻译
    • Papago翻译
  • 文字识别

    • TTime
    • TTime在线
    • 百度OCR
    • 百度图片翻译OCR
    • 火山OCR
    • Ocr Space
    • 讯飞OCR
    • 腾讯云OCR
    • 腾讯云图片翻译OCR

开发指南

开发环境

NodeJs Version >= 16

Npm Version >= 8

依赖下载

npm run npm-i-extend-modules-update

项目启动

npm run dev

项目打包

npm run build:win
npm run build:win:portable
npm run build:mac

简单快速新增翻译/OCR源

新增翻译/OCR源新增很简单,你只需要有一些JS/TS基础和接口联调能力就可以集成 ,以下以小牛翻译为例

1.新增类型

编辑文件添加一个翻译源枚举

src/common/enums/TranslateServiceEnum.ts

此处需要注意:当翻译源枚举定义后,后续的文件名称都需要按照枚举名称方式命名,具体参照如下步骤的命名规则

static NIU_TRANS = 'NiuTrans'

2.新增Logo

把Logo文件复制到此文件路径下

src/renderer/src/assets/translate/NiuTransLogo.png

3.新增翻译/OCR源信息

新增翻译/OCR源信息文件

src/common/channel/translate/info/NiuTransInfo.ts

4.新增翻译/OCR源实现

新增翻译/OCR源接口实现

src/main/service/channel/interfaces/NiuTransRequest.ts

新增翻译/OCR源接口调用回调页面结果

src/main/service/channel/product/translate/NiuTransChannel.ts

感谢

# TTime Translation Software Open Source License The TTime Translation Software is licensed under the Apache License 2.0, with the following additional conditions: 1. TTime translation software allows commercial use. But you must contact the software manufacturer to obtain a commercial license 2. Unless authorized in writing by TTime Translation Software, you are not allowed to use the source code of TTime Translation Software to operate services similar to TTime Translation Software. 3. When using TTime Translation Software, you must not remove or modify any trademarks or copyright information within the software. For licensing inquiries, please contact support@timerecord.cn via email. 4. As a contributor, you should acknowledge that your contributed code: a. The software producer reserves the right to adjust the open-source agreement to be either more stringent or more permissive. b. Can be utilized for commercial purposes, including TTime Translation Software's cloud-based services. Other than these additional conditions, all other rights and restrictions adhere to the Apache License 2.0. For more comprehensive information, please refer to the complete version of the Apache License 2.0. The product's interactive design is protected by an appearance patent. © 2023 TTime Translate. --- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

简介

🚀 一款简洁、高效、高颜值的输入、截图、划词翻译软件 展开 收起
TypeScript 等 6 种语言
Apache-2.0
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ByLiangCheng/TTime.git
git@gitee.com:ByLiangCheng/TTime.git
ByLiangCheng
TTime
TTime
main

搜索帮助