Perrysix

Perrysix

分享新买到或新学到的好玩意,包括电子产品、家居产品、新软件

Install Squirrel Input Method on Windows.

Recently, a teacher on Twitter publicly shared their configuration for the Rime input method. It looked interesting, so I wanted to use this teacher's method to reconfigure my own input method. I have installed it a few times before, but either the dictionary was incomplete or I could only type in English and not in Chinese, so I switched back to the default Microsoft input method. Following the instructions online, I added the Xiaohe double pinyin scheme and have been using it ever since.

  1. Download the installation package from the official website and install it.
  2. Download the configuration from GitHub and replace the configuration in the "user folder".
    • Download location: Click the downward arrow next to "Code" and click "Download Zip" to download the compressed file. Extract it for later use.
    • Right-click the "taskbar Rime icon" and click "User Folder" to open the user folder. The files stored here are the configuration items for the input method, usually located in the C drive: AppData\Roaming\Rime. Make a backup and replace all the files in this directory with the extracted files. Then right-click the "taskbar Rime icon" and click "Deploy". The new configuration will take effect.
  3. Fine-tune daily usage habits.
    • Right-click the "taskbar Rime icon" and click "Input Method Settings". Select "Wusong Pinyin" and click "OK" to choose a preferred color scheme. You can now use full pinyin typing.
    • Set the "Shift" key to switch between Chinese and English: Modify the "default.yaml" file in the user folder. Double-click to open it with Notepad, find the position for switching between Chinese and English, and change "noop" after "Shift_L" and "Shift_R" to "commit_code". Save the file.
    • Modify the number of candidate options: Still in the "default.yaml" file, find the menu: "page_size: " and change the number after it to the desired quantity. I usually prefer more options, so I set it to 9. Save the file.
    • Horizontal or vertical arrangement of candidate options: In the user folder, find "squirrel.yaml" and open it. Find "text_orientation: " # horizontal vertical and paste the corresponding word after the colon according to your needs. Save the file.
    • After making the modifications, right-click the "taskbar Rime icon" and click "Deploy". The new configuration will take effect.
    • At this point, if you are using full pinyin, the settings are basically complete.
  4. Fine-tune for double pinyin.
    • Right-click the "taskbar Rime icon" and click "Input Method Settings". Select "Xiaohe Double Pinyin" and click "OK" to choose a preferred color scheme. You can now use double pinyin typing.
    • Mount the original custom phrases under double pinyin: Copy the "custom_phrase.txt" file in the user folder and rename it as "custom_phrase_double.txt". Open the "double_pinyin_flypy.schema.yaml" file and remove the comment in front of the custom phrases to enable them.
    • Set symbols to be typed with a capital "V" at the beginning: Because some pinyin in double pinyin starts with "v", typing symbols with "v" at the beginning won't work. It needs to be changed to a capital "V". First, change all "v" to "V" in the "symbols_custom.yaml" file. Then remove the comment in the "double_pinyin_flypy.schema.yaml" configuration file for "punct: "^v([0-9]|10|[A-Za-z]+)$"" and change "v" to "V". Save the file.
    • "Deploy" to take effect.
  5. Further customization.
    • Color scheme: Coincidentally, WeChat input method released a Mac version, and a teacher on Twitter created a WeChat color scheme based on it. I also tried it. Normally, it should be configured in squirrel.yaml or squirrel_custom.yaml in the user folder, but the configuration didn't work for me. Eventually, I found that the weasel.yaml file in the program folder (C:\Program Files (x86)\Rime\weasel-0.14.3\data) could make it work. So for now, I will configure it there and modify it later when I find out the reason. Add the following code to the "weasel.yaml" file, save it, and "deploy" to take effect.
  wechat:
    name: '微信键盘 / WeChat-keyboard' # Color scheme from WeChat keyboard
    author: zsakvo
    back_color: 0xFFFFFF
    border_height: 0
    border_width: 8
    candidate_format: '%c %@ '
    comment_text_color: 0x999999
    corner_radius: 5
    hilited_corner_radius: 5
    font_face: PingFangSC
    font_point: 16
    hilited_candidate_back_color: 0x75B100
    hilited_candidate_text_color: 0xFFFFFF
    horizontal: true
    inline_preedit: true
    label_font_point: 12
    text_color: 0x424242
  1. Problems encountered later will be updated here:

    • After restarting the computer or not using it for a while, the input method can only type in English and not in Chinese. I searched online and found that it was because the Weasel algorithm service for Rime was stopped or disabled. Go to the start menu, find "Rime Algorithm Service" and click to enable it.

    image

References:

  1. https://twitter.com/scomper/status/1643068642177822721
  2. https://github.com/iDvel/rime-ice
  3. https://dvel.me/posts/rime-ice/
  4. https://twitter.com/zsakvo/status/1643649306715627521
  5. https://blog.csdn.net/David_xtd/article/details/104811901
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.