{"id":13590989,"url":"https://github.com/nk2028/rime-tupa","last_synced_at":"2026-01-16T13:44:22.144Z","repository":{"id":39663131,"uuid":"470453345","full_name":"nk2028/rime-tupa","owner":"nk2028","description":"rime 切韻拼音輸入方案","archived":false,"fork":false,"pushed_at":"2024-11-22T14:35:16.000Z","size":9007,"stargazers_count":38,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-03T05:02:30.266Z","etag":null,"topics":["historical-linguistics","input-method","middle-chinese","rime","rime-schema"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nk2028.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-16T06:03:14.000Z","updated_at":"2025-01-16T19:37:39.000Z","dependencies_parsed_at":"2025-03-03T05:12:35.987Z","dependency_job_id":null,"html_url":"https://github.com/nk2028/rime-tupa","commit_stats":null,"previous_names":["ayaka14732/rime-tupa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nk2028/rime-tupa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nk2028%2Frime-tupa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nk2028%2Frime-tupa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nk2028%2Frime-tupa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nk2028%2Frime-tupa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nk2028","download_url":"https://codeload.github.com/nk2028/rime-tupa/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nk2028%2Frime-tupa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["historical-linguistics","input-method","middle-chinese","rime","rime-schema"],"created_at":"2024-08-01T16:00:52.502Z","updated_at":"2026-01-16T13:44:22.124Z","avatar_url":"https://github.com/nk2028.png","language":null,"funding_links":[],"categories":["漢語方言"],"sub_categories":[],"readme":"# rime-tupa\n\nrime 切韻拼音輸入方案\n\n[切韻拼音](https://zhuanlan.zhihu.com/p/478751152)（Tshet-uinh Phonetic Alphabet，可簡稱切拼或 TUPA）是爲切韻音系創制的拼音方案，用於拼寫與切韻音系相合的南北朝中期到隋初中古漢語。\n\n本輸入方案旨在爲 rime 輸入法增加切韻拼音輸入支援，使得用戶可以簡便地利用切韻拼音輸入中文字，是學習漢語音韻學的有效工具。除本切韻拼音輸入方案外，用家亦可利用[切韻音系自動推導器](https://nk2028.shn.hk/tshet-uinh-autoderiver/)查詢漢字的切韻拼音。\n\n## 功能\n\n1\\. 直接輸入切韻拼音\n\n![](demo/1.png)\n\n2\\. 聲母簡拼\n\n![](demo/2.png)\n\n3\\. 普通話反查切韻（先按 \u003ckbd\u003e`\u003c/kbd\u003e，再輸入普通話）\n\n![](demo/3.png)\n\n4\\. 粵語反查切韻（先按 \u003ckbd\u003ef\u003c/kbd\u003e，再輸入粵語）\n\n![](demo/4.png)\n\n※ 註：反查功能尚不完善，某些詞語無法顯示讀音。\n\n## 安裝\n\n### Windows 安裝方法\n\n**第一步：安裝小狼毫前臺程式**\n\n※ 註：如果你之前已經安裝過小狼毫，請轉至第二步。\n\n從 rime 官方網站 \u003chttps://rime.im/\u003e 下載並安裝小狼毫輸入法。\n\n**第二步：下載切韻拼音**\n\n用 WinKey + \u003ckbd\u003eSpace\u003c/kbd\u003e 切換至小狼毫輸入法。\n\n右擊「中」，點選「輸入法設定」。\n\n![](https://camo.githubusercontent.com/aabb02dd5cd3dc8fbbff33efd6201707ad0fad94cb1e6ce913ce36684c619325/68747470733a2f2f692e696d6775722e636f6d2f5858484d5343432e706e67)\n\n點擊「獲取更多輸入方案...」。\n\n![](https://camo.githubusercontent.com/97f42eb9aff6a44934777e2568ff5e6dc7a648266bbdc01739ec09d5810d718e/68747470733a2f2f692e696d6775722e636f6d2f657578684543562e706e67)\n\n在跳出的視窗中鍵入 `cantonese` 以安裝粵語輸入方案（用於反查），按下 \u003ckbd\u003eEnter\u003c/kbd\u003e。然後鍵入 `nk2028/rime-tupa`，按下 \u003ckbd\u003eEnter\u003c/kbd\u003e。\n\n![](https://camo.githubusercontent.com/9609be7beef59bc18bb006aa95c8d17238f2ad45e0f88a274bc03d3984bad1c1/68747470733a2f2f692e696d6775722e636f6d2f315871617959382e706e67)\n\n**第三步：選取輸入法**\n\n關閉跳出的視窗，返回「輸入法設定」，勾選「切韻拼音」，然後點擊「中」。\n\n然後選擇符合自己喜好的佈景主題，再點擊「中」完成設定。\n\n![](https://camo.githubusercontent.com/59daa1cbd01f2a9ca20674be4f2cdaad02a047cfa31c69e213caa278e8c2b222/68747470733a2f2f692e696d6775722e636f6d2f354e6d476247332e706e67)\n\n回到選單點擊「重新部署」，等待程式處理詞庫資料。\n\n![](https://camo.githubusercontent.com/d0d5806ce3cafbb50f3dfcf363163b9a67f2e2b1432e437f59e6ab57fd5298c5/68747470733a2f2f692e696d6775722e636f6d2f7a6b507964624c2e706e67)\n\n然後按下 \u003ckbd\u003eF4\u003c/kbd\u003e（或者 \u003ckbd\u003eCtrl\u003c/kbd\u003e 加 \u003ckbd\u003e`\u003c/kbd\u003e，注意是數字 1 左邊的按鍵，並非單引號！），就可以看到「切韻拼音」了（你可能要按下 \u003ckbd\u003e=\u003c/kbd\u003e 翻頁纔可以找到）。\n\n### macOS 安裝方法\n\n**第一步：安裝鼠須管前臺程式**\n\n※ 註：如果你之前已經安裝過鼠須管，請轉至第二步。\n\n從 rime 官方網站 \u003chttps://rime.im/\u003e 下載並安裝鼠須管輸入法。\n\n**第二步：下載切韻拼音**\n\n打開 Terminal，複製粘貼以下命令：\n\n```sh\ncurl -fsSL https://git.io/rime-install | bash -s -- cantonese nk2028/rime-tupa custom:set:config=default,key=installed_from,value=nk2028/rime-tupa custom:clear_schema_list custom:add:schema=tupa custom:add:schema=luna_pinyin custom:add:schema=jyut6ping3\n```\n\n在命令執行過程中，可能會跳出視窗提示安裝 git，要點選允許，否則無法正常安裝。\n\n註：[怎樣打開 Terminal？](https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac)\n\n（或使用 \u003ckbd\u003eCtrl\u003c/kbd\u003e + \u003ckbd\u003eEnter\u003c/kbd\u003e，用 Spotlight 搜尋並開啓 terminal）\n\n**第三步：選取輸入法**\n\n依次點按以下兩個按鈕：\n\n![](https://camo.githubusercontent.com/d95f9084049b7f97711737fcaaa3cc82411764da5bb6da3bb1313d5742075a64/68747470733a2f2f692e696d6775722e636f6d2f366139435331522e6a7067)\n\n然後按下 \u003ckbd\u003eCtrl\u003c/kbd\u003e 加 \u003ckbd\u003e`\u003c/kbd\u003e（注意是數字 1 左邊的按鍵，並非單引號！），就可以看到「切韻拼音」了（你可能要按下 \u003ckbd\u003e=\u003c/kbd\u003e 翻頁纔可以找到）。\n\n**可選步驟：自定義外觀**\n\n將[此配置檔](https://gist.githubusercontent.com/laubonghaudoi/40f4ad4036a321a21fb2f32229892f55/raw/958e050a57cc3da7abe0ba16510d61e95ad2b9ee/squirrel.custom.yaml)保存在「rime 用戶文件夾」中，重新部署，就可以見到外觀變化了。\n\n### Arch Linux 安裝方法\n\n**第一步：安裝 Fcitx5 輸入法程式**\n\n※ 註：詳見 [Fcitx5 - ArchWiki](https://wiki.archlinux.org/index.php/Fcitx5)。\n\n```sh\nsudo pacman -S fcitx5 fcitx5-qt fcitx5-gtk fcitx5-rime kcm-fcitx5\n```\n\n編輯 `/etc/environment`，加入：\n\n```sh\nGTK_IM_MODULE=fcitx\nQT_IM_MODULE=fcitx\nXMODIFIERS=@im=fcitx\n```\n\n然後重新登入。\n\n（※ 注意：若您使用 Wayland，請參閱 https://wiki.archlinux.org/title/Fcitx5 及 https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland 設定 Fcitx5）\n\n（你可能需要手動啓動 Fcitx5 程式）\n\n開啓 Fcitx5 設定，啓用 rime。\n\n**第二步：安裝切韻拼音**\n\n從 AUR 安裝 [`rime-tupa`](https://aur.archlinux.org/packages/rime-tupa)。\n\n```sh\nyay -S rime-tupa\n```\n\n新建 `~/.local/share/fcitx5/rime/default.custom.yaml`：\n\n```yaml\npatch:\n  schema_list:\n    - schema: tupa\n```\n\n然後重新部署。\n\n**可選步驟：自定義外觀**\n\n可以使用 [hosxy/Fcitx5-Material-Color](https://github.com/hosxy/Fcitx5-Material-Color) 等佈景主題。\n\n### FreeBSD 安裝方法\n\n**第一步：安裝 Fcitx5 輸入法程式**\n\n```sh\npkg install fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-qt zh-fcitx5-rime zh-rime-essay\n```\n\n安裝時會提示執行以下命令：\n\n```sh\ncp /usr/local/share/applications/org.fcitx.Fcitx5.desktop ~/.config/autostart/\n```\n\n新建 `~/.xprofile`：\n\n```sh\nexport GTK_IM_MODULE=fcitx\nexport QT_IM_MODULE=fcitx\nexport XMODIFIERS=@im=fcitx\n```\n\n（※ 注意：若您使用 Wayland，請參閱 https://wiki.archlinux.org/title/Fcitx5 及 https://fcitx-im.org/wiki/Using_Fcitx_5_on_Wayland 設定 Fcitx5）\n\n重新啓動系統後，在輸入法圖標上點按右鍵，開啓 Fcitx5 配置，然後添加 rime。\n\n**第二步：安裝切韻拼音**\n\n由於 pkg 並未包含切韻拼音，需要手動安裝。\n\n```sh\nmkdir -p ~/.local/share/fcitx5/rime/opencc\ngit clone https://github.com/nk2028/rime-tupa.git ~/.rime-tupa\nln -s ~/.rime-tupa/*.yaml ~/.local/share/fcitx5/rime\ngit clone https://github.com/rime/rime-cantonese.git ~/.rime-cantonese\nln -s ~/.rime-cantonese/*.yaml ~/.local/share/fcitx5/rime\nln -s ~/.rime-cantonese/opencc/* ~/.local/share/fcitx5/rime/opencc\n```\n\n新建 `~/.local/share/fcitx5/rime/default.custom.yaml`：\n\n```yaml\npatch:\n  schema_list:\n    - schema: tupa\n```\n\n然後重新部署。\n\n**可選步驟：自定義外觀**\n\n可以使用 [hosxy/Fcitx5-Material-Color](https://github.com/hosxy/Fcitx5-Material-Color) 等佈景主題。\n\n**卸載方法**\n\n卸載切韻拼音：\n\n```sh\nrm -rf ~/.rime-tupa\nrm -rf ~/.rime-cantonese\nfind -L ~/.local/share/fcitx5/rime -maxdepth 1 -type l -exec rm -- {} +\nfind -L ~/.local/share/fcitx5/rime/opencc -maxdepth 1 -type l -exec rm -- {} +\nrm -f ~/.local/share/fcitx5/rime/default.custom.yaml\n```\n\n卸載 Fcitx5 輸入法程式：\n\n```sh\npkg remove fcitx5 fcitx5-configtool fcitx5-gtk fcitx5-qt zh-fcitx5-rime zh-rime-essay\nrm -f ~/.xprofile\n```\n\n## 開發\n\n本倉庫資料來源爲 [nk2028/rime-dict-source](https://github.com/nk2028/rime-dict-source)。\n\n構建方法：\n\n```sh\ngit clone https://github.com/nk2028/rime-dict-source.git\ngit clone https://github.com/nk2028/rime-dict-builder.git\n(cd rime-dict-builder; npm i)\ngit clone https://github.com/nk2028/rime-tupa.git\ncd rime-tupa\nnode ../rime-dict-builder/build.js  # 可加參數 `--help` 查看可用選項\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnk2028%2Frime-tupa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnk2028%2Frime-tupa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnk2028%2Frime-tupa/lists"}