Skip to content

Latest commit

 

History

66 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yuman

Yuman is built for Yume, which is an IME for Chinese, so I'll speak Chinese here.

Yuman 是一個爲 Yume (宇夢輸入系統) 構建的 CLI 工具, 僅支持 Linux 操作系統 (fcitx5-yume).

Features

  • 自動從 GitHub 發佈頁安裝及更新 Yume: 執行 yuman update-yume.
  • 自動從 GitHub 發佈頁升級 Yuman 自身: 執行 yuman upgrade.
  • 從指定 URL 或 .tar.gz 文件安裝 Yume: 執行 yuman install [package].
  • 重啓 Fcitx5 服務或重載輸入法配置: yuman restart 及 yuman reload [addon].
  • 導入或移除自定義方案碼表: yuman import [table.txt] 及 yuman yume custom remove <schema>.
  • 配置 Yume 輸入系統: 執行 yuman yume config 打開 TUI 配置工具.

Development

主要依賴:

  • cobra: 命令參數及子命令識别.
  • bubbletea: 構建 TUI 配置界面.
  • dbus: 訪問 Fcitx5 服務的 DBus 接口.
  • i18n: 實現文本多語言支持.

安裝與發佈:

  • 直接安裝: go install github.com/lost-melody/yuman@latest.
  • 手動編譯: 克隆並 cd 到倉庫目錄, 執行 task build.
  • 打包 (含 yuman 文件和 LICENSE, README.md): 執行 task pack.

添加語言翻譯:

  • 如須修訂已有翻譯文本, 可直接編輯相應文件: nvim tr/locales/active.zh-CN.toml.
  • 若代碼中有新增的待翻譯字符串, 則先提取: task i18n_extract.
  • 創建待翻譯稿件 (以 zh-CN 爲例): task i18n_translate LANG=zh-CN.
  • 使用編輯器打開翻譯稿件 (以 nvim 和 zh-CN 爲例): nvim tr/locales/translate.zh-CN.toml.
  • 翻譯完成後, 執行 task i18n_apply LANG=zh-CN 將新翻譯文本合併到已有翻譯文件.

About

The command line helper for the yume engine

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages