Ticket #55 (closed enhancement: fixed)

Opened 4 years ago

Last modified 10 months ago

Framework for describing characters

Reported by: allan Owned by: mdcurran
Priority: minor Milestone: 2011.2
Component: Speech Version: development
Keywords: Cc:
Operating system: Blocked by:
Blocking: #635

Description (last modified by jteh) (diff)

Read phonetic representation and ASCII value is quite important and should add into NVDA future release.

Change History

comment:1 follow-up: ↓ 13 Changed 4 years ago by jteh

  • Description modified (diff)
  • Cc nvda-dev@lists.nvaccess.org removed
  • Component changed from Core to Speech
  • Keywords Read phonetic representation and ASCII value removed
  • Version set to trunk
  • Owner set to jteh

The problem with reading phonetic representation is that it presents localisation issues. While we can certainly allow for phonetic reading of the English alphabet, providing similar functionality for all languages is extremely difficult. Furthermore, it is dependent on the synth language in use, not necessarily the NVDA language. We have very similar problems with the current punctuation support.

comment:2 Changed 4 years ago by aleksey_s

at least reading ascii representation of the character was done by me and you can press numpad2 three times to hear this one as well as hex.

comment:3 Changed 4 years ago by bernd Dorer

  • Status changed from new to closed
  • Resolution set to fixed

Alexey_s wrote:

at least reading ascii representation of the character was done by me and you can >press numpad2
three times to hear this one as well as hex.

You mean:
You can press numpad2 twice to hear this one as well as hex.

I have tryed it on two systems and you don't have to press numpad2 three times.
I think this fixes this ticket.

comment:4 Changed 4 years ago by jteh

  • Status changed from closed to reopened
  • Resolution fixed deleted

No, this ticket is only partially implemented. The reporter requested both reading of phonetic representation (alpha, bravo, etc.) as well as ASCII value. The latter has been implemented, but the former has not. (These should probably have been filed as separate tickets, but no matter.)

comment:5 Changed 3 years ago by jteh

  • Priority changed from major to minor

comment:6 Changed 18 months ago by Bernd

I think for now, it would be better if we could implement it for each language. If we find a method to bind it to the synthesizers voice we can do this then.

comment:7 Changed 13 months ago by mdcurran

  • Blocked by 332 added
  • Milestone set to near-term

comment:8 Changed 10 months ago by jteh

  • Owner changed from jteh to mdcurran
  • Status changed from reopened to assigned
  • Blocked by 332 removed
  • Summary changed from Read phonetic representation and ASCII value to Framework for describing characters

We've determined that this will be done separately from symbol/punctuation handling, though probably in the same module (characterProcessing).

comment:9 Changed 10 months ago by jteh

  • Blocking 635 added

comment:10 Changed 10 months ago by mdcurran

Work is underway in branch:  http://bzr.nvaccess.org/nvda/characterDescriptions/
In this branch it is now possible to get the description (examples) for a character by using particular review cursor commands:
review current character (numpad2) pressed twice will speak the description for the current character.
Review current word (numpad5) and review current line (numpad8) pressed 3 times, will spell the word/line using these descriptions.
A locale should provide a characterDescriptions.dic file inside their locale directory. English and traditional Chinese (Taiwan) have already been provided.
The english one uses the standard English phonetic alphabet (alfa, bravo, charley etc). The traditional Chinese one provides examples from the libchewingdata project:  http://libchewingdata.openfoundry.org/

This means that for Traditional Chinese, it is now possible for an NVDA user to identify the meaning of a given traditional chinese character.

At this point in time, the characterDescriptions.dic that is used is based on NVDA's configured locale. It would be nice to use the synth's reported voice language, but it seems that a lot of synths incorrectly report this.

comment:11 Changed 10 months ago by mdcurran

  • Milestone changed from near-term to 2011.2

comment:12 Changed 10 months ago by m11chen

  • Type changed from enhancement to task

Hi,

I am trying to call the character description function with the laptop keyboard layout, but pressing NVDA+, twice does not speak anything. Does the gesture map need to be updated to reflect the recent implementation?

Thanks

comment:13 in reply to: ↑ 1 Changed 10 months ago by m11chen

  • Type changed from task to enhancement

Replying to jteh:

The problem with reading phonetic representation is that it presents localisation issues. While we can certainly allow for phonetic reading of the English alphabet, providing similar functionality for all languages is extremely difficult. Furthermore, it is dependent on the synth language in use, not necessarily the NVDA language. We have very similar problems with the current punctuation support.

Hi,

Sorry, didn't mean to change the type to task.

comment:14 Changed 10 months ago by mdcurran

At this point in time your NVDA locale must be either en or zh_TW.
Is it one of these?
What characters were you trying this on?
Do you get any errors, debugwarnings in your log?
In Python console, what output do you get for:
import characterProcessing; characterProcessing.getCharacterDescription('en','d')

You should get the word 'delta'.

Do characterDescriptions.dic files appear in your locale/en and locale/zh_TW directories?

comment:15 Changed 10 months ago by m11chen

Oops, I was testing by running the distribution build from the source. Everything works fine when running the original source tree.

comment:16 Changed 10 months ago by jteh

  • Status changed from assigned to closed
  • Resolution set to fixed

Merged in changeset:main,4150 with some subsequent fixes.

Note: See TracTickets for help on using tickets.