预览
1). 黑色主题
2). 白色主题
编译&安装
1. 获得鼠鬚管
源码
git clone --recursive --depth 1 git@github.com:rime/squirrel.git
2. 使用brew安装编译时依赖
brew install cmake boost
2. 预处理
- 从 App Store 安装 XCode
- 安装完 XCode 之后, 安装 command-line-tools
xcode-select --install
3. 构建依赖: CMake
,boost
CMake 编译安装
git clone --recursive --depth 1 git@github.com:Kitware/CMake.git CMake
cd CMake && mkdir build && cd build && \
../bootstrap --parallel=12 --prefix=${CMAKE_HOME} && \
make -j12 && \
make install
# 验证
cmake --version
# 输出:
cmake version 3.24.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
编译OpenCC时高版本CMake依赖 Python 2
./configure --prefix=${HOME}/local/python2 --enable-optimizations && \
make && make install
boost构建: 更新至1.82.0
版本
brew install icu4c
# export BUILD_UNIVERSAL=1
# 引入环境变量
export BOOST_ROOT=/Volumes/sm/servers/boost
./bootstrap.sh --prefix=${BOOST_ROOT} --with-libraries=all --with-icu=$BREW_OPT/icu4c && \
./b2 headers && \
./b2 -j12 --prefix=${BOOST_ROOT} install # 默认安装在/usr/local目录下
3. 构建Squirrel
依赖
export PYTHON_HOME=${HOME}/local/python2
export PATH=${PYTHON_HOME}/bin:$PATH
make ARCHS=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}') deps
make -j12 ARCHS=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}') # do not use make -jX when make deps
4. 构建成功,安装Squirrel
sudo make ARCHS=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}') install
5. 東風破(plum)
Rime
引入了配置工具東風破/plum, 可以方便下载默认配置
git clone --depth 1 git@github.com:rime/plum.git
cd plum && \
./rime-install :preset && \
./rime-install --select :all lotem/rime-forge/lotem-packages.conf
修改 installation.yml
、squirrel.yml
、default.yml
6. 自用配置
7. 快捷键
CTRL-.
可以切换全\半角标点符号CTRL-SHIFT-<数字>
可切换输入法(简体、繁体)SHIFT-Fn-DELETE
从词库中删除错误的词, 然后使用方向键选中词
cd librime/plugins
gcr git@github:lotem/librime-octagram.git
gcr git@github.com:lotem/librime-octagram.git
gcr git@github.com:rime/librime-predict.git
make CMAKE_OSX_ARCHITECTURES=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}') deps
make CMAKE_OSX_ARCHITECTURES=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}')
make CMAKE_OSX_ARCHITECTURES=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}') install
cd ..
make copy-rime-binaries copy-opencc-data
make ARCHS=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}')
make ARCHS=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}') archive
sudo make ARCHS=$(uname -m) MACOSX_DEPLOYMENT_TARGET=$(sw_vers | grep "ProductVersion" | awk '/ProductVersion:/ {print $2}') install
change-log
- 2016/11/20–2017/1/3. 试用感觉良好.
- 更新2017/1/26. 更新一版重新编译安装,稳定了许多.
- 更新2017/3/8. 扩充词库
- 更新2017/5/5. Upgrade boost 1.64.0
- 更新2017/6/5. 更新预览图
- 更新2017/9/25. 更新boost 1.65.1 更新前清理原有版本
- 更新2018/4/17. 引入
東風破
配置工具, 更新boost 1.67 - 更新2018/8/25. cmake & boost 並行化加速編譯, 更新boost 1.68
- 更新2018/9/20. macOS 10.14
- 更新2019/6/17. Squirrel 0.12.0
- 更新2019/11/06. macOS 10.15 Squirrel 0.14.0 Boost 1.71
- 更新2019/12/18. macOS 10.15.2 Squirrel 0.14.0 Boost 1.72.0 CMake 3.16.1
- 更新2020/05/13. macOS 10.15.4
- 更新2021/02/01. macOS 11.1 Boost 1.75.0 CMake 3.19.4 ARCHS=’x86_64’
- 更新2021/06/07. macOS 11.4 Boost 1.76.0 CMake 3.20.3 ARCHS=’x86_64’
- 更新2021/09/23. macOS 11.6 Boost 1.77.0 CMake 3.21.3 ARCHS=’x86_64’
- 更新2021/10/20. macOS 12.0.1 ARCHS=’x86_64’
- 更新2022/08/16. macOS 12.5 Boost 1.80.0 CMake 3.24.0 ARCHS=’x86_64’ HEAD[fb7e36d]
参考:
「鼠须管」的调教笔记 膜拜大神