feat: 仓输入法九宫格方案
This commit is contained in:
parent
f6e9d63c88
commit
72acbc7a2e
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@ build/
|
||||
installation.yaml
|
||||
user.yaml
|
||||
*.custom.yaml
|
||||
!others/**/*.custom.yaml
|
||||
|
||||
custom_phrase_double.txt
|
||||
others/script/scel2txt/out/*
|
||||
|
@ -6,13 +6,15 @@
|
||||
|
||||
|
||||
# 要比共享目录的同名文件的 config_version 大才可以生效
|
||||
config_version: '2023-08-07'
|
||||
config_version: '2023-09-25'
|
||||
|
||||
|
||||
# 方案列表
|
||||
schema_list:
|
||||
# 可以直接删除或注释不需要的方案,对应的 *.schema.yaml 方案文件也可以直接删除。
|
||||
# 可以直接删除或注释不需要的方案,对应的 *.schema.yaml 方案文件也可以直接删除
|
||||
# 除了 t9,它依赖于 rime_ice,用九宫格别删 rime_ice.schema.yaml
|
||||
- schema: rime_ice # 雾凇拼音(全拼)
|
||||
- schema: t9 # 雾凇拼音(九宫格)
|
||||
- schema: double_pinyin # 自然码双拼
|
||||
- schema: double_pinyin_abc # 智能 ABC 双拼
|
||||
- schema: double_pinyin_mspy # 微软双拼
|
||||
@ -38,9 +40,9 @@ switcher:
|
||||
- Control+Shift+grave
|
||||
save_options: # 开关记忆(方案中的 switches),从方案选单(而非快捷键)切换时会记住的选项,需要记忆的开关不能设定 reset
|
||||
- ascii_punct
|
||||
- full_shape
|
||||
- traditionalization
|
||||
- emoji
|
||||
- full_shape
|
||||
fold_options: true # 呼出时是否折叠,多方案时建议折叠 true ,一个方案建议展开 false
|
||||
abbreviate_options: true # 折叠时是否缩写选项
|
||||
option_list_separator: ' / ' # 折叠时的选项分隔符
|
||||
|
4
others/Hamster九宫格/melt_eng.custom.yaml
Normal file
4
others/Hamster九宫格/melt_eng.custom.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
# 此补丁可以在仓输入法九宫格布局中输入英文
|
||||
patch:
|
||||
speller/algebra/+:
|
||||
- xlit/abcdefghijklmnopqrstuvwxyz/AAADDDGGGJJJMMMPPPPTTTWWWW/
|
@ -17,6 +17,7 @@ install_files: >-
|
||||
weasel_style.yaml
|
||||
rime_ice.schema.yaml
|
||||
rime_ice.dict.yaml
|
||||
t9.schema.yaml
|
||||
double_pinyin.schema.yaml
|
||||
double_pinyin_abc.schema.yaml
|
||||
double_pinyin_mspy.schema.yaml
|
||||
|
307
t9.schema.yaml
Normal file
307
t9.schema.yaml
Normal file
@ -0,0 +1,307 @@
|
||||
# Rime schema
|
||||
# encoding: utf-8
|
||||
|
||||
|
||||
# 适配了仓输入法 Hamster 九宫格布局。
|
||||
# 参考于仓作者 [morse.hsiao](https://github.com/imfuxiao) 的示例
|
||||
#
|
||||
# 如果需要输入英文,将 others/Hamster九宫格/melt_eng.custom.yaml 拷贝至配置目录,
|
||||
# 方便 367 输出'iOS'、746 输出'VIP'之类的常用短单词
|
||||
|
||||
|
||||
__include: rime_ice.schema.yaml:/
|
||||
|
||||
|
||||
schema:
|
||||
schema_id: t9
|
||||
name: 雾凇拼音·九宫格
|
||||
version: "1"
|
||||
author:
|
||||
- Dvel
|
||||
- '[morse.hsiao](https://github.com/imfuxiao)'
|
||||
description: |
|
||||
雾凇拼音·九宫格 for 仓输入法
|
||||
dependencies:
|
||||
- melt_eng # 英文输入,作为次翻译器挂载到拼音方案
|
||||
# - liangfen # 两分拼字,作为反查挂载到拼音方案
|
||||
|
||||
|
||||
engine:
|
||||
processors:
|
||||
# - lua_processor@select_character # 以词定字
|
||||
- ascii_composer
|
||||
- recognizer
|
||||
- key_binder
|
||||
- speller
|
||||
- punctuator
|
||||
- selector
|
||||
- navigator
|
||||
- express_editor
|
||||
segmentors:
|
||||
- ascii_segmentor
|
||||
- matcher
|
||||
- abc_segmentor
|
||||
- punct_segmentor
|
||||
- fallback_segmentor
|
||||
translators:
|
||||
- punct_translator
|
||||
- script_translator
|
||||
- lua_translator@date_translator # 时间、日期、星期
|
||||
- table_translator@custom_phrase # 自定义短语 custom_phrase.txt
|
||||
- table_translator@melt_eng # 英文输入
|
||||
# - reverse_lookup_translator@liangfen # 反查,两分拼字
|
||||
# - lua_translator@unicode # Unicode
|
||||
# - lua_translator@number_translator # 数字、金额大写
|
||||
filters:
|
||||
# - lua_filter@corrector # 错音错字提示
|
||||
- simplifier@emoji # Emoji
|
||||
- simplifier@traditionalize # 简繁切换
|
||||
# - lua_filter@v_filter # v 模式 symbols 优先(否则是英文优先)
|
||||
# - lua_filter@autocap_filter # 英文自动大写
|
||||
# - lua_filter@reduce_english_filter # 降低部分英语单词在候选项的位置
|
||||
- uniquifier # 去重
|
||||
|
||||
|
||||
translator:
|
||||
prism: t9
|
||||
|
||||
|
||||
# 九宫格 1 键上的符号序列
|
||||
punctuator:
|
||||
half_shape:
|
||||
"@": [1, "@", ".", "/", ":", "_", "-", "#"]
|
||||
|
||||
|
||||
# T9拼音
|
||||
# 大写字母为穷举后T9拼音的模糊匹配
|
||||
# 程序内部通过候选拼音的小写字母进行精确匹配
|
||||
speller:
|
||||
algebra:
|
||||
- abbrev/^([a-z]).+$/$1/ # 超级简拼
|
||||
# - derive/.+/\U$0/
|
||||
- derive/[abc]/A/
|
||||
- derive/[bc]a/AA/
|
||||
- derive/[bc]ai/AAG/
|
||||
- derive/[bc]an|[bc]ao/AAM/
|
||||
- derive/[bc]ang/AAMG/
|
||||
- derive/ce/AD/
|
||||
- derive/bei/ADG/
|
||||
- derive/[bc]en/ADM/
|
||||
- derive/[bc]eng/ADMG/
|
||||
- derive/[abc]i/AG/
|
||||
- derive/cha/AGA/
|
||||
- derive/chai/AGAG/
|
||||
- derive/bia[no]|cha[no]/AGAM/
|
||||
- derive/chang/AGAMG/
|
||||
- derive/bie|che/AGD/
|
||||
- derive/chen/AGDM/
|
||||
- derive/cheng/AGDMG/
|
||||
- derive/chi/AGG/
|
||||
- derive/bin/AGM/
|
||||
- derive/bing/AGMG/
|
||||
- derive/chong/AGMMG/
|
||||
- derive/chou/AGMT/
|
||||
- derive/chu/AGT/
|
||||
- derive/chua/AGTA/
|
||||
- derive/chuai/AGTAG/
|
||||
- derive/chuan/AGTAM/
|
||||
- derive/chuang/AGTAMG/
|
||||
- derive/chui/AGTG/
|
||||
- derive/chu[no]/AGTM/
|
||||
- derive/a[no]|bo/AM/
|
||||
- derive/ang/AMG/
|
||||
- derive/cong/AMMG/
|
||||
- derive/cou/AMT/
|
||||
- derive/[bc]u/AT/
|
||||
- derive/cuan/ATAM/
|
||||
- derive/cui/ATG/
|
||||
- derive/cu[no]/ATM/
|
||||
- derive/[def]/D/
|
||||
- derive/[df]a/DA/
|
||||
- derive/dai/DAG/
|
||||
- derive/[df]an|dao/DAM/
|
||||
- derive/[df]ang/DAMG/
|
||||
- derive/de/DD/
|
||||
- derive/[df]ei/DDG/
|
||||
- derive/[df]en/DDM/
|
||||
- derive/[df]eng/DDMG/
|
||||
- derive/[de]i/DG/
|
||||
- derive/dia/DGA/
|
||||
- derive/dia[no]/DGAM/
|
||||
- derive/die/DGD/
|
||||
- derive/ding/DGMG/
|
||||
- derive/diu/DGT/
|
||||
- derive/en|fo/DM/
|
||||
- derive/eng/DMG/
|
||||
- derive/dong/DMMG/
|
||||
- derive/[df]ou/DMT/
|
||||
- derive/er/DP/
|
||||
- derive/[df]u/DT/
|
||||
- derive/duan/DTAM/
|
||||
- derive/dui/DTG/
|
||||
- derive/du[no]/DTM/
|
||||
- derive/[ghi]/G/
|
||||
- derive/[gh]a/GA/
|
||||
- derive/[gh]ai/GAG/
|
||||
- derive/[gh]an|[gh]ao/GAM/
|
||||
- derive/[gh]ang/GAMG/
|
||||
- derive/[gh]e/GD/
|
||||
- derive/[gh]ei/GDG/
|
||||
- derive/[gh]en/GDM/
|
||||
- derive/[gh]eng/GDMG/
|
||||
- derive/hm/GM/
|
||||
- derive/[gh]ong/GMMG/
|
||||
- derive/[gh]ou/GMT/
|
||||
- derive/[gh]u/GT/
|
||||
- derive/[gh]ua/GTA/
|
||||
- derive/[gh]uai/GTAG/
|
||||
- derive/[gh]uan/GTAM/
|
||||
- derive/[gh]uang/GTAMG/
|
||||
- derive/[gh]ui/GTG/
|
||||
- derive/[gh]un|[gh]uo/GTM/
|
||||
- derive/[jkl]/J/
|
||||
- derive/[kl]a/JA/
|
||||
- derive/[kl]ai/JAG/
|
||||
- derive/[kl]an|[kl]ao/JAM/
|
||||
- derive/[kl]ang/JAMG/
|
||||
- derive/[kl]e/JD/
|
||||
- derive/[kl]ei/JDG/
|
||||
- derive/ken/JDM/
|
||||
- derive/[kl]eng/JDMG/
|
||||
- derive/[jl]i/JG/
|
||||
- derive/[jl]ia/JGA/
|
||||
- derive/[jl]ian|[jl]iao/JGAM/
|
||||
- derive/[jl]iang/JGAMG/
|
||||
- derive/[jl]ie/JGD/
|
||||
- derive/[jl]in/JGM/
|
||||
- derive/[jl]ing/JGMG/
|
||||
- derive/jiong/JGMMG/
|
||||
- derive/[jl]iu/JGT/
|
||||
- derive/lo/JM/
|
||||
- derive/[kl]ong/JMMG/
|
||||
- derive/[kl]ou/JMT/
|
||||
- derive/[jkl]u|lv/JT/
|
||||
- derive/kua/JTA/
|
||||
- derive/kuai/JTAG/
|
||||
- derive/[jkl]uan/JTAM/
|
||||
- derive/kuang/JTAMG/
|
||||
- derive/jue|lve/JTD/
|
||||
- derive/kui/JTG/
|
||||
- derive/[jkl]un|[kl]uo/JTM/
|
||||
- derive/[mno]/M/
|
||||
- derive/[mn]a/MA/
|
||||
- derive/[mn]ai/MAG/
|
||||
- derive/[mn]an|[mn]ao/MAM/
|
||||
- derive/[mn]ang/MAMG/
|
||||
- derive/[mn]e/MD/
|
||||
- derive/[mn]ei/MDG/
|
||||
- derive/[mn]en/MDM/
|
||||
- derive/[mn]eng/MDMG/
|
||||
- derive/[mn]i/MG/
|
||||
- derive/nia/MGA/
|
||||
- derive/[mn]ian|[mn]iao/MGAM/
|
||||
- derive/niang/MGAMG/
|
||||
- derive/[mn]ie/MGD/
|
||||
- derive/[mn]in/MGM/
|
||||
- derive/[mn]ing/MGMG/
|
||||
- derive/[mn]iu/MGT/
|
||||
- derive/mo/MM/
|
||||
- derive/nong/MMMG/
|
||||
- derive/[mn]ou/MMT/
|
||||
- derive/[mn]u|nv|ou/MT/
|
||||
- derive/nuan/MTAM/
|
||||
- derive/nve/MTD/
|
||||
- derive/nuo/MTM/
|
||||
- derive/[pqrs]/P/
|
||||
- derive/[ps]a/PA/
|
||||
- derive/[ps]ai/PAG/
|
||||
- derive/[prs]an|[prs]ao/PAM/
|
||||
- derive/[prs]ang/PAMG/
|
||||
- derive/[rs]e/PD/
|
||||
- derive/pei/PDG/
|
||||
- derive/[prs]en/PDM/
|
||||
- derive/[prs]eng/PDMG/
|
||||
- derive/[pqrs]i/PG/
|
||||
- derive/pia|sha/PGA/
|
||||
- derive/shai/PGAG/
|
||||
- derive/[pq]ian|[pq]iao|sha[no]/PGAM/
|
||||
- derive/qiang|shang/PGAMG/
|
||||
- derive/[pq]ie|she/PGD/
|
||||
- derive/shei/PGDG/
|
||||
- derive/shen/PGDM/
|
||||
- derive/sheng/PGDMG/
|
||||
- derive/shi/PGG/
|
||||
- derive/[pq]in/PGM/
|
||||
- derive/[pq]ing/PGMG/
|
||||
- derive/qiong/PGMMG/
|
||||
- derive/shou/PGMT/
|
||||
- derive/qiu|shu/PGT/
|
||||
- derive/shua/PGTA/
|
||||
- derive/shuai/PGTAG/
|
||||
- derive/shuan/PGTAM/
|
||||
- derive/shuang/PGTAMG/
|
||||
- derive/shui/PGTG/
|
||||
- derive/shu[no]/PGTM/
|
||||
- derive/po/PM/
|
||||
- derive/[rs]ong/PMMG/
|
||||
- derive/[prs]ou/PMT/
|
||||
- derive/[pqrs]u/PT/
|
||||
- derive/[prs]uan/PTAM/
|
||||
- derive/que/PTD/
|
||||
- derive/[rs]ui/PTG/
|
||||
- derive/[qrs]un|[rs]uo/PTM/
|
||||
- derive/[tuv]/T/
|
||||
- derive/ta/TA/
|
||||
- derive/tai/TAG/
|
||||
- derive/ta[no]/TAM/
|
||||
- derive/tang/TAMG/
|
||||
- derive/te/TD/
|
||||
- derive/teng/TDMG/
|
||||
- derive/ti/TG/
|
||||
- derive/tia[no]/TGAM/
|
||||
- derive/tie/TGD/
|
||||
- derive/ting/TGMG/
|
||||
- derive/tong/TMMG/
|
||||
- derive/tou/TMT/
|
||||
- derive/tu/TT/
|
||||
- derive/tuan/TTAM/
|
||||
- derive/tui/TTG/
|
||||
- derive/tu[no]/TTM/
|
||||
- derive/[wxyz]/W/
|
||||
- derive/[wyz]a/WA/
|
||||
- derive/[wz]ai/WAG/
|
||||
- derive/[wyz]an|[yz]ao/WAM/
|
||||
- derive/[wyz]ang/WAMG/
|
||||
- derive/[yz]e/WD/
|
||||
- derive/[wz]ei/WDG/
|
||||
- derive/[wz]en/WDM/
|
||||
- derive/[wz]eng/WDMG/
|
||||
- derive/[wyz]i/WG/
|
||||
- derive/xia|zha/WGA/
|
||||
- derive/zhai/WGAG/
|
||||
- derive/xia[no]|zha[no]/WGAM/
|
||||
- derive/xiang|zhang/WGAMG/
|
||||
- derive/xie|zhe/WGD/
|
||||
- derive/zhei/WGDG/
|
||||
- derive/zhen/WGDM/
|
||||
- derive/zheng/WGDMG/
|
||||
- derive/zhi/WGG/
|
||||
- derive/[xy]in/WGM/
|
||||
- derive/[xy]ing/WGMG/
|
||||
- derive/xiong|zhong/WGMMG/
|
||||
- derive/zhou/WGMT/
|
||||
- derive/xiu|zhu/WGT/
|
||||
- derive/zhua/WGTA/
|
||||
- derive/zhuai/WGTAG/
|
||||
- derive/zhuan/WGTAM/
|
||||
- derive/zhuang/WGTAMG/
|
||||
- derive/zhui/WGTG/
|
||||
- derive/zhu[no]/WGTM/
|
||||
- derive/[wy]o/WM/
|
||||
- derive/[yz]ong/WMMG/
|
||||
- derive/[yz]ou/WMT/
|
||||
- derive/[wxyz]u/WT/
|
||||
- derive/[wyz]uan/WTAM/
|
||||
- derive/[xy]ue/WTD/
|
||||
- derive/zui/WTG/
|
||||
- derive/[xyz]un|zuo/WTM/
|
Loading…
x
Reference in New Issue
Block a user