diff --git a/README.md b/README.md index 32335c2..13cc633 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,14 @@ # 个人 Rime 配置方案 -一份符合个人习惯的 rime 配置方案。 +一份符合个人习惯的 rime 配置方案。支持鼠须管 0.10.0。 ## 配置要点 +### 配置管理 + +* 采用 [東風破](https://github.com/rime/plum) 安装一些第三方配置。 +* 目前本身并不是可被 plum 安装的包。后续可能将一些功能拆分到独立的 plum 包中。 + ### 输入 * 采用 `ub` 开头输入笔画(h横s竖p撇n捺z折) @@ -41,4 +46,4 @@ cd ~/.rime_config ### 其它前端 -下载后将 `Rime` 文件夹内的内容覆盖或者软链接到你的配置文件夹。 \ No newline at end of file +下载后将 `Rime` 文件夹内的内容覆盖或者软链接到你的配置文件夹。请注意参考 deploy 脚本安装 plum 包。 diff --git a/Rime/luna_pinyin.extended/symbols.yaml b/Rime/luna_pinyin.extended/symbols.yaml index c4bf0f6..33a0a25 100755 --- a/Rime/luna_pinyin.extended/symbols.yaml +++ b/Rime/luna_pinyin.extended/symbols.yaml @@ -41,35 +41,37 @@ punctuator: '.' : { commit: 。 } '<' : [ 《, 〈, «, ‹, ˂, ˱ ] '>' : [ 》, 〉, », ›, ˃, ˲ ] - '/' : [ 、, 、, '/', /, ÷ ] + '/': {commit: '/'} '?' : { commit: ? } ';' : { commit: ; } ':' : { commit: : } '''' : { pair: [ '‘', '’' ] } '"' : { pair: [ '“', '”' ] } '\' : [ 、, '\', \ ] - '|' : [ ·, ・, '|', |, '§', '¦', '‖' ] - '`' : [ '`', ‵, ‶, ‷, ′, ″, ‴, ⁗ ] - '~' : [ '~', ~, ˜, ˷, ⸯ, ≈, ≋, ≃, ≅, ≇, ∽, ⋍, ≌, ﹏, ﹋, ﹌ ] + '|': {commit: '|'} + '`': ['`', '·', '・'] + '~': {commit: '~'} '!' : { commit: ! } - '@' : [ '@', ©, ®, ℗ ] - '#' : [ '#', № ] + '@': {commit: '@'} + '#': {commit: '#'} '%' : [ '%', %, '°', '℃', ‰, ‱, ℉, ℅, ℆, ℀, ℁, ⅍ ] '$' : [ ¥, '$', '€', '£', '¥', '¢', '¤', ₩ ] '^' : { commit: …… } '&' : '&' - '*' : [ '*', *, ·, ・, ×, ※, ❂, ⁂, ☮, ☯, ☣ ] + '*': {commit: '*'} '(' : ( ')' : ) '-' : '-' '_' : —— '+' : '+' - '=' : [ '=', 々, 〃 ] - '[' : [ 「, 【, 〔, [ ] - ']' : [ 」, 】, 〕, ] ] - '{' : [ 『, 〖, { ] - '}' : [ 』, 〗, } ] + '=': {commit: '='} + '[': {commit: '【'} + ']': {commit: '】'} + '{': ['「', '『', '〖', '{'] + '}': ['」', '』', '〗', '}'] symbols: + '/cry': ['😂', '🌚', '😅'] + '/yy': ['_(:з」∠)_', '∑(๑º口º๑)!!'] #符號、電腦 '/fh': [ ©, ®, ℗, ℠, ™, ℡, ℻, ☇, ☈, ☉, ☊, ☋, ☌, ☍, ☎, ☏, ☐, ☑, ☒, ☓, ☕, ☖, ☗, ⛉, ⛊, ☘, ☙, ☚, ☛, ☜, ☝, ☞, ☟, ☠, ☡, ☢, ☣, ☤, ☥, ☦, ☧, ☨, ☩, ☪, ☫, ☬, ☭, ☮, ☯, ☸, ♨, ♰, ♱, ♲, ♳, ♴, ♵, ♶, ♷, ♸, ♹, ♺, ♻, ♼, ♽, ♾, ♿, ⚆, ⚇, ⚈, ⚉, ⚐, ⚑, ⚒, ⚓, ⚔, ⚕, ⚖, ⚗, ⚘, ⚙, ⚚, ⚛, ⚜, ⚝, ⚞, ⚟, ⚠, ⚡, ⚰, ⚱, ⚲, ⚳, ⚴, ⚵, ⚶, ⚷, ⚸, ⚹, ⚺, ⚻, ⚼, ⚽, ⚾, ⚿, ⛀, ⛁, ⛂, ⛃, ⛋, ⛌, ⛍, ⛎, ⛏, ⛐, ⛑, ⛒, ⛓, ⛔, ⛕, ⛖, ⛗, ⛘, ⛙, ⛚, ⛛, ⛜, ⛝, ⛞, ⛟, ⛠, ⛡, ⛢, ⛣, ⛨, ⛩, ⛪, ⛫, ⛬, ⛭, ⛮, ⛯, ⛰, ⛱, ⛲, ⛳, ⛴, ⛵, ⛶, ⛷, ⛸, ⛹, ⛺, ⛻, ⛼, ⛽, ⛾, ⛿ ] '/dn': &computer [ , ❖, ⌘, ⌃, ⌥, ⎇, ⇧, ⇪, ␣, ⇥, ⇤, ↩, ⌅, ⌤, ⌫, ⌦, ⌧, ⎋, ⌨, ◁, ⌀, ⌖, ⌗, ⏏, ↖, ↘, ⇞, ⇟, ⌚, ⏰, ⏱, ⏲, ⏳, ⌛, ⌜, ⌝⌞⌟, ⍑, ⏩, ⏪, ⏫, ⏬, ⏭, ⏮, ⏯ ] @@ -90,7 +92,7 @@ punctuator: #天氣 '/tq': [ ☀, ☁, ⛅, ⛈, ⛆, ☂, ☔, ☃, ⛄, ⛇ ] #音樂 - '/yy': [ 𝄞, ♩, ♪, ♫, ♬, ♭, ♮, ♯ ] + '/yinyue': [ 𝄞, ♩, ♪, ♫, ♬, ♭, ♮, ♯ ] #兩性 '/lx': [ ♂, ♀, ⚢, ⚣, ⚤, ⚥, ⚦, ⚧, ⚨, ⚩, ⚪, ⚫, ⚬, ⚭, ⚮, ⚯ ] #八卦、八卦名、六十四卦、六十四卦名、太玄經 diff --git a/Rime/luna_pinyin_simp.custom.yaml b/Rime/luna_pinyin_simp.custom.yaml index 1eaa36b..4891240 100644 --- a/Rime/luna_pinyin_simp.custom.yaml +++ b/Rime/luna_pinyin_simp.custom.yaml @@ -9,27 +9,14 @@ patch: # 载入自定义词库表 "translator/dictionary": oott123_personal + "recognizer/patterns/punct": "^/[a-z]*$" punctuator: import_preset: "luna_pinyin.extended/symbols" - symbols: - '/cry': ['😂', '🌚', '😅'] - '/yy': ['_(:з」∠)_', '∑(๑º口º๑)!!'] - half_shape: - '{': ['「', '『', '〖', '{'] - '}': ['」', '』', '〗', '}'] - '[': {commit: '【'} - ']': {commit: '】'} - '`': ['`', '·', '・'] - # 去掉一些常用符号的列表 - '#': {commit: '#'} - '*': {commit: '*'} - '=': {commit: '='} - '/': {commit: '/'} - '~': {commit: '~'} - '@': {commit: '@'} - '|': {commit: '|'} - + # 反查(笔画和表情)输入依赖 + "schema/dependencies": + - stroke + - emoji "recognizer/patterns/reverse_lookup": "u(b|e)[a-z]*'?$" # 笔画输入 @@ -54,10 +41,8 @@ patch: suffix: "'" tips: '「表情」' - #"engine/translators/@after 3": table_translator@emoji_translator - #emoji_translator: - # dictionary: emoji - # enable_completion: false + # 通过 opencc 触发的中文字符表情输入;需要 plum 包 + __include: emoji_suggestion:/patch # 模糊音: en[g] in[g] z[h] "speller/algebra/@after 1": derive/([ei])n$/$1ng/ @@ -65,16 +50,6 @@ patch: # "speller/algebra/@after 3": derive/^([z])h/$1/ # "speller/algebra/@after 4": derive/^([z])([^h])/$1h$2/ - ## 明月拼音扩充词库设置 ## - # via - # 載入朙月拼音擴充詞庫 - # "translator/dictionary": luna_pinyin.extended - # 改寫拼寫運算,使得含西文的詞彙(位於 luna_pinyin.cn_en.dict.yaml 中)不影響簡拼功能(注意,此功能只適用於朙月拼音系列方案,不適用於各類雙拼方案) # 本條補靪只在「小狼毫 0.9.30」、「鼠鬚管 0.9.25 」、「Rime-1.2」及更高的版本中起作用。 "speller/algebra/@before 0": xform/^([b-df-hj-np-tv-z])$/$1_/ - - # 引入 symbols.yaml 文件,開啓輸入特殊符號功能,如有需求,取消註釋並重新部署即可。在Rime自帶的symbols.yaml的基礎上增加了少量內容。 - # 可輸入的具體內容參考symbols.yaml - # "punctuator/import_preset": "luna_pinyin.extended/symbols" - "recognizer/patterns/punct": "^/[a-z]*$" \ No newline at end of file diff --git a/deploy.sh b/deploy.sh index 88f94ef..4d8c98b 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,12 @@ #!/bin/bash + +# install packages +./plum/rime-install luna-pinyin +./plum/rime-install essay +./plum/rime-install stroke +./plum/rime-install rime/rime-emoji@schema +./plum/rime-install rime/rime-emoji@master + # linking rime config files DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ln -s $1 $DIR/Rime/* ~/Library/Rime