Skip to content

更新 libchewing  #838

Closed
Closed

Description

@ottokang

目前 libchewing 已經有新版改用 Rust 的版本,也許可以解決一些記憶體當機問題

不知道 @PCMan 是否有時間可以更新?

Activity

  1. yan12125 commented on Aug 11, 2024

    @yan12125

    我編譯最新版 libchewing 後,產生了 chewing-msvc.dll。換掉現有的 chewing.dll 與詞庫檔案,並修改 python code 中提到 chewing.dll 的地方後,PIME 基本打字沒問題,但有一些狀況:

    • 詞庫編輯器使用的不是 libchewing 的詞庫 - 新版libchewing 改用自訂的詞庫格式,似乎不再使用原本的 sqlite 檔。
    • 無法輸入單獨的聲母。例如:之前 ㄏ<space>會產生ㄏ,現在則不會產生任何字。

    另外,有鑑於先前的 xz 事件,直接在 PIME git 倉庫裡放一份新版的 DLL 可能不是好主意。或許可以修改 CMake 專案,在 PIME 中編譯出一份 DLL。

  2. asdf80730 commented on Nov 12, 2026

    @asdf80730
    Contributor

    Pin result for the PIME block: 0.12.0 (05ae6bcb) is now the PIME submodule pin and python/libchewing/chewing.dll is rebuilt from it (i686-pc-windows-msvc, +crt-static, matching CMakeLists line 12). All 49 chewing_* symbols the PIME python layer calls exist on both pins; chewing_ack is the only new one. Two PIME issues closed by the pin alone: the 66k-phrase dictionary stall (#715: 67360 adds 221.33 s on 0.5.1 vs 10.28 s at 0.12.0) and the missing ㄇㄛ˙ row (#760, now 麼). The payload is word.dat/tsi.dat (+ swkb.dat, symbols.dat); the 0.5.x dictionary.dat/index_tree.dat/pinyin.tab trio is retired.

  3. PCMan commented on Nov 15, 2026

    @PCMan
    Member

    libchewing has been updated in PIME 2.0.

    (Comment generated with assistance from Antigravity + Gemini)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions