-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparation for launching the add-on store. Upgraded to be compatible…
… with NVDA2024.1.
- Loading branch information
1 parent
896e37a
commit a1d13d3
Showing
5 changed files
with
79 additions
and
22 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,7 +1,6 @@ | ||
# 音标朗读 | ||
|
||
* 作者: Cary-rowen <[email protected]> | ||
* NVDA兼容性: NVDA2019.3或更高版本 | ||
* 数据贡献: 社会主义好、浮云 | ||
|
||
## 简介 | ||
|
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,8 @@ | ||
# Author: Eureka <[email protected]> | ||
|
||
# -*- coding:utf-8 -*- | ||
# A part of the NVDA Volume Adjustment add-on | ||
# This file is covered by the GNU General Public License. | ||
# See the file COPYING for more details. | ||
# Copyright (C) 2021-2024 Cary-rowen <[email protected]> | ||
|
||
import os | ||
import scriptHandler | ||
|
@@ -8,8 +11,11 @@ | |
import globalVars | ||
import speechDictHandler | ||
import ui | ||
import addonHandler | ||
addonHandler.initTranslation() | ||
|
||
|
||
dictFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), "IPAData.dic") | ||
dictFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'IPAData.dic') | ||
speechDict = speechDictHandler.SpeechDict() | ||
transIPA = False | ||
|
||
|
@@ -28,8 +34,8 @@ def terminate(self): | |
|
||
|
||
@scriptHandler.script( | ||
description=_("切换读出盲文音标的开关"), | ||
gesture=_("kb:NVDA+Shift+P")) | ||
description=_("Toggle reporting of Phonetic"), | ||
gesture="kb:NVDA+Shift+P") | ||
def script_toggle(self, gesture): | ||
if not globalVars.speechDictionaryProcessing: | ||
return | ||
|
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,49 @@ | ||
# SOME DESCRIPTIVE TITLE. | ||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER | ||
# This file is distributed under the same license as the PACKAGE package. | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. | ||
# | ||
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: 'TransIPA' '1.2.2'\n" | ||
"Report-Msgid-Bugs-To: '[email protected]'\n" | ||
"POT-Creation-Date: 2024-03-24 20:26+0800\n" | ||
"PO-Revision-Date: 2024-03-24 20:27+0800\n" | ||
"Last-Translator: \n" | ||
"Language-Team: \n" | ||
"Language: zh_CN\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: 8bit\n" | ||
"X-Generator: Poedit 3.4.2\n" | ||
|
||
#: addon\globalPlugins\TransIPA.py:34 | ||
msgid "Toggle reporting of Phonetic" | ||
msgstr "切换读出盲文音标的开关" | ||
|
||
#: addon\globalPlugins\TransIPA.py:41 | ||
msgid "off" | ||
msgstr "不读盲文音标" | ||
|
||
#: addon\globalPlugins\TransIPA.py:44 | ||
msgid "on" | ||
msgstr "读出盲文音标" | ||
|
||
#. Add-on summary, usually the user visible name of the addon. | ||
#. Translators: Summary for this add-on | ||
#. to be shown on installation and add-on information found in Add-ons Manager. | ||
#: buildVars.py:23 | ||
msgid "Reporting the International Phonetic Alphabet in Braille" | ||
msgstr "音标朗读" | ||
|
||
#. Add-on description | ||
#. Translators: Long description to be shown for this add-on on add-on information from add-ons manager | ||
#: buildVars.py:26 | ||
msgid "" | ||
"This add-on allows NVDA to report the International Phonetic Alphabet using " | ||
"braille dots.\n" | ||
"Switch gesture NVDA+Shift+P." | ||
msgstr "" | ||
"该插件支持以盲文点位表示法读出国际音标。\n" | ||
"NVDA+Shift+P 开启 / 关闭音标朗读。" |
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,13 +20,13 @@ def _(arg): | |
# Add-on summary, usually the user visible name of the addon. | ||
# Translators: Summary for this add-on | ||
# to be shown on installation and add-on information found in Add-ons Manager. | ||
"addon_summary": _("以盲文表示法读出国际音标"), | ||
"addon_summary": _("Reporting the International Phonetic Alphabet in Braille"), | ||
# Add-on description | ||
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager | ||
"addon_description": _("""本插件支持以盲文点位表示法读出国际音标。 | ||
功能开关快捷键 NVDA+Shift+P。"""), | ||
"addon_description": _("""This add-on allows NVDA to report the International Phonetic Alphabet using braille dots. | ||
Switch gesture NVDA+Shift+P."""), | ||
# version | ||
"addon_version": "1.2.1", | ||
"addon_version": "1.2.2", | ||
# Author(s) | ||
"addon_author": "Cary-rowen <[email protected]>", | ||
# URL for the add-on documentation support | ||
|
@@ -38,7 +38,7 @@ def _(arg): | |
# Minimum NVDA version supported (e.g. "2018.3.0", minor version is optional) | ||
"addon_minimumNVDAVersion": 2019.3, | ||
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version) | ||
"addon_lastTestedNVDAVersion": 2023.1, | ||
"addon_lastTestedNVDAVersion": 2024.1, | ||
# Add-on update channel (default is None, denoting stable releases, | ||
# and for development releases, use "dev".) | ||
# Do not change unless you know what you are doing! | ||
|
@@ -69,7 +69,7 @@ def _(arg): | |
# Base language for the NVDA add-on | ||
# If your add-on is written in a language other than english, modify this variable. | ||
# For example, set baseLanguage to "es" if your add-on is primarily written in spanish. | ||
baseLanguage = "zh_CN" | ||
baseLanguage = "en" | ||
|
||
# Markdown extensions for add-on documentation | ||
# Most add-ons do not require additional Markdown extensions. | ||
|
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,18 +1,21 @@ | ||
# 音标朗读 | ||
# International Phonetic Alphabet Report | ||
|
||
* 作者: Cary-rowen <[email protected]> | ||
* NVDA兼容性: NVDA2019.3或更高版本 | ||
* 数据贡献: 社会主义好、浮云 | ||
* Author: Cary-rowen <[email protected]> | ||
|
||
## 简介 | ||
## Introduction | ||
|
||
这是一款 NVDA 插件,支持以盲文点位表示法读出国际音标。 | ||
This NVDA add-on represents the International Phonetic Alphabet using braille dots. | ||
|
||
NVDA+Shift+P 开启 / 关闭音标朗读。 | ||
Switch gesture: NVDA+Shift+P. | ||
|
||
## Example | ||
|
||
## 举例 | ||
Word: go [ɡəʊ] | ||
Part of speech: verb | ||
Meaning: MOVE/TRAVEL | ||
|
||
go [ɡəʊ] v. 去;离开;变得;进行 n. 去;尝试;精力;一举 | ||
If this add-on feature is enabled, when you review the phonetic content by character, NVDA will report the following: | ||
|
||
若开启了音标朗读,那么其中的音标数据[ɡəʊ]会朗读为:“1245点; 126点; 136点” | ||
* Braille 1 2 4 5 | ||
* Braille 1 2 6 | ||
* Braille 1 3 6 |