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" $@ |
-r|--restore xxx.userdb.txt
-r|--restore xxx.userdb.kct.snapshot
這兩個參數的意思分別是什麼呢?
用 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
推荐一个搜狗词库: http://pan.baidu.com/share/link?shareid=141610&uk=2902507575&third=0
来源: http://blog.sina.com.cn/s/blog_610247160101e6rh.html