Created
April 26, 2013 03:22
-
-
Save lotem/5464868 to your computer and use it in GitHub Desktop.
使用 Squirrel 自帶的命令行工具 rime_dict_manager 和 rime_deployer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" $@ |
用 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
這兩個參數的意思分別是什麼呢?