From 3f37a2278191a067c70fa2522da834a959052982 Mon Sep 17 00:00:00 2001 From: Keyang556 <65295310+keyang556@users.noreply.github.com> Date: Thu, 9 Apr 2026 12:51:00 +0800 Subject: [PATCH 1/2] 1.23 beta2 --- build_addon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_addon.py b/build_addon.py index 2560673..1fdd5e2 100644 --- a/build_addon.py +++ b/build_addon.py @@ -10,7 +10,7 @@ import markdown ADDON_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "addon") -OUTPUT_NAME = "lineDesktop-1.2.2.nvda-addon" +OUTPUT_NAME = "lineDesktop-1.2.3-beta2.nvda-addon" OUTPUT_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), OUTPUT_NAME) # Manifest content matching the format of working NVDA add-ons @@ -19,9 +19,9 @@ summary = "LINE Desktop Accessibility" description = \"\"\"Enhances NVDA accessibility support for the LINE desktop application on Windows. Provides improved navigation for chat lists, messages, contacts, and message input.\"\"\" -author = "張可揚 ; 洪鳳恩 " +author = "張可揚 ; 洪鳳恩 ; 蔡頭" url = None -version = 1.2.2 +version = 1.2.3beta2 changelog = \"\"\"Initial release with LINE desktop accessibility support.\"\"\" docFileName = readme.html minimumNVDAVersion = 2019.3 From 365fe869d2dc9d80c1aa8beaf3681e1bdf5a023c Mon Sep 17 00:00:00 2001 From: Keyang556 <65295310+keyang556@users.noreply.github.com> Date: Thu, 9 Apr 2026 13:02:20 +0800 Subject: [PATCH 2/2] Fix braille crash when zh-tw.ctb cannot translate Chinese text Wrap braille display calls in message() with a try-except to gracefully handle RuntimeError from liblouis when it fails to translate Chinese characters (e.g. with the zh-tw.ctb table). Speech output is unaffected; braille output is silently skipped with a debug log entry. Co-Authored-By: Claude Sonnet 4.6 --- addon/appModules/_utils.py | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/addon/appModules/_utils.py b/addon/appModules/_utils.py index 4e1d3bb..ae7e462 100644 --- a/addon/appModules/_utils.py +++ b/addon/appModules/_utils.py @@ -84,13 +84,16 @@ def message(text): handler = braille.handler assert handler - if handler.buffer is handler.messageBuffer: - handler.buffer.clear() - else: - handler.buffer = handler.messageBuffer - - region = braille.TextRegion(text) - region.update() - handler.buffer.regions.append(region) - handler.buffer.update() - handler.update() + try: + if handler.buffer is handler.messageBuffer: + handler.buffer.clear() + else: + handler.buffer = handler.messageBuffer + + region = braille.TextRegion(text) + region.update() + handler.buffer.regions.append(region) + handler.buffer.update() + handler.update() + except RuntimeError: + log.debug("Braille translation failed for text, skipping braille output", exc_info=True)