RIME Weasel 输入法

快捷键

  • 删除候选词:鼠标悬停时 shift+delete:
  • 切换拼音方案:输入时 F4或Ctrl+~切
  • 符号输入
    • 朙月拼音
      • /fh: 特殊符号,/mj: 麻将,/xl: 希腊字母,/dn: 办公小图标,/hb: 货币单位,/hzh: 章节序号
      • /jh: 几何符号,/lx: 性别符号,/tq: 天气,/xh: 星号,/xz: 星座,/jt: 箭头,/sx: 数学
    • 薄荷拼音
      • lunar 历年,oxq 周数,ojq 节气,ott 时间戳,ojs 时间戳,R 大写数字,= 计算器

仓库

配置方案

任意父目录下> git clone --depth 1 --single-branch https://github.com/iDvel/rime-ice.git,再rime安装选项改用户目录

------------------ 全拼 ----------------------
朙月拼音	https://github.com/rime/rime-luna-pinyin	基础版,官方原生方案
雾凇拼音	https://github.com/iDvel/rime-ice			纯净版,完整配置示范	
薄荷拼音	https://github.com/Mintimate/oh-my-rime		增强版,集成万象词库,内置Lua插件
四叶草	https://github.com/fkxxyz/rime-cloverpinyin	定制化,接近搜索百度,但背景有点花
袖珍拼音	https://github.com/rime/rime-pinyin-simp	轻量化,官方基础方案
万象拼音	https://github.com/amzxyz/rime_wanxiang		联想版,集成万象词库,支持重度拼音词联想

------------------ 双拼 ----------------------
小鹤双拼	https://github.com/cubercsl/rime-flypy		双拼版,在辅码挂载和音形一致上调教更细致

------------------ 五笔 ----------------------
五笔86	https://github.com/rime/rime-wubi			五笔版,86版五笔拼音混输
五笔98	https://github.com/hlizard/rime-wubi98		五笔版,98版五笔拼音混输

------------------ 其它 ----------------------
星空键道	https://github.com/xkinput/KeyTao			形码版,顶功、形码输入方案,极速低码
仓颉		https://github.com/rime/rime-cangjie		台湾主流形码,拆字精准、无重码
郑码		https://github.com/clayjar/rime-zhengma		规范形码,重码低、适合大字集
粤拼		https://github.com/rime/rime-jyutping		支持普粤混输、声调、反查
粤拼声调	https://github.com/rime/rime-cantonese		粤拼 + 完整粤语词库、Emoji、社区活跃
吴语		https://github.com/rime/rime-wugniu			上海 / 苏州吴语拼音,方言输入专用
魔然		https://github.com/rimeinn/rime-moran		自然码,将Lua插件玩得非常出色

输入法

部署

rime安装

  • 安装:执行weasel-0.16.3.37.bf4853d-installer.exe
    • 默认路径
      Working directory: C:\Program Files (x86)\Rime\weasel-0.15.0
      Package installer directory: C:\Program Files (x86)\Rime\weasel-0.15.0\
      Download cache directory: C:\Users\xxx\AppData\Local\Temp
      Rime user directory: C:\Users\xxx\AppData\Roaming\Rime
  • 用户文件夹设置:执行开始菜单-小狼毫安装选项
    • 修改用户文件夹为 D:\softWin\初装软件\小狼毫开源输入法\weasel-0.15.0.0\custom_user_data
  • 输入方案设置:执行开始菜单-小狼毫输入法设定
    • 输入法方案:勾选去掉不需要的,保留囧月拼音
    • 配色:选择youtube 灰红
  • 安装后效果:输入法已经替代默认输入法,需要选一下使用。简体拼音竖列表5个选字
  • 重启后效果:默认为小狼毫,需要按一下shift就是拼音输入了
  • 有时候输入法失效,再点击运行一下 小狼毫算法服务

薄荷拼音方案

部署

  • 拉取:在父目录下执行 git clone --depth 1 --single-branch https://github.com/Mintimate/oh-my-rime
  • 生效:rime安装选项修改用户目录指向薄荷目录,会自动重新部署即生效

配置修改

  • 候选词

    # oh-my-rime\default.custom.yaml
    patch:
      # 重新定义方案列表,只保留你需要的
      "schema_list":
        - schema: rime_mint            # 薄荷拼音
        #- schema: double_pinyin_flypy  # 小鹤双拼
        # - schema: rime_mint_flypy      # 薄荷拼音-小鹤混输方案
        #- schema: terra_pinyin         # 地球拼音-薄荷定制
        - schema: wubi98_mint          # 五笔98-五笔小筑
        #- schema: wubi86_jidian        # 五笔86-极点86
        #- schema: t9                  # 仓九宫格-全拼输入
        
    # oh-my-rime\rime_mint.custom.yaml
    patch:
      "menu/page_size": 9					# 候选词大小
      
    # oh-my-rime\weasel.custom.yaml
    patch:
      "style/horizontal": true   			# true 为横排,false 为竖排
      "style/font_point": 16     			# 这里填入数字,数值越大字体越大
      "style/label_font_point": 16  		# (可选) 候选序号的大小
      "style/comment_font_point": 14 		# (可选) 拼音/注释的大小
      # 切换不同显示风格
      # 1. 薄荷系列:mint_light_blue, mint_dark_blue, mint_light_green, mint_dark_green
      # 2. 经典系列:luna (明月), aqua (碧水), azure (青天), ink (墨池)
      # 3. 暗色系列:dark_temple (暗堂), lost_temple (孤寺), psionics (幽能)
      # 4. 品牌风格:google (谷歌), google_plus, youtube, skype, android
      # 5. 游戏/特殊:starcraft (星际), dota_2, xbox_silver, ps4, steam, nba
      # 6. 设计师款:nord (远山), so_young (致青春), smurfs (蓝精灵)
      # 7. 拼音专用:flypy (小鹤飞扬)
      "style/color_scheme": "mint_light_blue"
      "style/color_scheme_dark": "mint_dark_blue"
      # 魔然风格改造
      "style/corner_radius": 15             # 候选框圆角(数值越大越圆润)
      "style/hilite_corner_radius": 8       # 选中项高亮块的圆角
      #"style/border_width": 2               # 边框宽度
      #"style/line_spacing": 10              # 行间距
      #"style/spacing": 10                   # 拼音与候选词之间的距离
      # 魔然风格改造 - 内边距控制(立体感的关键)
      "style/padding_left": 12
      "style/padding_right": 12
      "style/padding_top": 8
      "style/padding_bottom": 8
      # 魔然风格改造 - 毛玻璃
      #"style/type": "native"                # 使用原生窗口渲染,通常能更好地配合系统的主题效果

朙月拼音方案

目录结构

  • # 小狼毫(Weasel) v0.16.3.37 目录结构 & 核心文件说明
    D:\softWin\初装软件\小狼毫开源输入法\weasel-0.16.3.37\
    ├── custom_user_data/          # 【核心】用户配置&数据目录(可迁移)
    │   ├── build/                 # 部署后生成的二进制编译文件(自动生成,勿手动改)
    │   │   ├── default.yaml       # 部署后合并的全局默认配置(编译后)
    │   │   ├── double_pinyin_flypy.prism.bin  # 小鹤双拼音形索引(控制输入匹配速度)
    │   │   ├── double_pinyin_flypy.schema.yaml # 小鹤双拼方案配置(编译后副本)
    │   │   ├── luna_pinyin.prism.bin          # 朙月全拼音形索引
    │   │   ├── luna_pinyin.reverse.bin        # 反向查字(笔画查拼音)索引
    │   │   ├── luna_pinyin.schema.yaml        # 朙月全拼核心配置(编译后副本)
    │   │   ├── luna_pinyin.table.bin          # 朙月全拼基础词库(二进制)
    │   │   ├── luna_pinyin_fluency.schema.yaml # 朙月拼音流畅版配置
    │   │   ├── luna_pinyin_simp.prism.bin     # 朙月拼音简体版音形索引
    │   │   ├── luna_pinyin_simp.schema.yaml   # 朙月拼音简体版核心配置
    │   │   ├── luna_pinyin_tw.prism.bin       # 朙月拼音台湾版音形索引
    │   │   ├── luna_pinyin_tw.schema.yaml     # 朙月拼音台湾版核心配置
    │   │   ├── stroke.prism.bin               # 笔画输入音形索引
    │   │   ├── stroke.reverse.bin             # 笔画反向查字索引
    │   │   ├── stroke.schema.yaml             # 笔画输入方案配置
    │   │   ├── stroke.table.bin               # 笔画输入基础词库
    │   │   └── weasel.yaml                    # 小狼毫Windows端编译后全局配置
    │   ├── custom_phrase.txt      # 【关键】自定义短语/造词库(手动添加个性化短语)
    │   ├── default.custom.yaml    # 【核心】所有输入方案的自定义覆盖配置(优先级最高)
    │   │                           控制:拼音纠错、候选排序、标点映射、简繁转换等
    │   ├── double_pinyin_flypy.schema.yaml # 小鹤双拼原始配置(修改后需重新部署)
    │   ├── installation.yaml      # 安装/部署信息(记录路径、版本,无需手动改)
    │   ├── luna_pinyin.userdb/    # 【关键】用户输入记忆数据库(记录常用词、输入习惯)
    │   │   ├── 002925.ldb         # 记忆数据主文件(个性化词频、新词)
    │   │   ├── CURRENT            # 数据库当前版本标识
    │   │   ├── LOG                # 数据库操作日志
    │   │   └── MANIFEST-002922    # 数据库文件清单
    │   ├── predict.db             # 智能联想/预测数据库(候选词推荐功能)
    │   ├── user.yaml              # Rime框架通用用户配置(默认方案、同步设置)
    │   └── weasel.custom.yaml     # 【核心】小狼毫Windows端专属配置
    │       控制:候选词数、快捷键、界面样式、候选窗位置、云拼音等
    └── weasel-0.16.3.37.bf4853d-installer.exe  # 小狼毫安装程序

候选词栏优化

  • custom_user_data/weasel.custom.yaml(开始菜单重新部署生效)
customization:
  distribution_code_name: Weasel
  distribution_version: 0.15.0.0
  generator: "Weasel::UIStyleSettings"
  modified_time: "Mon Mar 25 10:10:52 2024"
  rime_version: 1.8.5
patch:

  #us_keyboard_layout: true			# 美式键盘
  "switches/@0/reset": 1			# 默认英文
  style:
    color_scheme: youtube              # 选择配色方案:luna youtube
    horizontal: true                   # 输入法:横向显示
    #inline_preedit: false              # 输入字符行:显示汉字结果,或字母原文
    #corner_radius: 10                  # 输入字符行:窗口圆角半径
    #border_height: 0                   # 输入字符行:窗口边界高度,大于圆角半径才有效果
    #border_width: 0                    # 输入字符行:窗口边界宽度,大于圆角半径才有效果
    #line_spacing: 1                    # 输入字符行:候选词的行间距
    #spacing: 5                         # 输入字符行:在非内嵌编码模式下,预编辑和候选词之间的间距
    #font_face: "Hiragino Sans GB W3"   # 字体名称
    font_point: 15                     # 输入法:全部字号	
    label_font_point: 10               # 候选词:序号字体大小
    #label_color: 0x555555              # 侯选词:序号颜色
    #hilited_candidate_text_color: 0xFFFFFF     # 选中候选项颜色
    #hilited_candidate_back_color: 0x000000     # 选中候选项背景色(高亮色)
    #hilited_candidate_label_color: 0xFAFF70    # 选中候选项序号颜色
    #hilited_comment_text_color: 0xFFFFFF       # 选中候选项注解颜色
    #hilited_corner_radius: 5                   # 选中候选项圆角
    #candidate_text_color: 0x000000             # 其他候选项、光标颜色
    #comment_text_color: 0x8193DB               # 其他候选项注解颜色
    layout:
      border: 02                # 边框宽度
      border_width: 00          # 边框宽度
      margin_x: 00              # 候选项左右边距
      margin_y: 00              # 候选项上下边距
      spacing: 10               # 候选项间距
      candidate_spacing: 30     # 候选词:候选项内部间距
      round_corner: 08          # 候选词:输入法候选框的圆角幅度,0为直角
      hilite_padding: 08        # 候选词:选中项,激活候选项背景色高度
      hilite_spacing: 05        # 候选词:选中项,序号和候选项之间的间隔
      hilited_corner_radius: 08 # 候选词:选中项,选词的圆角幅度,0为直角
  'engine/processors/@before 0': predictor
  'engine/translators/@before 0': predict_translator

  app_options:
    photoshop.exe: # 程序名关闭中文输入
	  ascii_mode: true
	illustrator.exe:
	  ascii_mode: true
switches:
  - name: prediction
    states: [ 關閉預測, 開啓預測 ]
    reset: 1
predictor:
  # predict db file in user directory/shared directory
  # default to 'predict.db'
  db: predict.db
  # max prediction candidates every time
  # default to 0, which means showing all candidates
  # you may set it the same with page_size so that period doesn't trigger next page
  max_candidates: 5
  # max continuous prediction times
  # default to 0, which means no limitation
  max_iterations: 1

用户资料目录/default.custom.yaml

customization:
  distribution_code_name: Weasel
  distribution_version: 0.15.0.0
  generator: "Rime::SwitcherSettings"
  modified_time: "Thu Apr 18 20:03:21 2024"
  rime_version: 1.8.5
patch:
  "menu/page_size": 10                     # 侯选词数量
  schema_list:
    - {schema: luna_pinyin}

字典

# Rime table
# coding: utf-8
#@/db_name  custom_phrase.txt
#@/db_type	tabledb
#
# 用於【朙月拼音】系列輸入方案
# 【小狼毫】0.9.21 以上
#
# 請將該文件以UTF-8編碼保存爲
# Rime用戶文件夾/custom_phrase.txt
#
# 碼表各字段以製表符(Tab)分隔
# 順序爲:文字、編碼、權重(決定重碼的次序、可選)
#
# 雖然文本碼表編輯較爲方便,但不適合導入大量條目
#
# no comment

中州韻輸入法引擎	rime	3
Rime Input Method Engine	rime	2
http://code.google.com/p/rimeime/	rime	1
星際我爭霸	starcraft
tassadar@protoss.net	email

小鹤双拼方案

部署

  • https://github.com/rime/rime-double-pinyin 下载 double_pinyin_flypy.schema.yaml
  • 小鹤双拼参数设置:custom_user_data/double_pinyin_flypy.schema.yaml

    patch:
      translator/preedit_format: {} # 输入双拼码的时候不转化为全拼码  # 失败
      translator/enable_completion: true # 开启逐鍵提示
  • 小狼毫输入法设置:custom_user_data/default.custom.yaml

    Patch:
      schema_list:
        schema:double_pinyin_flypy           # 小鹤双拼
        schema:luna_pinyin_simp              # luna拼音简体
  • 开始菜单输入法设置,勾选双拼

智能预测librime-predict

patch:
  'engine/processors/@before 0': predictor
  'engine/translators/@before 0': predict_translator
switches:
  - name: prediction
    states: [ 關閉預測, 開啓預測 ]
    reset: 1
predictor:
  # predict db file in user directory/shared directory
  # default to 'predict.db'
  db: predict.db
  # max prediction candidates every time
  # default to 0, which means showing all candidates
  # you may set it the same with page_size so that period doesn't trigger next page
  max_candidates: 5
  # max continuous prediction times
  # default to 0, which means no limitation
  max_iterations: 1

记忆词库

  • custom_user_data/default.custom.yaml

    # 小狼毫全局自定义覆盖配置(优先级最高)
    # 修改后需右键托盘→重新部署生效
    customization:
      distribution_code_name: Weasel
      distribution_version: 0.15.0.0
      generator: "Rime::SwitcherSettings"
      modified_time: "Thu Apr 18 20:03:21 2024"
      rime_version: 1.8.5
    patch:
      "menu/page_size": 10                          # 候选词每页显示数量(默认5,调至10减少翻页),修改后重新部署生效
      schema_list:                                  # 启用的输入方案列表(仅保留朙月全拼)
        - {schema: luna_pinyin}
      # ========== 新增:用户词库记忆核心配置 ==========
      "user_dict/enable": true                      # 开启用户词库记忆(必开)
      "user_dict/save_interval": 1                  # 新词汇立即保存(默认30秒,改为1秒)
      "user_dict/max_entries": 500000               # 用户词库最大容量(避免满了不记录)
      "sorting/use_user_dict": true                 # 排序时优先使用用户词库
      "sorting/user_weight": 2.0                    # 用户词权重(2倍于系统词,优先显示)
      "luna_pinyin/enable_user_dict": true          # 朙月拼音开启用户词库
      "luna_pinyin/user_dict": luna_pinyin.userdb   # 指定用户记忆数据库路径
      "luna_pinyin/auto_phrase": true        		# 自动造词(输入一次就记录)
      "luna_pinyin/auto_phrase_length": 2    		# 2字及以上词汇自动记录
  • custom_user_data\weasel.custom.yaml

    # 小狼毫Windows端专属配置(界面样式、快捷键、预测功能)
    # 修改后需重新部署生效,样式类参数可能需重启输入法
    customization:
      distribution_code_name: Weasel
      distribution_version: 0.16.3.37
      generator: "Weasel::UIStyleSettings"
      modified_time: "Mon Mar 25 10:10:52 2024"
      rime_version: 1.8.5
    patch:
      "switches/@0/reset": 0                         # 输入法默认状态:0=中文(原1=英文,体验差)
      style:                                         # 候选框样式配置(数值去除前导0,避免八进制解析错误)
        color_scheme: youtube                        # 配色方案(内置:youtube/obsidian/inkstone等)
        horizontal: true                             # 候选框排列:true=横排,false=竖排
        font_point: 15                               # 候选词字体大小(px)
        label_font_point: 10                         # 候选词序号字体大小(px)
        layout:
          border: 2                                  # 边框宽度(px,原02改为2)
          border_width: 0                            # 边框宽度(冗余,与border重复,设0)
          margin_x: 0                                # 候选框左右外边距(px,原00改为0)
          margin_y: 0                                # 候选框上下外边距(px,原00改为0)
          spacing: 10                                # 候选词之间的间距(px)
          candidate_spacing: 30                      # 候选词内部文字间距(px)
          round_corner: 8                            # 候选框圆角幅度(px,原08改为8)
          hilite_padding: 8                          # 选中项背景高度(px,原08改为8)
          hilite_spacing: 5                          # 选中项序号与文字间距(px,原05改为5)
          hilited_corner_radius: 8                   # 选中项圆角幅度(px,原08改为8)
      'engine/processors/@before 0': predictor       # 启用预测处理器(前置加载)
      'engine/translators/@before 0': predict_translator  # 启用预测翻译器(前置加载)
    # 功能开关配置
    switches:
      - name: prediction
        states: [ 关闭预测, 开启预测 ]  # 修正繁体:關閉→关闭,開啓→开启(适配简体系统)
        reset: 1                       # 预测功能默认开启(1=开启,0=关闭)
    # 智能预测配置
    predictor:
      db: predict.db                   # 预测数据库文件(默认即可)
      max_candidates: 5                # 每次预测显示候选数(与page_size=10匹配,避免翻页)
      max_iterations: 0                # 连续预测次数(0=无限制)