Skip to content

Commit ac884bf

Browse files
authored
Merge ffb3e0f into 14bc6bd
2 parents 14bc6bd + ffb3e0f commit ac884bf

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

source/speechDictHandler/__init__.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from logHandler import log
99
import os
1010
import codecs
11-
import review
1211
import api
12+
import config
1313
from . import dictFormatUpgrade
1414
from .speechDictVars import speechDictsPath
1515

@@ -115,26 +115,9 @@ def sub(self, text):
115115
del self[index]
116116
return text
117117

118-
119118
def processText(text):
120119
if not globalVars.speechDictionaryProcessing:
121120
return text
122-
# #14689: older (IMPROVED and END_INCLUSIVE) UIA consoles have many blank lines,
123-
# which slows processing to a halt
124-
focus = api.getFocusObject()
125-
try:
126-
# get TextInfo implementation for object review mode
127-
textInfo, obj = review.getObjectPosition(focus)
128-
except AttributeError: # no makeTextInfo
129-
textInfo = None
130-
# late import to prevent circular dependency
131-
# ConsoleUIATextInfo is used by IMPROVED and END_INCLUSIVE consoles
132-
from NVDAObjects.UIA.winConsoleUIA import ConsoleUIATextInfo
133-
if isinstance(textInfo, ConsoleUIATextInfo):
134-
stripText = text.rstrip()
135-
IGNORE_TRAILING_WHITESPACE_LENGTH = 100
136-
if len(text) - len(stripText) > IGNORE_TRAILING_WHITESPACE_LENGTH:
137-
text = stripText
138121
for type in dictTypes:
139122
text=dictionaries[type].sub(text)
140123
return text

user_docs/en/changes.t2t

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ This only worked for Bluetooth Serial ports before. (#14524)
5555
Instead NVDA reports that the link has no destination. (#14723)
5656
- Several stability fixes to input/output for braille displays, resulting in less frequent errors and crashes of NVDA. (#14627)
5757
- NVDA again recovers from many more situations such as applications that stop responding which previously caused it to freeze completely. (#14759)
58-
- When forcing UIA support with certain terminal and consoles, a bug is fixed which caused a freeze and the log file to be spammed. (#14689)
5958
- The destination of graphic links are now correctly reported in Chrome and Edge. (#14779)
6059
-
6160

0 commit comments

Comments
 (0)