Michael

example 09:07 is read as 9 hours 7 minutes

Actual Pattern:

“([0]?)(\d{,2}):([0]?)(\d{,2})”

Replacement Pattern:

“\2     hours   \4   minutes”

Of course, one of your other regular expressions may interpret the string before this one has a chance

This will put an unusual spin on Bible references.

From: nvda@nvda.groups.io [mailto:nvda@nvda.groups.io] On Behalf Of Chris Mullins
Sent: Thursday, August 03, 2017 4:28 PM
To: nvda@nvda.groups.io

This will put an unusual spin on Bible references.

Further to the topic of number processing,  below are typical number sequences I come across on a daily basis and some observations regarding their processing by NVDA:

Decimal Number using thousands separator = 123,056,789.00

Speaks as one hundred twenty thre comma zero five six comma seven hundred eighty nine point o o

Decimal number without thousands separator = 123056789.00

Speaks as one hundred twenty three million  fifty six thousand seven hundred eighty nine point o o

Speaks as one hundred ninety two point one six eight point 2 o point one

Phone number 01246 567890

Speaks as zero one two four six five hundred sixty seven thousand eight hundred ninety

24 hour based time = 19:28:09

Speaks as nineteen colon twenty eight colon zero nine

Observations:

* Digits prior to a thousands separator, space or line terminator are voiced as individual whole numbers except when the segment of the number begins with a zero in which case digits for that segment are spoken individually.

* Digits prior to the first period in a number sequence are spoken as a whole number, digits thereafter are spoken individually.

* After a period has been encountered in the number sequence, the zero digit is spoken is the letter o.

I don't know if the rendering of the letter o instead of zero is by accident or design when it occurs after a period in a number sequence but I consider it to be a bug. I have tried it with Eloquence and ESpeak and both work the same.

My keyboard and language settings are UK English for these tests.  I don't know how Locale aware NVDA is as for example Germany use comma as the decimal separator and period as the thousands separator but it would be interesting to know if similar results to mine occur there.

Cheers

Chris

From: nvda@nvda.groups.io [mailto:nvda@nvda.groups.io] On Behalf Of Quentin Christensen
Sent: 3 August 2017 09:05
To: nvda@nvda.groups.io

You could get NVDA to read numbers how you want using a dictionary rule which uses regex.  I think someone did it on this list previously.  You would need to do it for each type of number, eg one digit followed by a full stop, followed by two digits, a full stop then more digits etc.

On Thu, Aug 3, 2017 at 5:08 PM, Gene <gsasner@...> wrote:

I don't know what NVDA does with different numeric reading settings.  I just tried having it read a number with a decimal point with punctuation off using a version of NVDA that doesn't have the read number as digits feature.  In other words it reads numbers the way NVDA always has.  It reads numbers as thousand, hundred, etc.  It says the word point where the decimal is and reads the number as a number before the decimal point and digits after the decimal point.  For example, it would say 4 hundred forty three point 236.  I'm not sure just what you want to hear.

As I recall what I saw on the list early in the discussion, the option to read numbers as digits is in a snapshot version.  If it is in a snapshot branch where the program is expected to be stable, you might want to experiment.  In the branch where the code is expected to be stable, snapshots usually work well.  There may be a bug here and there but many people use snap shots from stable branches because they want newer features and stable operation.  I've used a few snapshots from a stable branch and I've had no or almost no unexpected behavior.  People who don't want to wait for production releases but who want a feature would do well to try a snapshot from a stable branch with the feature.  There are three branches of snapshots.  One or two or them is expected to have stable or quite stable code.  I'll let those who follow snapshots and branches discuss the question further.

Gene,

----- Original Message -----

From:

Sent: Thursday, August 03, 2017 1:26 AM

thanks gene.
i wish that dont hear punctuation and only hear full number after dot
like versions of programs and number digit in phone numbers.
i set punctuation to none for not hearing any of punctuations when
about version numbers which have dot, i tested with all kind of
reporting punctuation (non, some, most and all and none of them worked
for me.

On 8/3/17, Gene <gsasner@...> wrote:
> I'm not sure if there is a practical solution.  One thing you might do is to
> set punctuation to most so that periods will be spoken and set numbers to be
> read as digits. I'm not sure if that's quite what you want but it might be
> reasonably close.  I don't know if NVDA could be programmed to recognize
> context and read in this way automatically.
>
> Gene
> ----- Original Message -----
>
> From: nasrin khaksar
> Sent: Thursday, August 03, 2017 12:34 AM
> To: nvda@nvda.groups.io
> Subject: Re: [nvda] about reading numbers in nvda 2017.2 and before: nvda
>
>
> hello.
> i understand that its not easy for software to read numbers in the way
> that i wish.
> but my problem is only with numbers which have dot and seperating from
> each other with dot.
> like the version of espeak which i told i wish that hear for example:
> 1. 49 not 1. 4 9!
> what should i do to nvda says 49 instead of 4 9 in such cases?
> also about phone numbers and sales number i completely agree.
> phone number also i accept both digit and pare number and cant
> memorize the hole number in that case!
>
> On 8/3/17, Quentin Christensen <quentin@...> wrote:
>> I meant to cover this in my last message. the reason NVDA doesn't try to
>> do
>> too much number processing like that, is there are so many different ways
>> of writing numbers and people would like different numbers read
>> differently.
>>
>> For instance, phone numbers are often easier to take in as individual
>> digits (5 5 5 6 7 8 9 0), but the number of sales made last month makes
>> more sense read as a whole number: 55567890.
>>
>> As a human, reading text, it is easy to tell which type a number is and
>> how
>> you would prefer it read, but without a lot of computing power, it's not
>> so
>> easy for NVDA.
>>
>> This is the same reasoning why words such as "live", "read", "wind" and
>> "lead" are always pronounced the same, even though each has two meanings,
>> each pronounced differently. For the logophiles in the audience, these
>> are
>> called heteronyms or heterophones.
>>
>> Now I've exhausted my dictionary, I'll leave it there (and I never even
>> got
>> to non-English languages or other cultural ways of writing numbers).
>>
>> Regards
>>
>> Quentin.
>>
>> On Thu, Aug 3, 2017 at 12:57 PM, nasrin khaksar
>> <nasrinkhaksar3@...>
>> wrote:
>>
>>> hello every one.
>>> i wish that hear number full number in all cases.
>>> but i cant in some cases.
>>> for example: in some numbers which have dot, nvda reads the numbers
>>>
>>> what should i do in previous versions of nvda about numbers?
>>> for example about version of espeak nvda says: 1. 4 8. 1 5
>>> i wish that hear 1. 48. 15
>>> i mean for numbers have dot, nvda says digit numbers not complete
>>> numbers!
>>> 1. 6 3 8 9 1
>>> God bless you all and i pray for you sincerely every day.
>>>
>>>
>>> --
>>> we have not sent you but as a mercy to the creation.
>>> holy quran, chapter 21, verse 107.
>>> in the very authentic narration is:
>>> imam hosein is the beacon of light and the ark of salvation.
>>> best website for studying islamic book in different languages
>>> al-islam.org
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Quentin Christensen
>> Training and Support Manager
>>
>> Basic Training for NVDA & Microsoft Word with NVDA E-Books now available:
>> http://www.nvaccess.org/shop/
>>
>> Ph +61 7 3149 3306
>> www.nvaccess.org
>>
>
>
> --
> we have not sent you but as a mercy to the creation.
> holy quran, chapter 21, verse 107.
> in the very authentic narration is:
> imam hosein is the beacon of light and the ark of salvation.
> best website for studying islamic book in different languages
> al-islam.org
>
>
>

--
we have not sent you but as a mercy to the creation.
holy quran, chapter 21, verse 107.
in the very authentic narration is:
imam hosein is the beacon of light and the ark of salvation.
best website for studying islamic book in different languages
al-islam.org

--

Quentin Christensen
Training and Support Manager

Basic Training for NVDA & Microsoft Word with NVDA E-Books now available: http://www.nvaccess.org/shop/

www.nvaccess.org