Open dangero2000 opened 1 year ago
Thanks for the report. Can you test the issue with the latest dev build of the add-on? You can get it at https://www.nvaccess.org/addonStore/legacy?file=brlext-dev.
Thanks for the link. I just tested the dev build, and unfortunately, the issue still persists. Do you want me to send my entire log to make it easier to trace?
I was able to reproduce the issue. There is a temporary solution for this. You can prevent this bug by disabling the Undefined Character Representation feature, by following these steps:
I'll try to fix it ASAP. Thank you again for the report.
Once this is done, you should be able to select the Japanese 6 Dot Computer Braille as the output braille table without experiencing the error.
It works! :-) Thanks for the help.
If I go to the NVDA settings and change my braille input/output to Japanese 6 dot Computer braille, the last text reported by the display will not change, and I have to switch back to seemingly any other output table or disable the addon entirely to continue using braille. This issue is not present if I use Kantenji.
After testing Braille Extender with NVDA alpha-28231,648a5d34 (2023.2.0.28231), I have determined that this issue is specific to NVDA JP. Regular versions of NVDA only list Japanese Kantanji as a viable output table, and you cannot input in Japanese at all. The computer braille table only seems to exist in NVDA JP.
Here is the traceback:
Traceback (most recent call last): File "eventHandler.pyc", line 300, in executeEvent File "eventHandler.pyc", line 101, in init File "eventHandler.pyc", line 110, in next File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender__init.py", line 223, in event_gainFocus if self.backupbrailleTableDict != config.conf["braille"]["translationTable"]: self.reloadBrailleTables() File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\init.py", line 285, in reloadBrailleTables undefinedchars.setUndefinedChar() File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\undefinedchars.py", line 81, in setUndefinedChar f"undefined {HUCDotPattern}", "ASCII")) File "louis\init__.pyc", line 488, in compileString RuntimeError: Can't compile entry: tables ['D:\NVDAJP\louis\tables\ja-jp-comp6.utb', 'D:\NVDAJP\louis\tables\braille-patterns.cti'], inString b'undefined 12345678-78-12345678' ERROR - eventHandler.executeEvent (21:46:18.944) - MainThread (4592): error executing event: gainFocus on <NVDAObjects.Dynamic_UIItemListItemUIA object at 0x064C13F0> with extra args of {} Traceback (most recent call last): File "eventHandler.pyc", line 300, in executeEvent File "eventHandler.pyc", line 101, in init File "eventHandler.pyc", line 110, in next File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender__init.py", line 224, in event_gainFocus nextHandler() File "eventHandler.pyc", line 110, in next File "appModules\explorer.pyc", line 506, in event_gainFocus File "eventHandler.pyc", line 110, in next File "NVDAObjects\UIA__init__.pyc", line 1341, in event_gainFocus File "NVDAObjects\init.pyc", line 1283, in event_gainFocus File "braille.pyc", line 2486, in handleGainFocus File "braille.pyc", line 2491, in _doNewObject File "braille.pyc", line 1949, in getFocusContextRegions File "braille.pyc", line 878, in update File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\patches.py", line 164, in update undefinedchars.undefinedCharProcess(self) File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\undefinedchars.py", line 204, in undefinedCharProcess startTag = getTextInBraille(startTag) File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\utils.py", line 161, in getTextInBraille res = [louis.translateString(table, l, mode=louis.ucBrl|louis.dotsIO) for l in t if l] File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\utils.py", line 161, in
res = [louis.translateString(table, l, mode=louis.ucBrl|louis.dotsIO) for l in t if l]
File "louis\ init__.pyc", line 317, in translateString
RuntimeError: Can't translate: tables ['D:\NVDAJP\louis\tables\ja-jp-comp6.utb', 'D:\NVDAJP\louis\tables\braille-patterns.cti'], inbuf b'[\x00\x00\x00', typeform None, mode 68
ERROR - eventHandler.executeEvent (21:46:19.752) - MainThread (4592):
error executing event: gainFocus on <NVDAObjects.Dynamic_MultitaskingViewFrameListItemListItemUIA object at 0x08317870> with extra args of {}
Traceback (most recent call last):
File "eventHandler.pyc", line 300, in executeEvent
File "eventHandler.pyc", line 101, in init
File "eventHandler.pyc", line 110, in next
File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender__init.py", line 224, in event_gainFocus
nextHandler()
File "eventHandler.pyc", line 110, in next
File "appModules\explorer.pyc", line 506, in event_gainFocus
File "eventHandler.pyc", line 110, in next
File "NVDAObjects\UIA\init__.pyc", line 1341, in event_gainFocus
File "NVDAObjects\init.pyc", line 1283, in event_gainFocus
File "braille.pyc", line 2486, in handleGainFocus
File "braille.pyc", line 2491, in _doNewObject
File "braille.pyc", line 1985, in getFocusRegions
File "braille.pyc", line 878, in update
File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\patches.py", line 164, in update
undefinedchars.undefinedCharProcess(self)
File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\undefinedchars.py", line 204, in undefinedCharProcess
startTag = getTextInBraille(startTag)
File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\utils.py", line 161, in getTextInBraille
res = [louis.translateString(table, l, mode=louis.ucBrl|louis.dotsIO) for l in t if l]
File "D:\NVDAJP\userConfig\addons\BrailleExtender\globalPlugins\brailleExtender\utils.py", line 161, in
res = [louis.translateString(table, l, mode=louis.ucBrl|louis.dotsIO) for l in t if l]
File "louis\ init__.pyc", line 317, in translateString
RuntimeError: Can't translate: tables ['D:\NVDAJP\louis\tables\ja-jp-comp6.utb', 'D:\NVDAJP\louis\tables\braille-patterns.cti'], inbuf b'[\x00\x00\x00', typeform None, mode 68
ERROR - eventHandler.executeEvent (21:46:20.463) - MainThread (4592):
error executing event: gainFocus on <NVDAObjects.Dynamic_MultitaskingViewFrameListItemListItemUIA object at 0x03CAB0F0> with extra args of {}