Date   

Re: Introducing the Quick Dictionary add-on #addonrelease

Oleksandr Gryshchenko
 

Dear Soloman,
Just reviewed the list of available languages, and, unfortunately, there is no Tamil among them.
I came to the conclusion that the remote dictionary server I chose has a limited choice of available languages and we need to look for another similar service.
I hope to be able to change the remote dictionary used in future versions to a more advanced one.
Good luck!


Re: Introducing the Quick Dictionary add-on #addonrelease

Oleksandr Gryshchenko
 

Hi Ibrahim, Soloman, Gary, William and everyone who reads this message :)
Friends, I didn't take into account one detail, namely that the keyboard shortcut NVDA + D is already used in NVDA...
I'll see what a handy keyboard shortcut we can use and change it nearest time.

Ibrahim Abedrabbo wrote:
> Which languages does this dictionary cover? Is it only English-English, or English to other languages?
The online dictionary used in this add-on supports only about 27 languages. Coverage depends on the specific language selected.
For example, about 20 translation languages are available for English, but only one for Chinese...
A full list of supported language combinations I will provide at the end of this message.

Soloman wrote:
> Is there any chance of you getting it to work offline in future version?
This add-on simply sends requests to the remote server and with NVDA announces the result. Of course, we can modify the add-on so that it will works with the dictionary installed on your computer.
I'm going to look for available dictionary databases that could be installed locally and used in the add-on.

Gary Metzler wrote:
> I am having a problem trying to register the add on. I get the email with the code and I enter it but, when I go to next nothing happens.  Is there a step that I am missing?  Thanks for any help.
Gary, you don't need to immediately register your own remote dictionary access token to try the add-on.
When you install the add-on, it already has a previously registered access token and you can use it immediately. Until there are not many users of the add-on - this code will be available.
I will try to register another access token and see what problems may arise during the registration process.

William Wong wrote:
> Well, why not using request module  to send request to check dict meaning from some popular website?
William, I agree that it can be done this way. By the way, this add-on also uses the urllib.request module.
But it seems to me that using the API is much more convenient and reliable than parsing a web page.
Unfortunately it is really quite difficult to find quality API services with large free quotas.
For example, the following online dictionary service allows to perform only 300 queries per day [https://www.lexicala.com/k-dictionaries]...

List of language combinations available in the remote dictionary service:
    "be-be",
    "be-ru",
    "bg-ru",
    "cs-cs",
    "cs-en",
    "cs-ru",
    "da-en",
    "da-ru",
    "de-de",
    "de-en",
    "de-ru",
    "de-tr",
    "el-en",
    "el-ru",
    "en-cs",
    "en-da",
    "en-de",
    "en-el",
    "en-en",
    "en-es",
    "en-et",
    "en-fi",
    "en-fr",
    "en-it",
    "en-lt",
    "en-lv",
    "en-nl",
    "en-no",
    "en-pt",
    "en-ru",
    "en-sk",
    "en-sv",
    "en-tr",
    "en-uk",
    "es-en",
    "es-es",
    "es-ru",
    "et-en",
    "et-ru",
    "fi-en",
    "fi-ru",
    "fi-fi",
    "fr-fr",
    "fr-en",
    "fr-ru",
    "hu-hu",
    "hu-ru",
    "it-en",
    "it-it",
    "it-ru",
    "lt-en",
    "lt-lt",
    "lt-ru",
    "lv-en",
    "lv-ru",
    "mhr-ru",
    "mrj-ru",
    "nl-en",
    "nl-ru",
    "no-en",
    "no-ru",
    "pl-ru",
    "pt-en",
    "pt-ru",
    "ru-be",
    "ru-bg",
    "ru-cs",
    "ru-da",
    "ru-de",
    "ru-el",
    "ru-en",
    "ru-es",
    "ru-et",
    "ru-fi",
    "ru-fr",
    "ru-hu",
    "ru-it",
    "ru-lt",
    "ru-lv",
    "ru-mhr",
    "ru-mrj",
    "ru-nl",
    "ru-no",
    "ru-pl",
    "ru-pt",
    "ru-ru",
    "ru-sk",
    "ru-sv",
    "ru-tr",
    "ru-tt",
    "ru-uk",
    "ru-zh",
    "sk-en",
    "sk-ru",
    "sv-en",
    "sv-ru",
    "tr-de",
    "tr-en",
    "tr-ru",
    "tt-ru",
    "uk-en",
    "uk-ru",
    "uk-uk",
    "zh-ru"

I wish everyone a great day!


Pronunciation: Unwanted Dates

Pele West
 

Hi Everyone

I am running windows 7 with the latest version of NVDA using the IBM TTS
Voice.

I have lots of music on my machine. If there is a track beginning "Mary"
preceded by a track number, NVDA speaks "March 4th y" instead of "04
Mary".

Is there a setting or a dictionary entry I can change to stop this
happening?

Thanks

Pele West


Re: Introducing the Quick Dictionary add-on #addonrelease

William Wong
 

Well, why not using request module  to send request to check dict meaning from some popular website?



Oleksandr Gryshchenko 於 27/9/2020 6:46 寫道:

Hi Roger,
This add-on uses the online dictionary https://tech.yandex.com/dictionary/
Unfortunately, I didn't find another online dictionary service with more or less adequate quotas for use by free users.
In addition, dictionary articles here are quite detailed.
But, of course, if I can find the best service - I will remake the add-on for it.
It will be enough to rewrite only two modules of the add-on (dictionary.py and languages.py).


Re: nvda +D = long description

Gene
 

There is a command NVDA key d that will open the long description in a new window.

Gene

-----Original Message-----
From: Rob Hudson
Sent: Sunday, September 27, 2020 3:30 AM
To: nvda@nvda.groups.io
Subject: Re: [nvda] nvda +D = long description

I've never actually seen one of those. Although I do not believe NVDA indicates when a longdesc is actually available, does it?

----- Original Message -----
From: "Joseph Lee" <@joslee>
To: <nvda@nvda.groups.io>
Date: Sun, 27 Sep 2020 01:02:10 -0700
Subject: Re: [nvda] nvda +D = long description

Hi,
A long description (often shortened to "longdesc") is used by web authors to provide additional details about a web element (typically images) via a dedicated description. As such, it is employed in browse mode only.
Cheers,
Jsoeph

-----Original Message-----
From: nvda@nvda.groups.io <nvda@nvda.groups.io> On Behalf Of Aschalew Byness
Sent: Sunday, September 27, 2020 12:53 AM
To: nvda <nvda@nvda.groups.io>
Subject: [nvda] nvda +D = long description

Hi friends
May you explain to me what long description
NVDA+d means? When I read the nvda user guide, i couldn't understand
what long description
NVDA+d means and its use.











Re: Introducing the Quick Dictionary add-on #addonrelease

Gary Metzler
 

Hi,

 

I am having a problem trying to register the add on. I get the email with the code and I enter it but, when I go to next nothing happens.  Is there a step that I am missing?  Thanks for any help. 

 

From: nvda@nvda.groups.io <nvda@nvda.groups.io> On Behalf Of Ibrahim Abedrabbo
Sent: Saturday, September 26, 2020 6:59 PM
To: nvda@nvda.groups.io
Subject: Re: [nvda] Introducing the Quick Dictionary add-on #addonRelease

 

Hi Oleksandr,

Which languages does this dictionary cover? Is it only English-English, or English to other languages?

 

Regards

 



On Sep 26, 2020, at 6:46 PM, Oleksandr Gryshchenko <kita.zup+groups@...> wrote:

Hi Roger,
This add-on uses the online dictionary https://tech.yandex.com/dictionary/
Unfortunately, I didn't find another online dictionary service with more or less adequate quotas for use by free users.
In addition, dictionary articles here are quite detailed.
But, of course, if I can find the best service - I will remake the add-on for it.
It will be enough to rewrite only two modules of the add-on (dictionary.py and languages.py).


Re: nvda +D = long description

Rob Hudson
 

I've never actually seen one of those. Although I do not believe NVDA indicates when a longdesc is actually available, does it?

----- Original Message -----
From: "Joseph Lee" <@joslee>
To: <nvda@nvda.groups.io>
Date: Sun, 27 Sep 2020 01:02:10 -0700
Subject: Re: [nvda] nvda +D = long description

Hi,
A long description (often shortened to "longdesc") is used by web authors to provide additional details about a web element (typically images) via a dedicated description. As such, it is employed in browse mode only.
Cheers,
Jsoeph

-----Original Message-----
From: nvda@nvda.groups.io <nvda@nvda.groups.io> On Behalf Of Aschalew Byness
Sent: Sunday, September 27, 2020 12:53 AM
To: nvda <nvda@nvda.groups.io>
Subject: [nvda] nvda +D = long description

Hi friends
May you explain to me what long description
NVDA+d means? When I read the nvda user guide, i couldn't understand
what long description
NVDA+d means and its use.











Re: nvda +D = long description

Gene
 

This appears to be an accessibility feature for blind users some web site developers implement. Let's say you are on something, that is usually a graphic, as the manual says and you want to see if there is more description available than you hear, if you hear any. Issuing the long description command will open a new window and display that longer description provided by the site designer.

Gene

-----Original Message-----
From: Aschalew Byness
Sent: Sunday, September 27, 2020 2:52 AM
To: nvda
Subject: [nvda] nvda +D = long description

Hi friends
May you explain to me what long description
NVDA+d means? When I read the nvda user guide, i couldn't understand
what long description
NVDA+d means and its use.


Re: nvda +D = long description

 

Hi,
A long description (often shortened to "longdesc") is used by web authors to provide additional details about a web element (typically images) via a dedicated description. As such, it is employed in browse mode only.
Cheers,
Jsoeph

-----Original Message-----
From: nvda@nvda.groups.io <nvda@nvda.groups.io> On Behalf Of Aschalew Byness
Sent: Sunday, September 27, 2020 12:53 AM
To: nvda <nvda@nvda.groups.io>
Subject: [nvda] nvda +D = long description

Hi friends
May you explain to me what long description
NVDA+d means? When I read the nvda user guide, i couldn't understand
what long description
NVDA+d means and its use.


nvda +D = long description

Aschalew Byness
 

Hi friends
May you explain to me what long description
NVDA+d means? When I read the nvda user guide, i couldn't understand
what long description
NVDA+d means and its use.


Re: Pronunciation of phone numbers

 

Luke,

           Just to be clear, I am really not, ever, trying to handle every possible odd exception condition that might come up.  If what I craft gets 99.5% of all commonly used formats, I'm fine.  If someone makes a typo like leaving no space between the closing parenthesis of an area code and the exchange, or were to skip a hyphen between the area code and the exchange, I'm more than happy to have that read badly, as it should clue in the listener that something's off about the formatting.

            I've had to write hellishly complicated regexes in the past that needed to handle a multitude of normal and exception conditions, and they exhaust me when they get to that extent, particularly when "that extent" is really unlikely to be necessary.

            But George should have his solution at this point, that's for sure!
--

Brian - Windows 10 Pro, 64-Bit, Version 2004, Build 19041  

It’s hard waking up and realizing it’s not always black and white.

     ~ Kelley Boorn

 


Re: Pronunciation of phone numbers

Luke Davis
 

On Sat, 26 Sep 2020, Brian Vogel wrote:

would lead to the [ \.-] character class for the two separation regions.  Although I must say I've never seen anyone use a period as the separator in a
phone number, but just because I haven't seen it doesn't mean it doesn't exist, just that it's not common in my little corner of the world.
I don't know what the reasoning for it is, but I have seen it in some places, usually done by North American businesses. I always assumed it was somehow related to fonts on business cards or the like, or maybe just a desire to be different.

I've seen it a lot in the whois database as well.

Luke


Re: Pronunciation of phone numbers

 

On Sun, Sep 27, 2020 at 12:01 AM, Luke Davis wrote:
Why not just use something like this?
-
Well, your example is exactly what my tweak would have been, so, sure.  All I wanted was a set of examples of exactly what formats could be expected, which would lead to the [ \.-] character class for the two separation regions.  Although I must say I've never seen anyone use a period as the separator in a phone number, but just because I haven't seen it doesn't mean it doesn't exist, just that it's not common in my little corner of the world.
 
--

Brian - Windows 10 Pro, 64-Bit, Version 2004, Build 19041  

It’s hard waking up and realizing it’s not always black and white.

     ~ Kelley Boorn

 


Re: Pronunciation of phone numbers

Luke Davis
 

On Sun, 27 Sep 2020, Luke Davis wrote:

Regex: \(?(\d)(\d)(\d)\)?[ \.-](\d)(\d)(\d)[ \.-](\d)(\d)(\d)(\d)
I should note, that the one case that won't handle, is:

(###)###-####

I suspect we would have to get creative to manage that one. Along the lines of:

\(?(\d)(\d)(\d)(?:\)?[ \.-]|\))(\d)(\d)(\d)[ \.-](\d)(\d)(\d)(\d)\D

I added a \D at the end to hopefully make sure we're not grabbing something that isn't a phone number.
The former expressions would have munged things like:

123-456-789090009876

(Like a serial number or tracking number or similar.)

Luke


Re: Pronunciation of phone numbers

Luke Davis
 

On Sat, 26 Sep 2020, Brian Vogel wrote:

George,Give me a short list of examples that cover the range of formats you need for this to work with and I can tweak the regex.  Trying to explain how is
not something I'm inclined to do, at least not on-group, as it's really off-topic if you get hot and heavy into regular expression syntax.--
Why not just use something like this? Untested, but it should catch periods, dashes, and spaces.
Replacement uses a comma for pausing.

Regex: \(?(\d)(\d)(\d)\)?[ \.-](\d)(\d)(\d)[ \.-](\d)(\d)(\d)(\d)

Replacement: \1 \2 \3, \4 \5 \6, \7 \8 \9 \10

Luke


Re: Pronunciation of phone numbers

George McCoy
 

Sure thing, Brian. I wasn't looking for a short course on regular expressions. :) I'd like to handle phone numbers where the area code, excnagge and local sections are separated with dashes or spaces. The area code may or may not be enclosed in parentheses.

###-###-####

(###)-###-####

(###) ### ####

### ### ####

I don't expect to handle a phone number containing both spaces and dashes as separaters.


I really appreciate your help on this. I'm sure it will be of general benefit to Espeak users.


George

On 9/26/2020 10:45 PM, Brian Vogel wrote:
George,

Give me a short list of examples that cover the range of formats you need for this to work with and I can tweak the regex.  Trying to explain how is not something I'm inclined to do, at least not on-group, as it's really off-topic if you get hot and heavy into regular expression syntax.
--

Brian - Windows 10 Pro, 64-Bit, Version 2004, Build 19041  

It’s hard waking up and realizing it’s not always black and white.

     ~ Kelley Boorn

 


Re: Pronunciation of phone numbers

 

George,

Give me a short list of examples that cover the range of formats you need for this to work with and I can tweak the regex.  Trying to explain how is not something I'm inclined to do, at least not on-group, as it's really off-topic if you get hot and heavy into regular expression syntax.
--

Brian - Windows 10 Pro, 64-Bit, Version 2004, Build 19041  

It’s hard waking up and realizing it’s not always black and white.

     ~ Kelley Boorn

 


Re: Pronunciation of phone numbers

George McCoy
 

Brian,


This regex works for phone numbers formatted with dashes, with or without parentheses, but fails when it encounters spaces.

If I replace the dashes in the pattern string with spaces, it works with spaces, but, of course, not with dashes.


George

On 9/25/2020 10:25 PM, Brian Vogel wrote:
George,

         If you use either of the formats I previously mentioned, whether or not the area code is enclosed in parentheses or not, you can use the instructions that follow.  I am going to give the regular expression (regex) you will want to use first and the replacement string right afterward before giving the step-by-step instructions that would be used to do this for any regular expression and replacement.  You begin copying the regex with the opening open parenthesis and stop at the end of the line.  For the replacement, if you do not want NVDA to say, "area code," before the first three digits then you can omit those two words and start copying at the opening backslash until the end of the line.

regex: \(?(\d)(\d)(\d)\)?[ -](\d)(\d)(\d)-(\d)(\d)(\d)(\d)
 
replacement: area code \1 \2 \3 \4 \5 \6 \7 \8 \9 \10
 
Adding a Regular Expression match to the Default Dictionary
1. Hit NVDA+N,P,D,D   NVDA Main Menu, Preferences, Speech dictionaries, Default Dictionary
2. Hit ALT+A to activate the Add Button or navigate to it and activate it.
3. In the dialog that appears, paste or enter a regular expression in the Pattern edit box.
4. Paste or enter the replacement you want to hear in the Replacement edit box.  If you're using a capturing regular expression this may be a sequence of backslashes followed by the numbers of the capture groups you're using.
5. The Comment edit box should either have a comment that helps you to remember the purpose of this dictionary entry, which is preferable, or be left blank.
6. Leave the Case Sensitive checkbox unchecked.
7. The Type radio button should be set to Regular Expression.
8. Activate the OK button

--

Brian - Windows 10 Pro, 64-Bit, Version 2004, Build 19041  

It’s hard waking up and realizing it’s not always black and white.

     ~ Kelley Boorn

 


Re: Introducing the Quick Dictionary add-on #addonrelease

soloman s
 

Sir,
Thank you for coming up with such brilliant and useful add--on. I am
going to try it with my Mother tongue Tamil.
Is there any chance of you getting it to work offline in future version?

On 9/27/20, Oleksandr Gryshchenko <@grisov> wrote:
Hi all!
Friends, let me introduce you an add-on that allows you to get detailed
dictionary articles for a selected word or combination of words.
Dictionary articles contain detailed information about a word, such as part
of speech, gender, plural or singular, translation options, list of
meanings, synonyms and detailed examples. Such information will be useful
for people who are learning foreign languages, or seek to use in
communication all the richness and diversity of their own language.

I have been using this add-on for a long time, but have only just finished
working on it.
This is my first NVDA add-on. I studied the code of many add-ons and used in
my work some solutions from such awesome add-ons as Instant Translate,
Remote, Developer Kit and others.

How to use:
1. First you need to select the word you are interested in.
2. Press NVDA + D twice and listen dictionary entry.

There are other functions which can be listened to by calling a short help:
1. Switch to add-on control mode via NVDA + D.
2. Press H to listen to the help message.

The add-on also has a settings dialog.

More information can be found in the Quick Dictionary add-on repository:
https://github.com/grisov/quickDictionary

You can download this add-on here:
https://github.com/grisov/quickDictionary/releases/download/v1.0/quickDictionary-1.0.nvda-addon

I will be very glad if my add-on will be useful for someone else.
And I would be interested to hear your feedback and suggestions.

Thank you for reading this message and I wish everyone a good weekend!
Good luck to all!
Oleksandr





--
With warm regards
Solomon S
teachsolo@...


Re: Pronunciation of phone numbers

George McCoy
 

Many thanks, Brian. I'll give it a try.


On 9/25/2020 10:25 PM, Brian Vogel wrote:
George,

         If you use either of the formats I previously mentioned, whether or not the area code is enclosed in parentheses or not, you can use the instructions that follow.  I am going to give the regular expression (regex) you will want to use first and the replacement string right afterward before giving the step-by-step instructions that would be used to do this for any regular expression and replacement.  You begin copying the regex with the opening open parenthesis and stop at the end of the line.  For the replacement, if you do not want NVDA to say, "area code," before the first three digits then you can omit those two words and start copying at the opening backslash until the end of the line.

regex: \(?(\d)(\d)(\d)\)?[ -](\d)(\d)(\d)-(\d)(\d)(\d)(\d)
 
replacement: area code \1 \2 \3 \4 \5 \6 \7 \8 \9 \10
 
Adding a Regular Expression match to the Default Dictionary
1. Hit NVDA+N,P,D,D   NVDA Main Menu, Preferences, Speech dictionaries, Default Dictionary
2. Hit ALT+A to activate the Add Button or navigate to it and activate it.
3. In the dialog that appears, paste or enter a regular expression in the Pattern edit box.
4. Paste or enter the replacement you want to hear in the Replacement edit box.  If you're using a capturing regular expression this may be a sequence of backslashes followed by the numbers of the capture groups you're using.
5. The Comment edit box should either have a comment that helps you to remember the purpose of this dictionary entry, which is preferable, or be left blank.
6. Leave the Case Sensitive checkbox unchecked.
7. The Type radio button should be set to Regular Expression.
8. Activate the OK button

--

Brian - Windows 10 Pro, 64-Bit, Version 2004, Build 19041  

It’s hard waking up and realizing it’s not always black and white.

     ~ Kelley Boorn