-
Notifications
You must be signed in to change notification settings - Fork 0
Fix braille crash when zh-tw.ctb cannot translate Chinese text #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -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 = "張可揚 <lindsay714322@gmail.com>; 洪鳳恩 <kittyhong0208@gmail.com>" | ||||||
| author = "張可揚 <lindsay714322@gmail.com>; 洪鳳恩 <kittyhong0208@gmail.com>; 蔡頭<tommytsaitou>" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
建議修正格式:
Suggested change
請將 Prompt To Fix With AIThis is a comment left during a code review.
Path: build_addon.py
Line: 22
Comment:
**作者欄位格式問題**
`蔡頭<tommytsaitou>` 缺少名稱與角括號之間的空格,且 `tommytsaitou` 不是有效的電子郵件地址,與其他作者的格式 `姓名 <email>` 不符。若 NVDA 的附加元件管理員或更新機制解析此欄位,可能發生格式錯誤。
建議修正格式:
```suggestion
author = "張可揚 <lindsay714322@gmail.com>; 洪鳳恩 <kittyhong0208@gmail.com>; 蔡頭 <tommytsaitou@example.com>"
```
請將 `tommytsaitou@example.com` 替換為實際的電子郵件地址(若無正式電子郵件,可使用 GitHub 的 noreply 格式)。
How can I resolve this? If you propose a fix, please make it concise. |
||||||
| url = None | ||||||
| version = 1.2.2 | ||||||
| version = 1.2.3beta2 | ||||||
| changelog = \"\"\"Initial release with LINE desktop accessibility support.\"\"\" | ||||||
| docFileName = readme.html | ||||||
| minimumNVDAVersion = 2019.3 | ||||||
|
Comment on lines
13
to
27
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
建議統一格式:
Suggested change
Prompt To Fix With AIThis is a comment left during a code review.
Path: build_addon.py
Line: 13-27
Comment:
**版本字串格式不一致**
`OUTPUT_NAME`(第 13 行)使用 `1.2.3-beta2`(含連字號),但 manifest 中的 `version`(第 27 行)使用 `1.2.3beta2`(無連字號)。若 NVDA 根據 manifest 中的 `version` 欄位進行版本比對,使用者看到的檔案名稱與附加元件管理員顯示的版本號將不一致,可能造成混淆。
建議統一格式:
```suggestion
version = 1.2.3-beta2
```
How can I resolve this? If you propose a fix, please make it concise. |
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
當
handler.buffer原本不是handler.messageBuffer(進入else分支)時,handler.buffer = handler.messageBuffer已被執行,但若隨後region.update()拋出RuntimeError,handler.messageBuffer的內容並未被清除,且handler.buffer已指向messageBuffer。雖然因為
handler.update()從未被呼叫,所以實體點字顯示器不會立刻更新,但handler.buffer的指向已悄然改變。若 NVDA 內部其他機制在此之後呼叫handler.update(),可能會將messageBuffer中殘留的舊內容顯示在點字機上。建議在捕獲例外時,視情況將
handler.buffer還原:Prompt To Fix With AI