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
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,
|
|
Re: nvda +D = long description
Gene
There is a command NVDA key d that will open the long description in a new window.
toggle quoted messageShow quoted text
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" <joseph.lee22590@gmail.com> To: <nvda@nvda.groups.io> Date: Sun, 27 Sep 2020 01:02:10 -0700 Subject: Re: [nvda] nvda +D = long description Hi,
|
|
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
|
|
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?
toggle quoted messageShow quoted text
----- Original Message -----
From: "Joseph Lee" <joseph.lee22590@gmail.com> To: <nvda@nvda.groups.io> Date: Sun, 27 Sep 2020 01:02:10 -0700 Subject: Re: [nvda] nvda +D = long description Hi,
|
|
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.
toggle quoted messageShow quoted text
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,
toggle quoted messageShow quoted text
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 aI 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 isWhy 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,
|
|
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,
|
|
Re: Introducing the Quick Dictionary add-on
#addonrelease
soloman s
Sir,
toggle quoted messageShow quoted text
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 <kita.zup+groups@gmail.com> wrote:
Hi all! --
With warm regards Solomon S teachsolo@gmail.com
|
|
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,
|
|
Re: Pronunciation of phone numbers
George McCoy
Thanks brian.
I thought regular expressions might do the trick, but I don't know much about them. The format I usually use is xxx-xxx-xxxx. George
|
|