Skip to content

Instantly share code, notes, and snippets.

@lotem
Created April 26, 2013 03:22
Show Gist options
  • 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" $@
@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