资料
- 名称:属于Rime开源输入法,windows为weasel小狼毫,mac为squirrel鼠须管,linux为ibus-rime中州韵
- 目录说明 https://github.com/rime/home/wiki/UserData#%e7%94%a8%e6%88%b6%e6%96%87%e4%bb%b6%e5%a4%be
- 帮助文档 https://rime.im/docs/
- 双拼库 https://github.com/rime/rime-double-pinyin
- 小鹤双拼安装方法 https://whatacold.io/zh-cn/blog/2022-10-04-rime-double-pinyin-flypy/
安装
- 安装:执行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
- 输入方案设置:执行开始菜单-小狼毫输入法设定
- 输入法方案:勾选去掉不需要的,保留囧月拼音
- 获取更多方案 https://github.com/ayaka14732/awesome-rime
- 安装方法,输入zip的绝对url地址
- 小鹤双拼 https://github.com/rime/rime-double-pinyin 【失败】
- 配色:选择youtube 灰红
- 输入法方案:勾选去掉不需要的,保留囧月拼音
- 安装后效果:输入法已经替代默认输入法,需要选一下使用。简体拼音竖列表5个选字
- 重启后效果:默认为小狼毫,需要按一下shift就是拼音输入了
- 有时候输入法失效,再点击运行一下 小狼毫算法服务
设置优化
目录结构
# 小狼毫(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}字典
- https://github.com/rime-aca/dictionaries/tree/master/luna_pinyin.dict
- 所有yaml丢入用户资料目录 【失败】
- 自定义词组:custom_user_data/custom_phrase.txt
# 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拼音简体- 开始菜单输入法设置,勾选双拼
快捷键
- shift: 中英文切换
- shift+delete: 鼠标悬停在词上或上下键选择后,删除候选词
- F4切换拼音方案
- 符号输入
用户资料目录/build/luna_pinyin_simp.schema.yaml- /fh: 特殊符号
- /mj: 麻将
- /xl: 希腊字母
- /dn: 办公小图标
- /hb: 货币单位
- /hzh: 章节序号
- /jh: 几何符号
- /lx: 性别符号
- /tq: 天气
- /xh: 星号
- /xz: 星座
- /jt: 箭头
- /sx: 数学
智能预测librime-predict
- https://github.com/rime/librime-predict
- predict.db放入用户资料目录
- 用户资料目录/build/luna_pinyin_simp.schema.yaml
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=无限制)