Repository navigation
Show the candidate page number (PgUp 1/17 PgDn) in the candidate window - #927
DaveTseng2019 wants to merge 4 commits into
Conversation
|
Hi @DaveTseng2019, thank you for your contribution! Currently, I am focused on resolving several critical stability and IPC issues in the core framework. Because of this, pull requests introducing new features are temporarily on hold and will be reviewed once the stability fixes are complete. Thank you for your patience and understanding! 感謝你的貢獻與 PR! 目前我正專注於修復核心架構與各項穩定性問題(Bug fixes),因此新功能的 PR 會在穩定性問題解決告一段落後再陸續進行審核,感謝你的耐心與體諒! |
2c76cce to
25ea8e8
Compare
|
The (Review comment generated on behalf of @PCMan with AI assistance from Google Antigravity + Gemini 3.1 Pro) |
|
I'll withhold all new features for now. Let's finalize v2.0 first to get the framework to a stable and robust state. Then we start adding new features on top of v2.0. (Review comment generated with assistance from Antigravity + Gemini 4 Argon) |
|
兩個 PR 都停在舊 master 上,需要 rebase 到目前的 master( This head still sits on the pre-#1047 master; a rebase onto the current master ( |
|
REBASE NOTES Rebase notes (2026-11-21, omp)Base:
|
The next commit passes the candidate page from the backend to the window, which needs this API. - Move the libIME2 submodule to the commit that adds CandidateWindow::setPageInfo(). Architecture and design by Dave Tseng. Implementation generated with AI assistance from Claude Code (Claude Opus 5.5). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Backends page their candidates, but the window only gets the current page, so users cannot see that more candidates exist. - Read optional "candidatePage" (1-based) and "candidatePageCount" that come with "candidateList", and hand them to the candidate window through TextService::setCandidatePage(). - A list without them resets the page to 0/0, so backends that do not send it keep today's window, and an old page number never sticks. Architecture and design by Dave Tseng. Implementation generated with AI assistance from Claude Code (Claude Opus 5.5). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lets a Python input method tell the candidate window which page it shows and how many pages there are. - setCandidateList(cand, page=0, pageCount=0). When pageCount > 1 the reply also carries "candidatePage" and "candidatePageCount". - Existing callers are unchanged and send no page. Architecture and design by Dave Tseng. Implementation generated with AI assistance from Claude Code (Claude Opus 5.5). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With 9 candidates per page, 幣 (ㄅㄧˋ) is on page 2 of 17, but the window gave no hint that more pages exist, so it looked missing. - Pass libchewing's cand_CurrentPage() + 1 and cand_TotalPage() with the candidate list. Architecture and design by Dave Tseng. Implementation generated with AI assistance from Claude Code (Claude Opus 5.5). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25ea8e8 to
64daa60
Compare
|
Rebased onto current One difference from the notes: the
As before, libIME2#6 has to be merged first, and the gitlink updated if its merge SHA differs. 已 rebase 到目前的 master( |
|
分支已經 rebase 到目前的 master( The branch is already rebased onto the current master ( Please keep the
(Comment generated with assistance from Claude Code + Claude Opus 5.5) |
The candidate window only shows the current page and gives no hint that more pages exist. In 新酷音 with 9 candidates per page, 幣 (ㄅㄧˋ) is on page 2 of 17, so it looks like it cannot be typed. With this PR the window shows
PgUp 1/17 PgDnin grey at the bottom right when there is more than one page.Depends on EasyIME/libIME2#6. Merge that first; until then the submodule commit is only in the fork
DaveTseng2019/libIME2. The submodule points to libIME2#6 on top of78e6104, the libIME2 commit master uses today, so this PR does not pull in other libIME2 changes.CandidateWindow::setPageInfo().candidatePage(1-based) andcandidatePageCountthat come withcandidateList, and pass them to the window. A list without them resets the page to 0/0, so other backends keep today's window and an old page number never sticks.setCandidateList(cand, page=0, pageCount=0); whenpageCount > 1the reply carries the two fields. Existing callers are unchanged.cand_CurrentPage() + 1andcand_TotalPage()with the list.Rebased on current master to resolve the libIME2 submodule conflict; the code changes are the same as before.
Testing: built x86/x64
PIMETextService.dlland the installer, installed on Windows 11 x64, and checked with 新酷音 that ㄅㄧˋ then ↓ shows1/17, PageDown shows2/17with 幣 on it, and a one-page list shows no page line. No unit test: the TSF window and the IPC fields have no test harness yet.Architecture and design by Dave Tseng. Implementation generated with AI assistance from Claude Code (Claude Opus 5.5).
🤖 Generated with Claude Code