mirror of
https://github.com/d0zingcat/rime-ice.git
synced 2026-05-13 15:09:58 +00:00
docs: 更新一些注释,双拼补丁示例
This commit is contained in:
@@ -24,7 +24,7 @@ schema_list:
|
||||
menu:
|
||||
page_size: 5 # 候选词个数
|
||||
# alternative_select_labels: [ ①, ②, ③, ④, ⑤, ⑥, ⑦, ⑧, ⑨, ⑩ ] # 修改候选项标签
|
||||
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键
|
||||
# alternative_select_keys: ASDFGHJKL # 如编码字符占用数字键,则需另设选字键(注意在雾凇中,大写字母也作为编码了)
|
||||
|
||||
|
||||
# 方案选单相关
|
||||
@@ -184,14 +184,14 @@ key_binder:
|
||||
- { when: composing, accept: Alt+Right, send: Shift+Right }
|
||||
|
||||
# 翻页 - =
|
||||
- { when: has_menu, accept: minus, send: Page_Up }
|
||||
- { when: has_menu, accept: minus, send: Page_Up } # 上一页设置为 paging 时会导致直接上屏并输出减号
|
||||
- { when: has_menu, accept: equal, send: Page_Down }
|
||||
|
||||
# 翻页 , .
|
||||
# - { when: paging, accept: comma, send: Page_Up }
|
||||
# - { when: has_menu, accept: period, send: Page_Down }
|
||||
|
||||
# 翻页 [ ]
|
||||
# 翻页 [ ] ⚠️ 开启时请修改上面以词定字的快捷键
|
||||
# - { when: paging, accept: bracketleft, send: Page_Up }
|
||||
# - { when: has_menu, accept: bracketright, send: Page_Down }
|
||||
|
||||
@@ -216,7 +216,7 @@ key_binder:
|
||||
# - { when: composing, accept: Control+a, send: Home }
|
||||
# - { when: composing, accept: Control+e, send: End }
|
||||
# - { when: composing, accept: Control+d, send: Delete }
|
||||
- { when: composing, accept: Control+k, send: Shift+Delete }
|
||||
# - { when: composing, accept: Control+k, send: Shift+Delete }
|
||||
# - { when: composing, accept: Control+h, send: BackSpace }
|
||||
# - { when: composing, accept: Control+g, send: Escape }
|
||||
# - { when: composing, accept: Control+bracketleft, send: Escape }
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# 目前配置中有个别功能仍然是全拼拼写,不能自动适配,所以需要手动修改一下:
|
||||
# - 英文中部分符号的派生规则:在英文方案文件 melt_eng.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# - 部件拆字的拼写规则:在部件拆字方案 radical_pinyin.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133)
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133) 或 others/双拼补丁示例/ 文件夹
|
||||
|
||||
|
||||
# 方案说明
|
||||
@@ -45,8 +45,8 @@ switches:
|
||||
- name: full_shape
|
||||
states: [ 半角, 全角 ]
|
||||
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
||||
abbrev: [词, 单]
|
||||
states: [正常, 单字]
|
||||
abbrev: [词, 单]
|
||||
|
||||
|
||||
# 输入引擎
|
||||
@@ -106,12 +106,6 @@ date_translator:
|
||||
lunar: lunar # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
corrector: "{comment}"
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
@@ -236,16 +230,16 @@ custom_phrase:
|
||||
|
||||
# Emoji
|
||||
emoji:
|
||||
option_name: emoji
|
||||
opencc_config: emoji.json
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
||||
option_name: emoji # 对应 switches 中的 name
|
||||
opencc_config: emoji.json # 选择要加载的 OpenCC 配置
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 的 comment 显示为空
|
||||
|
||||
|
||||
# 简繁切换
|
||||
traditionalize:
|
||||
option_name: traditionalization
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
option_name: traditionalization # 对应 switches 中的 name
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json (Rime 内置配置,在程序目录可找到)
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
||||
|
||||
|
||||
@@ -275,8 +269,8 @@ radical_lookup:
|
||||
# 部件拆字滤镜
|
||||
radical_reverse_lookup:
|
||||
tags: [ radical_lookup ]
|
||||
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
||||
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
||||
# dictionary 为拼音标注来源,目前是显示本方案词库的注音。
|
||||
# 可去部件拆字方案下载更全的、带声调的、已编译好的词典: https://github.com/mirtlecn/rime-radical-pinyin#反查带声调注音
|
||||
dictionary: rime_ice
|
||||
# comment_format: # 自定义 comment,例如在左右加上括号
|
||||
# - xform/^/(/
|
||||
@@ -289,7 +283,7 @@ recognizer:
|
||||
import_preset: default # 从 default.yaml 继承通用的
|
||||
patterns: # 再增加方案专有的:
|
||||
punct: "^V([0-9]|10|[A-Za-z]+)$" # 响应 symbols_caps_v.yaml 的 symbols
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,触发前缀与 radical_lookup/prefix 匹配
|
||||
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@*unicode,输出 Unicode 字符
|
||||
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@*number_translator,数字金额大写
|
||||
calculator: "^cC.+" # 响应 lua_translator@*calc_translator,计算器。前缀设定项 calculator/prefix
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# 目前配置中有个别功能仍然是全拼拼写,不能自动适配,所以需要手动修改一下:
|
||||
# - 英文中部分符号的派生规则:在英文方案文件 melt_eng.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# - 部件拆字的拼写规则:在部件拆字方案 radical_pinyin.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133)
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133) 或 others/双拼补丁示例/ 文件夹
|
||||
|
||||
|
||||
# 方案说明
|
||||
@@ -45,8 +45,8 @@ switches:
|
||||
- name: full_shape
|
||||
states: [ 半角, 全角 ]
|
||||
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
||||
abbrev: [词, 单]
|
||||
states: [正常, 单字]
|
||||
abbrev: [词, 单]
|
||||
|
||||
|
||||
# 输入引擎
|
||||
@@ -106,12 +106,6 @@ date_translator:
|
||||
lunar: lunar # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
corrector: "{comment}"
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
@@ -239,16 +233,16 @@ custom_phrase:
|
||||
|
||||
# Emoji
|
||||
emoji:
|
||||
option_name: emoji
|
||||
opencc_config: emoji.json
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
||||
option_name: emoji # 对应 switches 中的 name
|
||||
opencc_config: emoji.json # 选择要加载的 OpenCC 配置
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 的 comment 显示为空
|
||||
|
||||
|
||||
# 简繁切换
|
||||
traditionalize:
|
||||
option_name: traditionalization
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
option_name: traditionalization # 对应 switches 中的 name
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json (Rime 内置配置,在程序目录可找到)
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
||||
|
||||
|
||||
@@ -278,8 +272,8 @@ radical_lookup:
|
||||
# 部件拆字滤镜
|
||||
radical_reverse_lookup:
|
||||
tags: [ radical_lookup ]
|
||||
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
||||
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
||||
# dictionary 为拼音标注来源,目前是显示本方案词库的注音。
|
||||
# 可去部件拆字方案下载更全的、带声调的、已编译好的词典: https://github.com/mirtlecn/rime-radical-pinyin#反查带声调注音
|
||||
dictionary: rime_ice
|
||||
# comment_format: # 自定义 comment,例如在左右加上括号
|
||||
# - xform/^/(/
|
||||
@@ -292,7 +286,7 @@ recognizer:
|
||||
import_preset: default # 从 default.yaml 继承通用的
|
||||
patterns: # 再增加方案专有的:
|
||||
punct: "^V([0-9]|10|[A-Za-z]+)$" # 响应 symbols_caps_v.yaml 的 symbols
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,触发前缀与 radical_lookup/prefix 匹配
|
||||
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@*unicode,输出 Unicode 字符
|
||||
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@*number_translator,数字金额大写
|
||||
calculator: "^cC.+" # 响应 lua_translator@*calc_translator,计算器。前缀设定项 calculator/prefix
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# 目前配置中有个别功能仍然是全拼拼写,不能自动适配,所以需要手动修改一下:
|
||||
# - 英文中部分符号的派生规则:在英文方案文件 melt_eng.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# - 部件拆字的拼写规则:在部件拆字方案 radical_pinyin.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133)
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133) 或 others/双拼补丁示例/ 文件夹
|
||||
|
||||
|
||||
# 方案说明
|
||||
@@ -45,8 +45,8 @@ switches:
|
||||
- name: full_shape
|
||||
states: [ 半角, 全角 ]
|
||||
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
||||
abbrev: [词, 单]
|
||||
states: [正常, 单字]
|
||||
abbrev: [词, 单]
|
||||
|
||||
|
||||
# 输入引擎
|
||||
@@ -106,12 +106,6 @@ date_translator:
|
||||
lunar: lunar # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
corrector: "{comment}"
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
@@ -236,16 +230,16 @@ custom_phrase:
|
||||
|
||||
# Emoji
|
||||
emoji:
|
||||
option_name: emoji
|
||||
opencc_config: emoji.json
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
||||
option_name: emoji # 对应 switches 中的 name
|
||||
opencc_config: emoji.json # 选择要加载的 OpenCC 配置
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 的 comment 显示为空
|
||||
|
||||
|
||||
# 简繁切换
|
||||
traditionalize:
|
||||
option_name: traditionalization
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
option_name: traditionalization # 对应 switches 中的 name
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json (Rime 内置配置,在程序目录可找到)
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
||||
|
||||
|
||||
@@ -275,8 +269,8 @@ radical_lookup:
|
||||
# 部件拆字滤镜
|
||||
radical_reverse_lookup:
|
||||
tags: [ radical_lookup ]
|
||||
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
||||
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
||||
# dictionary 为拼音标注来源,目前是显示本方案词库的注音。
|
||||
# 可去部件拆字方案下载更全的、带声调的、已编译好的词典: https://github.com/mirtlecn/rime-radical-pinyin#反查带声调注音
|
||||
dictionary: rime_ice
|
||||
# comment_format: # 自定义 comment,例如在左右加上括号
|
||||
# - xform/^/(/
|
||||
@@ -289,7 +283,7 @@ recognizer:
|
||||
import_preset: default # 从 default.yaml 继承通用的
|
||||
patterns: # 再增加方案专有的:
|
||||
punct: "^V([0-9]|10|[A-Za-z]+)$" # 响应 symbols_caps_v.yaml 的 symbols
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,触发前缀与 radical_lookup/prefix 匹配
|
||||
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@*unicode,输出 Unicode 字符
|
||||
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@*number_translator,数字金额大写
|
||||
calculator: "^cC.+" # 响应 lua_translator@*calc_translator,计算器。前缀设定项 calculator/prefix
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# 目前配置中有个别功能仍然是全拼拼写,不能自动适配,所以需要手动修改一下:
|
||||
# - 英文中部分符号的派生规则:在英文方案文件 melt_eng.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# - 部件拆字的拼写规则:在部件拆字方案 radical_pinyin.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133)
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133) 或 others/双拼补丁示例/ 文件夹
|
||||
|
||||
|
||||
# 方案说明
|
||||
@@ -45,8 +45,8 @@ switches:
|
||||
- name: full_shape
|
||||
states: [ 半角, 全角 ]
|
||||
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
||||
abbrev: [词, 单]
|
||||
states: [正常, 单字]
|
||||
abbrev: [词, 单]
|
||||
|
||||
|
||||
# 输入引擎
|
||||
@@ -106,12 +106,6 @@ date_translator:
|
||||
lunar: lunar # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
corrector: "{comment}"
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
@@ -240,16 +234,16 @@ custom_phrase:
|
||||
|
||||
# Emoji
|
||||
emoji:
|
||||
option_name: emoji
|
||||
opencc_config: emoji.json
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
||||
option_name: emoji # 对应 switches 中的 name
|
||||
opencc_config: emoji.json # 选择要加载的 OpenCC 配置
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 的 comment 显示为空
|
||||
|
||||
|
||||
# 简繁切换
|
||||
traditionalize:
|
||||
option_name: traditionalization
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
option_name: traditionalization # 对应 switches 中的 name
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json (Rime 内置配置,在程序目录可找到)
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
||||
|
||||
|
||||
@@ -279,8 +273,8 @@ radical_lookup:
|
||||
# 部件拆字滤镜
|
||||
radical_reverse_lookup:
|
||||
tags: [ radical_lookup ]
|
||||
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
||||
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
||||
# dictionary 为拼音标注来源,目前是显示本方案词库的注音。
|
||||
# 可去部件拆字方案下载更全的、带声调的、已编译好的词典: https://github.com/mirtlecn/rime-radical-pinyin#反查带声调注音
|
||||
dictionary: rime_ice
|
||||
# comment_format: # 自定义 comment,例如在左右加上括号
|
||||
# - xform/^/(/
|
||||
@@ -293,7 +287,7 @@ recognizer:
|
||||
import_preset: default # 从 default.yaml 继承通用的
|
||||
patterns: # 再增加方案专有的:
|
||||
punct: "^V([0-9]|10|[A-Za-z]+)$" # 响应 symbols_caps_v.yaml 的 symbols
|
||||
radical_lookup: "^uU[a-z;]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
||||
radical_lookup: "^uU[a-z;]+$" # 响应部件拆字的反查,触发前缀与 radical_lookup/prefix 匹配
|
||||
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@*unicode,输出 Unicode 字符
|
||||
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@*number_translator,数字金额大写
|
||||
calculator: "^cC.+" # 响应 lua_translator@*calc_translator,计算器。前缀设定项 calculator/prefix
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# 目前配置中有个别功能仍然是全拼拼写,不能自动适配,所以需要手动修改一下:
|
||||
# - 英文中部分符号的派生规则:在英文方案文件 melt_eng.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# - 部件拆字的拼写规则:在部件拆字方案 radical_pinyin.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133)
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133) 或 others/双拼补丁示例/ 文件夹
|
||||
|
||||
|
||||
# 方案说明
|
||||
@@ -45,8 +45,8 @@ switches:
|
||||
- name: full_shape
|
||||
states: [ 半角, 全角 ]
|
||||
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
||||
abbrev: [词, 单]
|
||||
states: [正常, 单字]
|
||||
abbrev: [词, 单]
|
||||
|
||||
|
||||
# 输入引擎
|
||||
@@ -106,12 +106,6 @@ date_translator:
|
||||
lunar: lunar # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
corrector: "{comment}"
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
@@ -240,16 +234,16 @@ custom_phrase:
|
||||
|
||||
# Emoji
|
||||
emoji:
|
||||
option_name: emoji
|
||||
opencc_config: emoji.json
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
||||
option_name: emoji # 对应 switches 中的 name
|
||||
opencc_config: emoji.json # 选择要加载的 OpenCC 配置
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 的 comment 显示为空
|
||||
|
||||
|
||||
# 简繁切换
|
||||
traditionalize:
|
||||
option_name: traditionalization
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
option_name: traditionalization # 对应 switches 中的 name
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json (Rime 内置配置,在程序目录可找到)
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
||||
|
||||
|
||||
@@ -279,8 +273,8 @@ radical_lookup:
|
||||
# 部件拆字滤镜
|
||||
radical_reverse_lookup:
|
||||
tags: [ radical_lookup ]
|
||||
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
||||
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
||||
# dictionary 为拼音标注来源,目前是显示本方案词库的注音。
|
||||
# 可去部件拆字方案下载更全的、带声调的、已编译好的词典: https://github.com/mirtlecn/rime-radical-pinyin#反查带声调注音
|
||||
dictionary: rime_ice
|
||||
# comment_format: # 自定义 comment,例如在左右加上括号
|
||||
# - xform/^/(/
|
||||
@@ -293,7 +287,7 @@ recognizer:
|
||||
import_preset: default # 从 default.yaml 继承通用的
|
||||
patterns: # 再增加方案专有的:
|
||||
punct: "^V([0-9]|10|[A-Za-z]+)$" # 响应 symbols_caps_v.yaml 的 symbols
|
||||
radical_lookup: "^uU[a-z;]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
||||
radical_lookup: "^uU[a-z;]+$" # 响应部件拆字的反查,触发前缀与 radical_lookup/prefix 匹配
|
||||
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@*unicode,输出 Unicode 字符
|
||||
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@*number_translator,数字金额大写
|
||||
calculator: "^cC.+" # 响应 lua_translator@*calc_translator,计算器。前缀设定项 calculator/prefix
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
# 目前配置中有个别功能仍然是全拼拼写,不能自动适配,所以需要手动修改一下:
|
||||
# - 英文中部分符号的派生规则:在英文方案文件 melt_eng.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# - 部件拆字的拼写规则:在部件拆字方案 radical_pinyin.schema.yaml > speller > algebra 修改为对应的双拼拼写运算
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133)
|
||||
# 打个补丁一劳永逸,补丁写法参考 [常见问题](https://github.com/iDvel/rime-ice/issues/133) 或 others/双拼补丁示例/ 文件夹
|
||||
|
||||
|
||||
# 方案说明
|
||||
@@ -45,8 +45,8 @@ switches:
|
||||
- name: full_shape
|
||||
states: [ 半角, 全角 ]
|
||||
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
||||
abbrev: [词, 单]
|
||||
states: [正常, 单字]
|
||||
abbrev: [词, 单]
|
||||
|
||||
|
||||
# 输入引擎
|
||||
@@ -106,12 +106,6 @@ date_translator:
|
||||
lunar: lunar # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二十
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
corrector: "{comment}"
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
@@ -238,16 +232,16 @@ custom_phrase:
|
||||
|
||||
# Emoji
|
||||
emoji:
|
||||
option_name: emoji
|
||||
opencc_config: emoji.json
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
||||
option_name: emoji # 对应 switches 中的 name
|
||||
opencc_config: emoji.json # 选择要加载的 OpenCC 配置
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 的 comment 显示为空
|
||||
|
||||
|
||||
# 简繁切换
|
||||
traditionalize:
|
||||
option_name: traditionalization
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
option_name: traditionalization # 对应 switches 中的 name
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json (Rime 内置配置,在程序目录可找到)
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
||||
|
||||
|
||||
@@ -277,8 +271,8 @@ radical_lookup:
|
||||
# 部件拆字滤镜
|
||||
radical_reverse_lookup:
|
||||
tags: [ radical_lookup ]
|
||||
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
||||
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
||||
# dictionary 为拼音标注来源,目前是显示本方案词库的注音。
|
||||
# 可去部件拆字方案下载更全的、带声调的、已编译好的词典: https://github.com/mirtlecn/rime-radical-pinyin#反查带声调注音
|
||||
dictionary: rime_ice
|
||||
# comment_format: # 自定义 comment,例如在左右加上括号
|
||||
# - xform/^/(/
|
||||
@@ -291,7 +285,7 @@ recognizer:
|
||||
import_preset: default # 从 default.yaml 继承通用的
|
||||
patterns: # 再增加方案专有的:
|
||||
punct: "^V([0-9]|10|[A-Za-z]+)$" # 响应 symbols_caps_v.yaml 的 symbols
|
||||
radical_lookup: "^uU[a-z;]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
||||
radical_lookup: "^uU[a-z;]+$" # 响应部件拆字的反查,触发前缀与 radical_lookup/prefix 匹配
|
||||
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@*unicode,输出 Unicode 字符
|
||||
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@*number_translator,数字金额大写
|
||||
calculator: "^cC.+" # 响应 lua_translator@*calc_translator,计算器。前缀设定项 calculator/prefix
|
||||
|
||||
24
others/双拼补丁示例/README.md
Normal file
24
others/双拼补丁示例/README.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# 双拼补丁示例
|
||||
|
||||
目前配置中有个别功能仍然默认使用全拼拼写:
|
||||
|
||||
拼字时,全拼需要输入 `uUshuishuishui` 来打出「淼」,小鹤双拼用户更希望使用 `uUuvuvuv` 来打出。
|
||||
|
||||
英文派生规则中,全拼输入 `windowsshi` 即得到「Windows 10」,小鹤双拼用户更希望使用 `windowsui`。
|
||||
|
||||
<br>
|
||||
|
||||
不能自动适配,需要手动修改一下:
|
||||
|
||||
- 英文中部分符号的派生规则:在英文方案文件 `melt_eng.schema.yaml > speller > algebra` 修改为对应的双拼拼写运算
|
||||
|
||||
- 部件拆字的拼写规则:在部件拆字方案 `radical_pinyin.schema.yaml > speller > algebra` 修改为对应的双拼拼写运算
|
||||
|
||||
<br>
|
||||
|
||||
可以参考仓库主页的 README 中使用 plum 一键补丁。
|
||||
|
||||
<br>
|
||||
|
||||
也可以从此文件夹中直接复制粘贴到配置目录,默认启用的是小鹤的。
|
||||
|
||||
4
others/双拼补丁示例/double_pinyin_flypy.custom.yaml
Normal file
4
others/双拼补丁示例/double_pinyin_flypy.custom.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
# 这是小鹤的补丁,其他双拼将文件名前面那部分改成对应方案 ID 就可以了
|
||||
patch:
|
||||
# (按需选择)清空 preedit_format 中的内容,输入时显示双拼编码
|
||||
translator/preedit_format: []
|
||||
10
others/双拼补丁示例/melt_eng.custom.yaml
Normal file
10
others/双拼补丁示例/melt_eng.custom.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
patch:
|
||||
# 修改为双拼的拼写派生规则,因为不在同一个文件了,前面要加上文件名
|
||||
speller/algebra:
|
||||
# __include: melt_eng.schema.yaml:/algebra_rime_ice # 全拼
|
||||
# __include: melt_eng.schema.yaml:/algebra_double_pinyin # 自然码双拼
|
||||
__include: melt_eng.schema.yaml:/algebra_flypy # 小鹤双拼
|
||||
# __include: melt_eng.schema.yaml:/algebra_mspy # 微软双拼
|
||||
# __include: melt_eng.schema.yaml:/algebra_sogou # 搜狗双拼
|
||||
# __include: melt_eng.schema.yaml:/algebra_abc # 智能ABC双拼
|
||||
# __include: melt_eng.schema.yaml:/algebra_ziguang # 紫光双拼
|
||||
10
others/双拼补丁示例/radical_pinyin.custom.yaml
Normal file
10
others/双拼补丁示例/radical_pinyin.custom.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
patch:
|
||||
# 修改为双拼的拼写派生规则,因为不在同一个文件了,前面要加上文件名
|
||||
speller/algebra:
|
||||
# __include: radical_pinyin.schema.yaml:/algebra_pinyin # 全拼
|
||||
# __include: radical_pinyin.schema.yaml:/algebra_double_pinyin # 自然码双拼
|
||||
__include: radical_pinyin.schema.yaml:/algebra_flypy # 小鹤双拼
|
||||
# __include: radical_pinyin.schema.yaml:/algebra_mspy # 微软双拼
|
||||
# __include: radical_pinyin.schema.yaml:/algebra_sogou # 搜狗双拼
|
||||
# __include: radical_pinyin.schema.yaml:/algebra_abc # 智能ABC双拼
|
||||
# __include: radical_pinyin.schema.yaml:/algebra_ziguang # 紫光双拼
|
||||
@@ -6,7 +6,7 @@
|
||||
schema:
|
||||
schema_id: rime_ice
|
||||
name: 雾凇拼音
|
||||
version: "2024-02-25"
|
||||
version: "2024-12-06"
|
||||
author:
|
||||
- Dvel
|
||||
description: |
|
||||
@@ -34,8 +34,8 @@ switches:
|
||||
- name: full_shape
|
||||
states: [ 半角, 全角 ]
|
||||
- name: search_single_char # search.lua 的功能开关,辅码查词时是否单字优先
|
||||
abbrev: [词, 单]
|
||||
states: [正常, 单字]
|
||||
abbrev: [词, 单]
|
||||
|
||||
|
||||
# 输入引擎
|
||||
@@ -99,18 +99,12 @@ lunar: nl # 农历: 二〇二三年冬月二十 癸卯年(兔)冬月二
|
||||
|
||||
# Lua 配置:长词优先
|
||||
# 提升 count 个词语,插入到第 idx 个位置。
|
||||
# 示例:将 2 个词插入到第 4、5 个候选项,输入 jie 得到「1接 2解 3姐 4饥饿 5极恶」
|
||||
# 示例:将 2 个词插入到第 4、5 个候选项,输入 jie 得到「1接 2解 3姐 4饥饿 5极恶 6结 7界……」
|
||||
long_word_filter:
|
||||
count: 2
|
||||
idx: 4
|
||||
|
||||
|
||||
# Lua 配置:为 corrector 格式化 comment,占位符为 {comment}
|
||||
# 默认 "{comment}" 输入 hun dun 时会在「馄饨」旁边生成 hún tun 的 comment
|
||||
# 例如左右加个括号 "({comment})" 就会变成 (hún tun)
|
||||
corrector: "{comment}"
|
||||
|
||||
|
||||
# Lua 配置: 降低部分英语单词在候选项的位置。
|
||||
# 详细介绍 https://dvel.me/posts/make-rime-en-better/#短单词置顶的问题
|
||||
# 正常情况: 输入 rug 得到 「1.rug 2.如果 …… 」
|
||||
@@ -341,16 +335,16 @@ custom_phrase:
|
||||
|
||||
# Emoji
|
||||
emoji:
|
||||
option_name: emoji
|
||||
opencc_config: emoji.json
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 返回空注释
|
||||
option_name: emoji # 对应 switches 中的 name
|
||||
opencc_config: emoji.json # 选择要加载的 OpenCC 配置
|
||||
inherit_comment: false # 在 corrector.lua 及反查中,emoji 的 comment 显示为空
|
||||
|
||||
|
||||
# 简繁切换
|
||||
traditionalize:
|
||||
option_name: traditionalization
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
option_name: traditionalization # 对应 switches 中的 name
|
||||
opencc_config: s2t.json # s2t.json | s2hk.json | s2tw.json | s2twp.json (Rime 内置配置,在程序目录可找到)
|
||||
tips: none # 转换提示: all 都显示 | char 仅单字显示 | none 不显示。
|
||||
tags: [ abc, number, gregorian_to_lunar ] # 限制在对应 tag,不对其他如反查的内容做简繁转换
|
||||
|
||||
|
||||
@@ -380,8 +374,8 @@ radical_lookup:
|
||||
# 部件拆字滤镜
|
||||
radical_reverse_lookup:
|
||||
tags: [ radical_lookup ]
|
||||
# dictionary 为拼音标注来源。目前是显示本方案词库的注音,可去部件拆字方案下载更全的、带声调的、已编译好的词典
|
||||
# https://github.com/mirtlecn/rime-radical-pinyin?tab=readme-ov-file#%E5%8F%8D%E6%9F%A5%E5%B8%A6%E5%A3%B0%E8%B0%83%E6%B3%A8%E9%9F%B3
|
||||
# dictionary 为拼音标注来源,目前是显示本方案词库的注音。
|
||||
# 可去部件拆字方案下载更全的、带声调的、已编译好的词典: https://github.com/mirtlecn/rime-radical-pinyin#反查带声调注音
|
||||
dictionary: rime_ice
|
||||
# comment_format: # 自定义 comment,例如在左右加上括号
|
||||
# - xform/^/(/
|
||||
@@ -393,7 +387,7 @@ recognizer:
|
||||
import_preset: default # 从 default.yaml 继承通用的
|
||||
patterns: # 再增加方案专有的:
|
||||
punct: "^v([0-9]|10|[A-Za-z]+)$" # 响应 symbols_v.yaml 的 symbols,用 'v' 替换 '/'
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,与 radical_lookup/prefix 匹配
|
||||
radical_lookup: "^uU[a-z]+$" # 响应部件拆字的反查,触发前缀与 radical_lookup/prefix 匹配
|
||||
unicode: "^U[a-f0-9]+" # 脚本将自动获取第 2 个字符 U 作为触发前缀,响应 lua_translator@*unicode,输出 Unicode 字符
|
||||
number: "^R[0-9]+[.]?[0-9]*" # 脚本将自动获取第 2 个字符 R 作为触发前缀,响应 lua_translator@*number_translator,数字金额大写
|
||||
calculator: "^cC.+" # 响应 lua_translator@*calc_translator,计算器。前缀设定项 calculator/prefix
|
||||
@@ -469,7 +463,7 @@ speller:
|
||||
- abbrev/^([zcs]h).+$/$1/ # 超级简拼中,zh ch sh 视为整体(ch'sh → 城市),而不是像这样分开(c'h's'h → 吃好睡好)。
|
||||
|
||||
### v u 转换
|
||||
# 雾凇的词库严格按照正确的 u v(ü) 注音的,支持使用 qu/qv nue/nve 来输入 qu nve
|
||||
# 雾凇的词库严格按照正确的 u v(ü) 注音的,下面两行支持使用错误的拼音,例如 qv nue 来响应 qu nve
|
||||
- derive/^([nl])ve$/$1ue/
|
||||
- derive/^([jqxy])u/$1v/
|
||||
# 以防引入的其他词库没按照正确方式注音,也做一个转换
|
||||
|
||||
Reference in New Issue
Block a user