OSDN Git Service

speech.processSymbol: also pass the symbol through the speech dictionaries before...
authorMichael Curran <mick@kulgan.net>
Thu, 30 Sep 2010 04:59:32 +0000 (14:59 +1000)
committerMichael Curran <mick@kulgan.net>
Thu, 30 Sep 2010 04:59:32 +0000 (14:59 +1000)
commit18a95b54d433ee24c49ddae8d50a3045d5b05d08
treeb14da0148b2ad94fec0c3069a68375c3f7bf399d
parentdb9b9db9e461e5b306af115a69670c6318c14302
speech.processSymbol: also pass the symbol through the speech dictionaries before looking up the symbol in characterSymbols. speech.processText: pass the text through the speech dictionaries before anything else so that the speech dictionaries have more control over the text. These changes allow speech dictionaries to affect more of the text. E.g. now adding an entry for the comma symbol, say mapping it to the word dingbat, will now mean that NVDA will say dingbat when arrowing by character over the comma, or when selecting the comma, and it will even say dingbat when typing the comma, if speak tyed characters is enabled. Previously NVDA would only say dingbat if the comma was  a character in a larger peace of text being spoken.
source/speech.py