~nishimotz/nvdajp/characterDescriptions

Viewing all changes in revision 4147.

  • Committer: Michael Curran
  • Date: 2011-04-04 00:54:26 UTC
  • Revision ID: mick@kulgan.net-20110404005426-nzken7kcc3m9449d
* speech.speakSpelling, speech._speakSpellingGen and speech.processSymbol now all take a locale argument and a useCharacterDescriptions argument. In the case of speakSpelling both of these are optional, but for the other internal functions these are manditory.  SpeakSpelling if locale is not provided defaults to either the current synth's language if it has one, or instead NVDA's current locale. SpeakSpelling's useCharacterDescriptions by default is false.
* speech.processSymbol: if useCharacterDescriptions is True, then characterProcessing.getCharacterDescription is used to fetch a character description, and if it finds one, it is returned straight away. If it does not find one, or character descriptions were not requested, then the function stays as is.

* script_review_current{word|Line} scripts  now pass useCharacterDescriptions as true to speech.speakSpelling if the script has been executed more than twice (i.e. pressed three times). So, once says the string as is, twice spells the string, three times or more spells with character descriptions.
* GlobalCommands.script_review_currentCharacter: pressing twice now announces the character with character descriptions, and three times now speaks the hex representation.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: