Skip to content

WIN10 倉頡系列組字後按空白不出字 #864

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

Open
Kernoli886 opened this issue May 16, 2025 · 0 comments
Open

WIN10 倉頡系列組字後按空白不出字 #864

Kernoli886 opened this issue May 16, 2025 · 0 comments

Comments

@Kernoli886
Copy link

Kernoli886 commented May 16, 2025

問題描述

似乎在不知道什麼時候開始發生倉頡系列組字後按空白不出字,
不論是移除 PIME 重開機後, 再重新安裝, 仍然是倉頡組字後按空白不出字,
但是, 蝦米系列輸入卻是可以的。

實際情形

在使用 PIME 輸入倉頡時,發生組字失敗不出字,並且在後端錯誤日誌中出現:
[PIMELauncher] [error] [Backend error] Traceback (most recent call last):
File "server.py", line 87, in run
ret = client.handleRequest(msg)
File "server.py", line 50, in handleRequest
reply = service.handleRequest(msg)
File "C:\Program Files (x86)\PIME\python\textService.py", line 98, in handleRequest
ret = self.onKeyDown(keyEvent)
File "C:\Program Files (x86)\PIME\python\input_methods\checj\checj_ime.py", line 95, in onKeyDown
KeyState = self.cinbase.onKeyDown(self, keyEvent, CinTable, RCinTable, HCinTable)
File "C:\Program Files (x86)\PIME\python\cinbase_init_.py", line 1802, in onKeyDown
currentCandPageCount = math.ceil(len(candidates) / int(cbTS.candPerPage)) # 目前的選字清單總頁數
ValueError: invalid literal for int() with base 10:

透過手動修改 C:\Program Files (x86)\PIME\python\cinbase\__init__.py 檔案 1802行前,
增加了對 cbTS.candPerPage 值後,先前組字後無法出字的問題已不再出現。

cbTS.candPerPage = 9
currentCandPageCount = math.ceil(len(candidates) / cbTS.candPerPage) # 目前的選字清單總頁數

在我的設定介面[一般設定][介面外觀]上,全部沒有值, 或許[每頁顯示候選字個數]全部給上值也可以解決。

執行環境

PIME: 1.3.0-stable, 1.3.0-beta2
OS: Windows 10 專業版x64 19045.5737

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant