鼠须管基本使用教程(Mac)

4,923 阅读1分钟

官网: github.com/rime

五笔:github.com/rime/rime-w…

国际音标:github.com/rime/rime-i…

安装

brew cask install squirrel

设置

如果添加有问题请重启电脑,再重新添加输入法

配置文件所在目录 ~/Library/Rime/*

  1. 添加 系统设置 -> 键盘 -> 添加输入法(鼠须管)

  2. 主题

    预设主题参考 build/squirrel.yaml 下的 preset_color_schemes 下内容

    1. 创建 ~/Library/Rime/squirrel.custom.yaml 文件

    2. 内容如下

      patch:
        style:
          color_scheme: apathy
      
    3. Option + Control + ` 重新部署

安装与配置其他输入法

每次都要重新编译

创建 ~/Library/Rime/default.custom.yaml 文件

  1. 安装输入法管理工具

    plum(要注意安装的目录,一会要用到目录下的命令)

    curl -fsSL https://git.io/rime-install | bash
    
  2. 五笔与拼音反查

    1. 安装

      # 需要反查才安装 pinyin-simp
      ./plum/rime-install wubi pinyin-simp
      
    2. 配置

      patch:
        schema_list:
          - schema: wubi_pinyin
        'menu/page_size': 6 # 一行最多显示个数
      
  3. 国际音标

    1. 安装

      ./plum/rime-install ipa
      
    2. 配置

      patch:
        schema_list:
          - schema: ipa_yunlong
      
  4. 表情

    1. 安装

      ./plum/rime-install emoji
      ./plum/rime-install emoji:customize:schema=wubi_pinyin
      
    2. 上一步 安装完自动生成 wubi_pinyin.custom.yaml 内容如下

       ```shell
       __patch:
       # Rx: emoji:customize:schema=wubi_pinyin {
           - patch/+:
               __include: emoji_suggestion:/patch
       # }
       ```
      

同步用户资料

  1. 编辑 ~/Library/Rime/installation.yaml 文件

    installation_id: "liurongqing-macbook"
    sync_dir: "/Users/liurongqing/Dropbox/Rime"
    
  2. 重新部署,同步用户数据,在 sync_dir 指定目录下生成一个 liurongqing-macbook 目录

  3. 在别的电脑上操作时,改下 installation_idsync_dir 同样操作即可

技巧

  1. 指定应用默认中英文

    # 编辑 `squirrel.custom.yaml` 
    patch:
        app_options/+:   # /+为追加的意思
            'com.runningwithcrayons.Alfred-3':
                ascii_mode: true
    

快捷键

功能
Ctrl + ` 切换鼠须的输入法

本人使用配置

  1. default.custom.yaml

    patch:
      schema_list:
        - schema: wubi_pinyin
        - schema: ipa_yunlong
    
    
  2. squirrel.custom.yaml

    patch:
        style:
            color_scheme: apathy
        app_options/+:
            'com.runningwithcrayons.Alfred-3':
                ascii_mode: true
    
  3. wubi_pinyin.custom.yaml

    __patch:
    # 表情
    # Rx: emoji:customize:schema=wubi_pinyin {
      - patch/+:
          __include: emoji_suggestion:/patch
    # }
    patch:
      # 四码唯一自动上屏
      speller/max_code_length: 4
      speller/auto_select: true
      speller/auto_select_unique_candidate: true
    
      # 编码渐渐提示
      translator/enable_completion: false
    
      # 用户词典、 自动调频
      translator/enable_user_dict: true
    

    原文链接: github.com/liurongqing…