From a0e0ef807e4ebc50771563717375f554c9473315 Mon Sep 17 00:00:00 2001 From: Dvel Date: Wed, 29 Nov 2023 09:19:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=93=E4=B9=9D=E5=AE=AB=E6=A0=BC=20?= =?UTF-8?q?ADGJMPTW=20=E2=86=92=2023456789?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 和全键盘方案不再冲突,切换全键盘和九宫格不再需要改词库了 --- others/Hamster/README.md | 13 + .../Hamster/melt_eng.custom.yaml | 2 +- .../README.md" | 17 - .../rime_ice.dict.yaml" | 18 - t9.schema.yaml | 465 +++++++++--------- 5 files changed, 249 insertions(+), 266 deletions(-) create mode 100644 others/Hamster/README.md rename "others/Hamster\344\271\235\345\256\253\346\240\274/melt_eng.custom.yaml" => others/Hamster/melt_eng.custom.yaml (60%) delete mode 100644 "others/Hamster\344\271\235\345\256\253\346\240\274/README.md" delete mode 100644 "others/Hamster\344\271\235\345\256\253\346\240\274/rime_ice.dict.yaml" diff --git a/others/Hamster/README.md b/others/Hamster/README.md new file mode 100644 index 000000000..147443bb7 --- /dev/null +++ b/others/Hamster/README.md @@ -0,0 +1,13 @@ +# Hamster 九宫格 + +要在仓输入法中启用九宫格,需要切换到九宫格方案,并启用九宫格布局。 + +(可选)解开 `engine/translators` 下的英文翻译器注释,将 `melt_eng.custom.yaml` 复制到配置目录,可以支持九宫格输入英文,方便输入一些短单词,但会导致全键盘方案无法输入英文。 + +
+ +--- + +
+ +因为 [#332 ](https://github.com/imfuxiao/Hamster/issues/322)的原因,目前还不能选择拼音。 diff --git "a/others/Hamster\344\271\235\345\256\253\346\240\274/melt_eng.custom.yaml" b/others/Hamster/melt_eng.custom.yaml similarity index 60% rename from "others/Hamster\344\271\235\345\256\253\346\240\274/melt_eng.custom.yaml" rename to others/Hamster/melt_eng.custom.yaml index b9adc5839..7f01f9d88 100644 --- "a/others/Hamster\344\271\235\345\256\253\346\240\274/melt_eng.custom.yaml" +++ b/others/Hamster/melt_eng.custom.yaml @@ -1,4 +1,4 @@ # 此补丁可以在仓输入法九宫格布局中输入英文 patch: speller/algebra/+: - - xlit/abcdefghijklmnopqrstuvwxyz/AAADDDGGGJJJMMMPPPPTTTWWWW/ + - xlit/abcdefghijklmnopqrstuvwxyz/22233344455566677778889999/ diff --git "a/others/Hamster\344\271\235\345\256\253\346\240\274/README.md" "b/others/Hamster\344\271\235\345\256\253\346\240\274/README.md" deleted file mode 100644 index 2152b5043..000000000 --- "a/others/Hamster\344\271\235\345\256\253\346\240\274/README.md" +++ /dev/null @@ -1,17 +0,0 @@ -# Hamster 九宫格 - -要在仓输入法中启用九宫格,需要切换到九宫格方案,并启用九宫格布局。 - -需要做的额外操作: - -1. 将 `rime_ice.dict.yaml` 覆盖到配置目录同名文件,删除了大写字母的编码,因为仓的九宫格用了大写字母。 -2. (可选)解开 `engine/translators` 下的英文翻译器注释,将 `melt_eng.custom.yaml` 复制到配置目录,可以支持九宫格输入英文,方便输入一些短单词,但会导致全键盘方案无法输入英文。 - -
- ---- - -
- -因为 [#332 ](https://github.com/imfuxiao/Hamster/issues/322)的原因,仓目前还不能选择拼音,九宫格不能选拼音其实基本没法用,不太建议使用,可以等 librime 更新了相关 API 再考虑尝试。 - diff --git "a/others/Hamster\344\271\235\345\256\253\346\240\274/rime_ice.dict.yaml" "b/others/Hamster\344\271\235\345\256\253\346\240\274/rime_ice.dict.yaml" deleted file mode 100644 index 861038b7d..000000000 --- "a/others/Hamster\344\271\235\345\256\253\346\240\274/rime_ice.dict.yaml" +++ /dev/null @@ -1,18 +0,0 @@ -# Rime dictionary -# encoding: utf-8 - ---- -name: rime_ice -version: "1" -import_tables: - - cn_dicts/8105 # 字表 - # - cn_dicts/41448 # 大字表(按需启用) - - cn_dicts/base # 基础词库 - - cn_dicts/ext # 扩展词库 - - cn_dicts/tencent # 腾讯词向量(大词库,部署时间较长) - - cn_dicts/others # 一些杂项 - - # 建议把扩展词库放到下面,有重复词条时,最上面的权重生效 - # - cn_dicts/mydict -... -# 此文件与 rime_ice.dict.yaml 一致,只是删除了下面👇的大写字母之类的 diff --git a/t9.schema.yaml b/t9.schema.yaml index 2bfddf686..bac1eb397 100644 --- a/t9.schema.yaml +++ b/t9.schema.yaml @@ -5,9 +5,9 @@ # 适配了仓输入法 Hamster 九宫格布局。 # 参考于仓作者 [morse.hsiao](https://github.com/imfuxiao) 的示例 # -# 需要将 `others/Hamster九宫格/` 里的两个文件拷贝至配置目录: -# - rime_ice.dict.yaml 覆盖掉原文件。删除了大写字母的编码,因为仓的九宫格拼写默认使用了大写字母 -# - melt_eng.custom.yaml 可选,需解开 `engine/translators` 下的注释,转写英文的拼写规则到九宫格,以支持英文输入,方便打一些短单词 +# 可选,支持英文: +# 1. 解开 `engine/translators` 下的注释 +# 2. 将 `others/Hamster九宫格/melt_eng.custom.yaml` 里的文件拷贝至配置目录,转写英文的拼写规则到九宫格; __include: rime_ice.schema.yaml:/ @@ -68,231 +68,236 @@ punctuator: # 大写字母为穷举后T9拼音的模糊匹配 # 程序内部通过候选拼音的小写字母进行精确匹配 speller: + alphabet: zyxwvutsrqponmlkjihgfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA987654321 algebra: - - 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/tei/TDG/ - - 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/ + - derive/[abc]/2/ + - derive/[bc]a/22/ + - derive/[bc]ai/224/ + - derive/[bc]an|[bc]ao/226/ + - derive/[bc]ang/2264/ + - derive/ce/23/ + - derive/bei/234/ + - derive/[bc]en/236/ + - derive/[bc]eng/2364/ + - derive/[abc]i/24/ + - derive/cha/242/ + - derive/chai/2424/ + - derive/bia[no]|cha[no]/2426/ + - derive/chang/24264/ + - derive/bie|che/243/ + - derive/chen/2436/ + - derive/cheng/24364/ + - derive/chi/244/ + - derive/bin/246/ + - derive/bing/2464/ + - derive/chong/24664/ + - derive/chou/2468/ + - derive/chu/248/ + - derive/chua/2482/ + - derive/chuai/24824/ + - derive/chuan/24826/ + - derive/chuang/248264/ + - derive/chui/2484/ + - derive/chu[no]/2486/ + - derive/a[no]|bo/26/ + - derive/ang/264/ + - derive/cong/2664/ + - derive/cou/268/ + - derive/[bc]u/28/ + - derive/cuan/2826/ + - derive/cui/284/ + - derive/cu[no]/286/ + - derive/[def]/3/ + - derive/[df]a/32/ + - derive/dai/324/ + - derive/[df]an|dao/326/ + - derive/[df]ang/3264/ + - derive/de/33/ + - derive/[df]ei/334/ + - derive/[df]en/336/ + - derive/[df]eng/3364/ + - derive/[de]i/34/ + - derive/dia/342/ + - derive/dia[no]/3426/ + - derive/die/343/ + - derive/ding/3464/ + - derive/diu/348/ + - derive/en|fo/36/ + - derive/eng/364/ + - derive/dong/3664/ + - derive/[df]ou/368/ + - derive/er/37/ + - derive/[df]u/38/ + - derive/duan/3826/ + - derive/dui/384/ + - derive/du[no]/386/ + - derive/[ghi]/4/ + - derive/[gh]a/42/ + - derive/[gh]ai/424/ + - derive/[gh]an|[gh]ao/426/ + - derive/[gh]ang/4264/ + - derive/[gh]e/43/ + - derive/[gh]ei/434/ + - derive/[gh]en/436/ + - derive/[gh]eng/4364/ + - derive/hm/46/ + - derive/[gh]ong/4664/ + - derive/[gh]ou/468/ + - derive/[gh]u/48/ + - derive/[gh]ua/482/ + - derive/[gh]uai/4824/ + - derive/[gh]uan/4826/ + - derive/[gh]uang/48264/ + - derive/[gh]ui/484/ + - derive/[gh]un|[gh]uo/486/ + - derive/[jkl]/5/ + - derive/[kl]a/52/ + - derive/[kl]ai/524/ + - derive/[kl]an|[kl]ao/526/ + - derive/[kl]ang/5264/ + - derive/[kl]e/53/ + - derive/[kl]ei/534/ + - derive/ken/536/ + - derive/[kl]eng/5364/ + - derive/[jl]i/54/ + - derive/[jl]ia/542/ + - derive/[jl]ian|[jl]iao/5426/ + - derive/[jl]iang/54264/ + - derive/[jl]ie/543/ + - derive/[jl]in/546/ + - derive/[jl]ing/5464/ + - derive/jiong/54664/ + - derive/[jl]iu/548/ + - derive/lo/56/ + - derive/[kl]ong/5664/ + - derive/[kl]ou/568/ + - derive/[jkl]u|lv/58/ + - derive/kua/582/ + - derive/kuai/5824/ + - derive/[jkl]uan/5826/ + - derive/kuang/58264/ + - derive/jue|lve/583/ + - derive/kui/584/ + - derive/[jkl]un|[kl]uo/586/ + - derive/[mno]/6/ + - derive/[mn]a/62/ + - derive/[mn]ai/624/ + - derive/[mn]an|[mn]ao/626/ + - derive/[mn]ang/6264/ + - derive/[mn]e/63/ + - derive/[mn]ei/634/ + - derive/[mn]en/636/ + - derive/[mn]eng/6364/ + - derive/[mn]i/64/ + - derive/nia/642/ + - derive/[mn]ian|[mn]iao/6426/ + - derive/niang/64264/ + - derive/[mn]ie/643/ + - derive/[mn]in/646/ + - derive/[mn]ing/6464/ + - derive/[mn]iu/648/ + - derive/mo/66/ + - derive/nong/6664/ + - derive/[mn]ou/668/ + - derive/[mn]u|nv|ou/68/ + - derive/nuan/6826/ + - derive/nve/683/ + - derive/nuo/686/ + - derive/[pqrs]/7/ + - derive/[ps]a/72/ + - derive/[ps]ai/724/ + - derive/[prs]an|[prs]ao/726/ + - derive/[prs]ang/7264/ + - derive/[rs]e/73/ + - derive/pei/734/ + - derive/[prs]en/736/ + - derive/[prs]eng/7364/ + - derive/[pqrs]i/74/ + - derive/pia|sha/742/ + - derive/shai/7424/ + - derive/[pq]ian|[pq]iao|sha[no]/7426/ + - derive/qiang|shang/74264/ + - derive/[pq]ie|she/743/ + - derive/shei/7434/ + - derive/shen/7436/ + - derive/sheng/74364/ + - derive/shi/744/ + - derive/[pq]in/746/ + - derive/[pq]ing/7464/ + - derive/qiong/74664/ + - derive/shou/7468/ + - derive/qiu|shu/748/ + - derive/shua/7482/ + - derive/shuai/74824/ + - derive/shuan/74826/ + - derive/shuang/748264/ + - derive/shui/7484/ + - derive/shu[no]/7486/ + - derive/po/76/ + - derive/[rs]ong/7664/ + - derive/[prs]ou/768/ + - derive/[pqrs]u/78/ + - derive/[prs]uan/7826/ + - derive/que/783/ + - derive/[rs]ui/784/ + - derive/[qrs]un|[rs]uo/786/ + - derive/[tuv]/8/ + - derive/ta/82/ + - derive/tai/824/ + - derive/ta[no]/826/ + - derive/tang/8264/ + - derive/te/83/ + - derive/tei/834/ + - derive/teng/8364/ + - derive/ti/84/ + - derive/tia[no]/8426/ + - derive/tie/843/ + - derive/ting/8464/ + - derive/tong/8664/ + - derive/tou/868/ + - derive/tu/88/ + - derive/tuan/8826/ + - derive/tui/884/ + - derive/tu[no]/886/ + - derive/[wxyz]/9/ + - derive/[wyz]a/92/ + - derive/[wz]ai/924/ + - derive/[wyz]an|[yz]ao/926/ + - derive/[wyz]ang/9264/ + - derive/[yz]e/93/ + - derive/[wz]ei/934/ + - derive/[wz]en/936/ + - derive/[wz]eng/9364/ + - derive/[wyz]i/94/ + - derive/xia|zha/942/ + - derive/zhai/9424/ + - derive/xia[no]|zha[no]/9426/ + - derive/xiang|zhang/94264/ + - derive/xie|zhe/943/ + - derive/zhei/9434/ + - derive/zhen/9436/ + - derive/zheng/94364/ + - derive/zhi/944/ + - derive/[xy]in/946/ + - derive/[xy]ing/9464/ + - derive/xiong|zhong/94664/ + - derive/zhou/9468/ + - derive/xiu|zhu/948/ + - derive/zhua/9482/ + - derive/zhuai/94824/ + - derive/zhuan/94826/ + - derive/zhuang/948264/ + - derive/zhui/9484/ + - derive/zhu[no]/9486/ + - derive/[wy]o/96/ + - derive/[yz]ong/9664/ + - derive/[yz]ou/968/ + - derive/[wxyz]u/98/ + - derive/[wyz]uan/9826/ + - derive/[xy]ue/983/ + - derive/zui/984/ + - derive/[xyz]un|zuo/986/ + # 仓 TF 119 之前的版本需要: + # 1. 启用大写字母,解开下面的注释 + # 2. 删除 rime_ice.dict.yaml 下的大写字母 + # - xlit/22233344455566677778889999/AAADDDGGGJJJMMMPPPPTTTWWWW/