Skip to content

Instantly share code, notes, and snippets.

@lotem
Created April 26, 2013 03:22
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lotem/5464868 to your computer and use it in GitHub Desktop.
Save lotem/5464868 to your computer and use it in GitHub Desktop.
使用 Squirrel 自帶的命令行工具 rime_dict_manager 和 rime_deployer
#!/bin/bash
#
# put this script in ~/Library/Rime, then deploy Rime for Squirrel:
# ./rime_deployer --build . "/Library/Input Methods/Squirrel.app/SharedSupport/"
# see other supported options:
# ./rime_deployer
DYLD_LIBRARY_PATH="/Library/Input Methods/Squirrel.app/Contents/Frameworks" "/Library/Input Methods/Squirrel.app/Contents/MacOS/rime_deployer" $@
#!/bin/bash
#
# put this script in ~/Library/Rime, list existing user dictionaries:
# ./rime_dict_manager --list
# see other supported options:
# ./rime_dict_manager
DYLD_LIBRARY_PATH="/Library/Input Methods/Squirrel.app/Contents/Frameworks" "/Library/Input Methods/Squirrel.app/Contents/MacOS/rime_dict_manager" $@
@wzxu
Copy link

wzxu commented Dec 29, 2013

照 comment 敘述的將 rime_deployer 放入 ~/Library/Rime 且 chmod +x 後可順利執行並列出可用選項,但 ./rime_deployer --build . "/Library/Input Methods/Squirrel.app/Contents/SharedSupport/" 卻回傳 invalid arguments,何解?

./rime_dict_manager -s 也出現 Error opening db 'luna_pinyin.userdb.kct'、failed to merge snapshot file 等錯誤…

@lazywei
Copy link

lazywei commented Apr 14, 2014

-r|--restore xxx.userdb.txt
-r|--restore xxx.userdb.kct.snapshot

這兩個參數的意思分別是什麼呢?

@Sponge-bink
Copy link

用 rime_dict_manager 的 -e 导出了 luna_pinyin.userdb 词库为 txt 文件了,可是设为 UFT-8 编码的 TextEdit.app 打开是乱码,用 TextWrangler 打开也是乱码。
Squirrel 0.9.26.1,macOS 10.13.2。

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