Skip to content

Commit

Permalink
fix say all bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alekssamos committed Aug 14, 2021
1 parent 78dc9c3 commit d92c935
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Дополнение Яндекс.Переводчик для NVDA

[Скачать версию 2021.05.26](https://github.com/alekssamos/YandexTranslate/releases/latest/download/YandexTranslate-2021.05.26.nvda-addon)
[Скачать версию 2021.08.14](https://github.com/alekssamos/YandexTranslate/releases/latest/download/YandexTranslate-2021.08.14.nvda-addon)

После установки зайдите в **NVDA меню**, **Параметры**, **Жесты ввода**,
назначте удобные вам сочетания клавиш для YandexTranslate. Или используйте уже предустановленные (ниже).
Expand Down
50 changes: 25 additions & 25 deletions addon/doc/en/readme.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# addon Yandex.Translate for NVDA
# Дополнение Яндекс.Переводчик для NVDA

[Home Page](https://github.com/alekssamos/YandexTranslate/)
[Скачать версию 2021.08.14](https://github.com/alekssamos/YandexTranslate/releases/latest/download/YandexTranslate-2021.08.14.nvda-addon)

After installation, go to the **NVDA menu**, **Preferences**, **Input Gestures...**,
assign the keyboard shortcuts you need for YandexTranslate. Or use the already pre-installed ones (below).
После установки зайдите в **NVDA меню**, **Параметры**, **Жесты ввода**,
назначте удобные вам сочетания клавиш для YandexTranslate. Или используйте уже предустановленные (ниже).

> Other translators, such as "Translate", "InstantTranslate" and others,
> if there is, it is better to disable or delete, in order to avoid conflicts.
> Другие переводчики, такие, как "Translate", "InstantTranslate" и другие,
> если есть, лучше отключить или удалить, во избежании конфликтов.
New: If it doesn't work, an error occurred when creating the key or something like that,
then open the NVDA Menu, Tools, Yandex Translate Settings
and install the API on iOS.
These keys are used in the iPhone app and have not changed for more than 6 months,
it should work better and more stable.
Новое: Если не работает, ошибка при создании ключа или что-нибудь такое,
то откройте NVDA Меню, Сервис, Настройки Yandex Translate
и установите API на iOS.
Эти ключи используются в приложении для iPhone и не меняются уже больше 6 месяцев,
должно работать лучше и стабильней.

The add-on translates the selected text fragment or content from the clipboard, there is an automatic (instant) translation of NVDA speech.
Дополнение переводит выделенный фрагмент текста или содержимое из буфера обмена, есть автоматический (мгновенный) перевод речи NVDA.

If there is a Braille display, the result will be duplicated on it.
Если есть брайлевский дисплей, результат будет дублироваться и на него.

> Doesn't translate? Set up language pairs.
> Didn't help?
> Change the IP address / reconnect to the Internet (turn off turn on the wifi router from the socket),
> turn on or off airplane mode, etc.
> Не переводит? Настройте языковые пары.
> Не помогло?
> Поменяйте IP адрес / переподключитесь к интернету (выключить включить wifi роутер из разетки),
> включить или выключить режим полёта и т.д.
The add-on can be configured in the NVDA menu, Tools, Yandex Translate Settings.
Дополнение можно настроить в NVDA меню, Сервис, Настройки Yandex Translate.

Support use proxy servers.
Поддерживается использование прокси сервера.

It is possible to work with configuration profiles, for example, for the Google Chrome browser one language pair, for Unigram another, and in the Notepad program you want to turn on the sound signal during translation. ** NVDA menu**, * * Configuration profiles...** , for each application, create, switch, and configure a translator.
Есть возможность работать с профилями конфигурации, например, для браузера Google Chrome одна языковая пара, для Unigram другая, а в программе Блокнот вы хотите включить звуковой сигнал во время перевода. **NVDA меню**, **Профили конфигурации...**, для каждого приложения создаёте, переключаетесь и настраиваете переводчик.

### Keyboard shortcuts
* nvda+Shift+T - Translation of the selected text.
* nvda+Shift+Y - Translate text from the clipboard.
* nvda+Shift+U - Swap languages.
* nvda+Shift+I - Automatic translation.
### Горячие клавиши
* nvda+Shift+T - Перевод выделенного текста.
* nvda+Shift+Y - Перевод текста из буфера обмена.
* nvda+Shift+U - Поменять языки местами.
* nvda+Shift+I - Автоматический перевод.
2 changes: 1 addition & 1 deletion addon/globalPlugins/yandexTranslate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def __init__(self):
speech.speak = self.speakDecorator(speech.speak)
try:
try:
speech.speechWithoutPauses.SpeechWithoutPauses.speakWithoutPauses = speech.speechWithoutPauses.SpeechWithoutPauses(speakFunc=speech.speech.speak).speakWithoutPauses
speech.sayAll.SayAllHandler.speechWithoutPausesInstance.speak = speech.speech.speak
except AttributeError:
speech.speakWithoutPauses=speech.SpeechWithoutPauses(speakFunc=speech.speak).speakWithoutPauses
except:
Expand Down
2 changes: 1 addition & 1 deletion addon/manifest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ summary = "Yandex translator for NVDA"
description = """Translates text using service Yandex Translate."""
author = "alekssamos <[email protected]>"
url = https://github.com/alekssamos/YandexTranslate/
version = 2021.05.26
version = 2021.08.14
docFileName = readme.html
minimumNVDAVersion = 2019.3
lastTestedNVDAVersion = 2021.1
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("""Translates text using service Yandex Translate."""),
# version
"addon_version": "2021.05.26",
"addon_version": "2021.08.14",
# Author(s)
"addon_author": u"alekssamos <[email protected]>",
# URL for the add-on documentation support
Expand Down

0 comments on commit d92c935

Please sign in to comment.