Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
ripperhe committed Aug 4, 2022
0 parents commit d70cf2a
Show file tree
Hide file tree
Showing 22 changed files with 1,904 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: 反馈问题
about: Bob 安装或使用出现异常
title: ''
labels: 'bug'
---

<!--
⚠️ 反馈前请确保已阅读
⚠️ 反馈前请确保已阅读
⚠️ 反馈前请确保已阅读
1. 请确保你已经认真阅读了使用教程(https://bobtranslate.com/guide),可能你的问题不是「问题」。
2. 请查看常见问题列表(https://bobtranslate.com/faq)里面是否有你的问题。
3. 请在 issues 页面搜索你的问题,可能已被解决。
4. 如果仍旧有问题,请填写模板描述问题,以便大家理解、定位和解决问题。
-->

<!-- 这是隐藏的信息 -->
<!-- 👆👆👆这样括起来的信息将被隐藏,填写时注意不要写在里面。 -->
<!-- 点击编辑器上方的 preview 可预览你填写的效果 -->

## 运行环境
* Device: <!--e.g. MacBook Pro (Retina, 15-inch, Mid 2015)-->
* macOS: <!--e.g. 10.15.3-->
* Bob Version: <!--e.g. 0.3.0-->

## 描述问题
<!--请简洁清晰地描述问题,如果涉及 UI,希望能够提供截图-->
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 功能建议
about: 请求实现新功能或改进已有功能
title: ''
labels: 'enhancement'
---

<!--
⚠️ 反馈前请确保已阅读
⚠️ 反馈前请确保已阅读
⚠️ 反馈前请确保已阅读
1. 请确保你已经认真阅读了使用教程(https://bobtranslate.com/guide),可能你的建议已经实现。
2. 请查看常见问题列表(https://bobtranslate.com/faq)里面是否有你的问题。
3. 请在 issues 页面搜索你的建议,很可能已经有人提了。
-->

<!-- 这是隐藏的信息 -->
<!-- 👆👆👆这样括起来的信息将被隐藏,填写时注意不要写在里面。 -->
<!-- 点击编辑器上方的 preview 可预览你填写的效果 -->
32 changes: 32 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Sync

on:
push:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Sync to Gitee
uses: ripperhefork/git-mirror-action@master
env:
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with:
# 注意替换为你的 GitHub 源仓库地址
source-repo: "[email protected]:ripperhe/Bob.git"
# 注意替换为你的 Gitee 目标仓库地址
destination-repo: "[email protected]:ripperhe/Bob.git"

- name: Build Gitee Pages
uses: ripperhefork/gitee-pages-action@master
with:
# 注意替换为你的 Gitee 用户名
gitee-username: ripperhe
# 注意在 Settings->Secrets 配置 GITEE_PASSWORD
gitee-password: ${{ secrets.GITEE_PASSWORD }}
# 注意替换为你的 Gitee 仓库,仓库名严格区分大小写,请准确填写,否则会出错
gitee-repo: ripperhe/Bob
# 部署目录
directory: docs
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
107 changes: 107 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
<p align="center">
<img src="https://cdn.ripperhe.com/oss/master/2019/1222/bob-logo.png" width=240 />
</p>
<p align="center">
<a href="https://bobtranslate.com"><img src="https://img.shields.io/badge/%E5%AE%98%E6%96%B9%E7%BD%91%E7%AB%99-bobtranslate.com-brightgreen?logo=Safari" alt="Website" /></a>
<a href="https://bobtranslate.com/general/contact.html"><img src="https://img.shields.io/badge/QQ%20%E7%BE%A4-459542798-blue?logo=Tencent%20QQ" alt="QQ 群" /></a>
</p>

# Bob

Bob 是一款 macOS 平台 **翻译****OCR** 软件。

翻译功能:

- [x] 划词翻译
- [x] 截图翻译
- [x] 输入翻译
- [x] 翻译多开
- [x] 自定义插件
- [x] 自动识别语种
- [x] 驼峰拆分、蛇形拆分
- [x] AppleScript 调用
- [x] PopClip 调用

OCR 功能:

- [x] 截图 OCR
- [x] 静默截图 OCR
- [x] 访达选图 OCR
- [x] 离线识别
- [x] 连续识别
- [x] 二维码识别
- [x] 自动复制
- [x] 智能分段

## 安装

系统要求 **macOS 10.13** 以上,从 Mac App Store 安装。

[![Download on the Mac App Store](https://cdn.ripperhe.com/oss/master/2022/0626/Download_on_the_Mac_App_Store_Badge_US-UK_RGB_blk_092917.svg)](https://apps.apple.com/cn/app/id1630034110#?platform=mac)

如果是社区版老用户,请查看 [这篇文档](https://bobtranslate.com/blog/2022-07-03-v1-coming.html)

## 使用方法

详细使用方法请直接查看文档 [👉 点此跳转文档](https://bobtranslate.com)

Bob 是一个菜单栏软件,启动之后,菜单栏会出现一个图标,点击菜单选项即可触发相应的功能,如下所示:

<img src="https://cdn.ripperhe.com/oss/master/2022/0627/status_item.jpg" alt="statesitem.jpg" width=548>

### 翻译功能

| 方式 | 描述 | 预览 |
| :---: | :---: | :---: |
| 划词翻译 | 选中需要翻译的文本之后,按下划词翻译快捷键即可(默认 `⌥ + D`| ![划词翻译-句子](https://cdn.ripperhe.com/oss/master/2022/0508/translate_selection.gif) |
| 截图翻译 | 按下截图翻译快捷键(默认 `⌥ + S`),截取需要翻译的区域 | ![截图翻译-句子](https://cdn.ripperhe.com/oss/master/2022/0508/translate_snip.gif) |
| 输入翻译| 按下输入翻译快捷键(默认 `⌥ + A`),输入需要翻译的文本,`Enter` 键翻译 | ![输入翻译-单词](https://cdn.ripperhe.com/oss/master/2022/0508/translate_input.gif) |
| PopClip 调用 | 选中需要翻译的文本之后,点击 [PopClip](https://pilotmoon.com/popclip) 插件图标即可,详情见 [PopClip 调用](https://bobtranslate.com/guide/integration/popclip.html) | ![插件翻译-句子](https://cdn.ripperhe.com/oss/master/2022/0508/translate_popclip.gif) |

### OCR 功能

**截图识别**

* 按下「截图 OCR」快捷键(默认 `⇧ + ⌥ + S`)或者点击菜单栏 Bob 图标菜单中的「截图 OCR」
* 选中屏幕上的对应的位置
* 松手即可开始识别

<img src="https://cdn.ripperhe.com/oss/master/2022/0507/snip_ocr.gif" alt="截图 OCR" width=660 />

**静默截图 OCR**

* 按下「静默截图 OCR」快捷键(没有设置默认快捷键,可去「 Bob 偏好设置-OCR-OCR 设置」添加)或者点击菜单栏 Bob 图标菜单中的「静默截图 OCR」
* 选中屏幕上的对应的位置
* 松手即可开始识别

「静默截图 OCR」不会自动显示 OCR 窗口,识别完成后直接将文本拷贝到剪切板。

**访达选图 OCR**

按下「访达选图 OCR」快捷键(没有设置默认快捷键,可去「 Bob 偏好设置-OCR-OCR 设置」添加)或者点击菜单栏 Bob 图标菜单中的「访达选图 OCR」。

在弹出的访达窗口中选中对应的图片文件(可以一次性选中多张),点击右下角「开始识别」即可。

<img src="https://cdn.ripperhe.com/oss/master/2022/0507/file_ocr.jpg" alt="访达选图 OCR" width=600 />

## 感谢

* 感谢 [@isee15](https://github.com/isee15/Capture-Screen-For-Multi-Screens-On-Mac) 提供最初版本截图功能的思路
* 感谢 [@可口可乐](https://github.com/wakewon) 长期帮忙解决用户反馈
* 感谢 [@ix4n33](https://github.com/IsaacXen) 不定期提供技术支持
* 感谢朋友们的赞赏 [赞赏列表](https://bobtranslate.com/general/reward.html)
* 感谢作者们发文支持 Bob(时间倒序)
* @奇客派:[macOS 翻译工具 Bob 大更新:支持更多翻译服务,增强 OCR 功能](https://sspai.com/post/62721)
* @鹿額:[截图/划词/输入都能查,快捷高效的 macOS 翻译工具: Bob](https://sspai.com/post/58249)
* @Newlearnerの自留地:[Bob:一款 macOS 全局翻译软件,支持划词翻译和截图翻译](https://t.me/NewlearnerChannel/3329)

## 优秀软件推荐

* [uPic: 一个强大的图床工具](https://github.com/gee1k/uPic)
* [MWeb Pro: 专业的 Markdown 写作、记笔记、静态博客生成软件](https://zh.mweb.im/)

## 最后

Bob 不是开源软件,目前本仓库主要用于提供反馈渠道。

[👉 点此查看联系方式](https://bobtranslate.com/general/contact.html)

0 comments on commit d70cf2a

Please sign in to comment.