Skip to content

Instantly share code, notes, and snippets.

@JLHwung
Last active July 24, 2025 17:42
Show Gist options
  • Save JLHwung/796253afc73217f2506b2c1b961facec to your computer and use it in GitHub Desktop.
Save JLHwung/796253afc73217f2506b2c1b961facec to your computer and use it in GitHub Desktop.
Rime定製檔:設定【倉頡西夏形碼輸入法】的反查碼爲夏漢字典序號
  1. http://ccamc.co/fonts_tangut.php 下載夏漢字典序號輸入法壓縮包,將其中的tangut_xhzd.dict.yaml複製到Rime 用戶文件夾
  2. https://github.com/Hulenkius/rime_tangutcjkk 下載倉頡西夏形碼輸入法,將tangutcjkk.schema.yamltangutcjkk.dict.yaml複製到Rime 用戶文件夾。
  3. 將定製檔的 tangutcjkk.custom.yaml 複製到Rime 用戶文件夾。
  4. 確保用戶文件夾下的 default.yaml 已經啓用tangutcjkk輸入法
    schema_list:
      - schema: ...
      - schema: tangutcjkk
  5. 部署輸入法變更
  6. 啓用tangutcjkk輸入法,輸入`可激活反查,效果如圖:
    image
# Rime schema settings
# encoding: utf-8
patch:
recognizer/patterns/reverse_lookup: "`[0-9]*'?$|[0-9]+'"
reverse_lookup:
dictionary: tangut_xhzd
prefix: "`"
suffix: "'"
tips: 〔夏漢字典〕
recognizer:
patterns:
reverse_lookup: "`[0-9]*'?$|[0-9]+'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment