Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 7, 2022
1 parent 841a671 commit 609b362
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 45 deletions.
Binary file added assets/epub.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/pdf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 48 additions & 45 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,60 @@

# <img src="https://github.com/FilipePS/Traduzir-paginas-web/blob/master/src/icons/icon-128.png" height="50"> Translate Web Pages
# Immersive Translate

Translate your page in real time using Google or Yandex.
Let's experience immersive web translation, with Google and Yandex under the hood, with support for both firefox and chrome

[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/FilipePS/Traduzir-paginas-web?label=latest%20version&sort=semver)](https://github.com/FilipePS/Traduzir-paginas-web/releases)
[![GitHub release date](https://img.shields.io/github/release-date/FilipePS/Traduzir-paginas-web?labely)](https://github.com/FilipePS/Traduzir-paginas-web/latest)
[![GitHub issues](https://img.shields.io/github/issues/FilipePS/Traduzir-paginas-web?color=red)](https://github.com/FilipePS/Traduzir-paginas-web/issues)
[![GitHub license](https://img.shields.io/github/license/FilipePS/Traduzir-paginas-web?color=lightgrey)](https://github.com/FilipePS/Traduzir-paginas-web/blob/master/LICENSE)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/immersive-translate/immersive-translate?label=latest%20version&sort=semver)](https://github.com/immersive-translate/releases)
[![GitHub release date](https://img.shields.io/github/release-date/immersive-translate/immersive-translate?labely)](https://github.com/immersive-translate/immersive-translate/latest)
[![GitHub issues](https://img.shields.io/github/issues/immersive-translate/immersive-translate?color=red)](https://github.com/immersive-translate/immersive-translate/issues)
[![GitHub license](https://img.shields.io/github/license/immersive-translate/immersive-translate?color=lightgrey)](https://github.com/immersive-translate/immersive-translate/blob/master/LICENSE)


说明: 这是我修改的体验增强版,支持双语显示,支持只翻译网页里的文章区域。本来是验证下概念,但是收到了不少关注,所以我最近会完善下相关功能,多多测试后,看下[上游](https://github.com/FilipePS/Traduzir-paginas-web)作者是否愿意合并, 如果这个方向不是上游作者乐见的,那么我会单独发布到商店里。
说明: 该扩展Fork自[TWP](https://github.com/immersive-translate/immersive-translate)插件,我为其添加了以下功能:

目前已适配:
- 双语显示
- 只翻译网页里的内容区域,这极大的增强了翻译的阅读体验,而不是像之前那样网页的所有元素都被翻译,类似浏览器的阅读模式,所以该插件被重新命名为“沉浸式翻译”
- 为常用网站做了定制优化,比如推特,Reddit,Hacker News等,我希望这个插件足够通用,不需要为绝大多数网站做定制,但是往往有一些网站由于不规范,或者非内容类网站,这些网站单独优化后体验更好,这里应该会持续优化,如果有常用的网站翻译显示不佳,欢迎在[Isuee](https://github.com/theowenyoung/Traduzir-paginas-web/issues)中提出
- 支持PDF文件双语对照翻译
- 配合epub在线阅读网站<https://1paragraph.app/> 即可实现双语阅读国外电子书

- pdf文件双语对照翻译
- Twitter
- Reddit,(包括old.reddit.com)
- Hacker News
- 其他大多数强内容网站
该扩展支持选择谷歌翻译引擎或Yandex翻译引擎,完全免费使用。同时使用Bing,Deepl进行选中文本翻译。

![twitter](assets/twitter.png)
Firefox 已发布到商店,可以[直接下载](https://addons.mozilla.org/en-US/firefox/addon/immersive-translate/)使用,其他chrome类平台目前需要手动安装该扩展(正在加速发布商店中)。

![reddit](assets/reddit.png)

![hackernews](assets/hackernews.png)

![ft](assets/ft.png)
Firefox商店[沉浸式翻译](https://addons.mozilla.org/en-US/firefox/addon/immersive-translate/)已上架, chrome,edge商店正在进行中。

正在适配:
目前依然处于Alpha阶段,但是常用内容网站使用上已经没有问题~在[Telegram 沉浸式插件讨论组](https://t.me/+rq848Z09nehlOTgx)中经常得到有用都反馈,如果你有反馈,也可以在[群里](https://t.me/+rq848Z09nehlOTgx)提出。

- Youtube 评论区
- Github
[Release页面](https://github.com/theowenyoung/Traduzir-paginas-web/releases)会有一个nightly版本频繁的被构建,所以建议喜欢体验最新版的同学可以手动安装nightly版本,其中firefox的扩展包已签名,可以直接下载后作为扩展文件安装。

Firefox商店[沉浸式翻译](https://addons.mozilla.org/en-US/firefox/addon/immersive-translate/)已上架, chrome 商店还在计划中.
Chrome/Edge用户目前请手动安装:

1.[这里](https://github.com/theowenyoung/Traduzir-paginas-web/releases)下载chrome的压缩包
2. 解压到一个以后不会删除的文件夹
3. 打开扩展管理窗口,`chrome://extensions`
4. 激活开发者模式
5. 载入刚解压的扩展文件夹
6. 安装后,target语言可以选中文
7. 接下来可以设置为always自动翻译英文,或者右键手动点击翻译本页面,即可有双语显示,打开推特试试看!

目前正在完善开发中,更推荐手动安装[最新版本](https://github.com/theowenyoung/Traduzir-paginas-web/releases)

1.[这里](https://github.com/theowenyoung/Traduzir-paginas-web/releases)下载对应浏览器的压缩包,chrome或firefox
2. 解压到以后不删除的文件夹

如果是谷歌浏览器:

3. 打开扩展管理窗口
4. 激活开发者模式
5. 选择 "Load unpacked",选择刚解压的文件夹
6. 安装后,target语言可以选中文,然后再翻译页面即可有双语显示(现在还没有任何选项可以设置)
> 现在还没有任何选项可以设置
火狐浏览器
## 截图

3. 打开`about:debugging`页面
4. 点击火狐图标
5. 加载临时扩展,直接选中压缩包即可
6. 安装后,target语言可以选中文,然后再翻译页面即可有双语显示(现在还没有任何选项可以设置)
![twitter](assets/twitter.png)

![reddit](assets/reddit.png)

---
![pdf](assets/pdf.png)

## Todo
![epub](assets/epub.jpg)

![hackernews](assets/hackernews.png)

- [ ] - adapt for Github
- [ ] - backup默认文件名还是TWP
- [ ] - option页面从extension中打开的显示问题
- [ ] - 版本号自动添加
![ft](assets/ft.png)

---

Expand All @@ -75,12 +66,12 @@ Firefox商店[沉浸式翻译](https://addons.mozilla.org/en-US/firefox/addon/im

#### Chromium based browsers

1. Download [this file](https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.6/TWP.9.6.Chromium.zip), or any [other version](https://github.com/FilipePS/Traduzir-paginas-web/releases)
1. Download [this file](https://github.com/immersive-translate/immersive-translate/releases/download/v9.6/TWP.9.6.Chromium.zip), or any [other version](https://github.com/immersive-translate/immersive-translate/releases)
2. Extract the zip file
3. Open your browser's extension manager
4. Activate developer mode
5. Load the extension with the option "Load unpacked"
- Note: You can also install via [crx file](https://github.com/FilipePS/Traduzir-paginas-web/releases/download/v9.6/TWP.9.6.crx), download the file using a download manager/or firefox. Activate developer mode and drag the file into the chromium extension manager. It doesn't work on Chrome/Edge.
- Note: You can also install via [crx file](https://github.com/immersive-translate/immersive-translate/releases/download/v9.6/TWP.9.6.crx), download the file using a download manager/or firefox. Activate developer mode and drag the file into the chromium extension manager. It doesn't work on Chrome/Edge.

## Screenshots
| Menu 1 | Menu 2 | Translated |
Expand All @@ -95,7 +86,7 @@ Firefox商店[沉浸式翻译](https://addons.mozilla.org/en-US/firefox/addon/im

To make a donation use [Patreon](https://www.patreon.com/filipeps).

[<img src="https://github.com/FilipePS/Traduzir-paginas-web/blob/master/src/icons/patreon.png" alt="Patreon" height="50">](https://www.patreon.com/filipeps)
[<img src="https://github.com/immersive-translate/immersive-translate/blob/master/src/icons/patreon.png" alt="Patreon" height="50">](https://www.patreon.com/filipeps)

## FAQ

Expand All @@ -121,3 +112,15 @@ The pages are translated using the Google or Yandex translation engine (you choo
**Limitations**

Some pages like [support.mozilla.org](https://support.mozilla.org/) and [addons.mozilla.org](http://addons.mozilla.org/) will not be translated. For security reasons, the browser blocks extensions from accessing these sites.

## Todo


- [ ] - adapt for Github
- [ ] - backup默认文件名还是TWP
- [ ] - option页面从extension中打开的显示问题
- [ ] - 版本号自动添加
- [ ] - youtube comments
- [ ] - better for github

---

0 comments on commit 609b362

Please sign in to comment.