-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yannick Plassiard
committed
Sep 17, 2019
1 parent
7608975
commit 424d139
Showing
6 changed files
with
88 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
addon/doc/*.css | ||
addon/doc/en/ | ||
addon/doc/*/*.html | ||
*_docHandler.py | ||
*.html | ||
*.ini | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# nvda-translate | ||
Make NVDA translate any spoken text to the desired language. | ||
## Download | ||
- Stable release can be found [here](https://www.mtyp.fr/nvda/translate-2019.09.2.nvda-addon). | ||
|
||
## Installation | ||
|
||
This add-on installs like any other add-un: Press enter on the "translate-x.y.nvda-addon" file, and answer "Yes" to all asked questions. | ||
|
||
## Usage | ||
When installed, the add-on will detect the language your NVDA installation is set to, or will get the Windows active language as a fallback. This language will be used to translate any spoken text, when the feature is activated. | ||
**Note:** It is currently not possible to set this manually within a Preferences dialog, this may however be implemented in a future release. | ||
|
||
Then, to enable or disable the translation, press NVDA+Shift+Control+T. This gesture can be modified within NVDA Preferences menu -> Command Gestures dialog. | ||
|
||
### Gestures | ||
The following gestures are defined (and can be changed within the Gesture commands dialog): | ||
- NVDA+Shift+Control+T: Activates / deactivates the translation. | ||
- NVDA+Shift+F (twice quickly): Clears the cache for the current application. | ||
- NVDA+Shipt+Control+F (twice quickly): Clear all caches for all translations for all applications. | ||
|
||
## About Cache | ||
To increase performances (see below), each translated text is stored within a cache file. A cache file is created for each application the translation has been activated in, and is located in the "translation-cache" directory within your NVDA's user configuration directory. | ||
|
||
## How it works | ||
|
||
When active, the add-on will intercept any spoken text and connect to the Google Translate system to translate it to the desired language. This means that any text can be translated, from any app or game that uses NVDA to speak text, to websites. | ||
|
||
## Privacy | ||
|
||
Please, be aware that when the feature is active, any spoken text is sent to the Google Translate service. It means that any spoken information will be sent, whatever this could be (a simple sentence, file names within your Windows Explorer, mail content, contacts, phone numbers, or even credit card numbers). It is therefore important to activate this feature only when you're certain of which text your NVDA will speak. This module has been primarily developped to be used within games, so no privacy concerns are present. You're free to use it with whatever you want, but at your own risks. | ||
|
||
## About Performances | ||
You may notice that when the feature is active, there is a delay between each spoken text. This is due to the translate API: because the add-on do not use the non-free Google Translate API SDK, an HTTP connection is made each and every time a text has to be translated. Therefore, a 8mbps Internet connection is recommended for this feature to work correctly. | ||
Of course, the more bandwidth you have, the faster the translation will happen. | ||
|
||
## Contact and bug reports | ||
- If you encounter any issue while using this add-on, please create a GitHub issue so that it will be easily trackable. | ||
- Of course, Pull Requests are also welcomed if you want to extend the add-on or fix any issue. | ||
- To contact me, you can use the address: [contact author](mailto:[email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
"addon_description" : _("""Uses the Google Translate API to translate each spoken text to the desired language, on the fly. | ||
This add-on requires an internet connection."""), | ||
# version | ||
"addon_version" : "2019.09.1", | ||
"addon_version" : "2019.09.2", | ||
# Author(s) | ||
"addon_author" : u"Yannick PLASSIARD <[email protected]>", | ||
# URL for the add-on documentation support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters