rime

Rime Squirrel 鼠须管配置文件(朙月拼音、小鹤双拼、自然码双拼)

Stars
3K

Rime Squirrel

  • Emoji

GVGmailChatGPTApple ID

Rime Control+ F4

Mac Squirrel

Rime.bak

cp -r ~/Library/Rime ~/Library/Rime.bak

RimeRime.bak-

  1. Mac
    • Control+Option+

default.custom.yaml

VSCode Tab

Control+

.schema.yaml luna_pinyin_simp.schema.yaml luna_pinyin_simp.custom.yaml <>.custom.yaml

schema_list:
  - schema: luna_pinyin_simp      # 
  - schema: double_pinyin_flypy   # 
  - schema: double_pinyin         # 
  - schema: numbers               # 

menu/page_size: 9

Caps Shift

ascii_composer/good_old_caps_lock: true #  true Caps 
ascii_composer/switch_key:
  Caps_Lock: commit_code                # Caps 
  Shift_L: commit_code                  #  Shift
  Shift_R: commit_code                  #  Shift
  Control_L: noop                       #  Control
  Control_R: noop                       #  Control

Caps Mac > > >

  • inline_ascii
  • commit_text

  • when composing``has_menu``paging
  • accept minus``equal,period``comma``bracketleft``bracketright
  • send Page_Up``Page_Down``Escape()
# 
- { when: has_menu, accept: Tab, send: Page_Down }            # "tab" ,  "tab" 
- { when: composing, accept: Shift+Tab, send: Shift+Left }    # "Shift+Tab" 
- { when: paging, accept: minus, send: Page_Up }              # "-" 
- { 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 }   # "]" 

# 
- { when: has_menu, accept: semicolon, send: 2 }              # ":" () 2 
- { when: has_menu, accept: apostrophe, send: 3 }             # "'" () 3 
- { when: composing, accept: Shift+Tab, send: Shift+Left }    # "Shift+Tab" 
- { when: composing, accept: Control+a, send: Home }          # "Control+a" 
- { when: composing, accept: Control+e, send: End }           # "Control+e" 
- { when: composing, accept: Control+g, send: Escape }        # "Control+g" 
- { when: composing, accept: Return, send: Escape }           # "Return" 
- { when: always, accept: Control+Shift+1, select: .next }             # 
- { when: always, accept: Control+Shift+2, toggle: ascii_mode }        # /
- { when: always, accept: Control+Shift+3, toggle: full_shape }        # /
- { when: always, accept: Control+Shift+4, toggle: simplification }    # 
- { when: always, accept: Control+Shift+5, toggle: extended_charset }  # /
- { when: composing, accept: Control+b, send: Left }           # "Control+b" 
- { when: composing, accept: Control+f, send: Right }          # "Control+f" 
- { when: composing, accept: Control+h, send: BackSpace }      # "Control+h" 

<>.dict.yaml

AV luna_pinyin.av.dict.yaml

#  AV 

name: luna_pinyin.av  # 
version: "2021.12.21"
sort: by_weight
use_preset_vocabulary: false
...
                              # 
  san shang you ya  1  #  Tab 

luna_pinyin.extended.dict.yaml

AV luna_pinyin.av.dict.yaml luna_pinyin.av

import_tables:
  - luna_pinyin
  - luna_pinyin.av
  - luna_pinyin.chat
  - luna_pinyin.sogou

luna_pinyin_simp.custom.yamlEmoji

patch:
  # 
  engine/filters:
    - simplifier
    - simplifier@emoji_conversion
    - uniquifier
    - charset_filter@gbk # (3) GBK 
    - single_char_filter

  emoji_conversion:
    opencc_config: emoji.json
    option_name: show_emoji
    tags: abc
    #tips: all    # Emoji 

  # luna_pinyin.cn_en.dict.yaml
  "speller/algebra/@before 0": xform/^([b-df-hj-np-tv-z])$/$1_/

  # 
  "translator/dictionary": luna_pinyin.extended

  # easy_en
  "schema/dependencies/@1": easy_en
  #  english
  "engine/translators/@4": table_translator@english
  # english
  english:
    dictionary: easy_en
    spelling_hints: 9
    enable_completion: false # 
    enable_sentence: false # 
    initial_quality: -0.5 # , 

luna_pinyin_simp.custom.yamlswitches Emoji

patch:
  switches:
    - name: ascii_mode                   # 0 1 
      reset: 0
      states: ["", ""]
    - name: full_shape                   # /
      states: ["", ""]
    - name: show_emoji                   # Emoji 
      reset: 1
      states: [ "\uFE0E", "\uFE0F" ]
    - name: zh_simp                      # (1) 
      reset: 1
      states: ["", ""]
    - options: ["utf8", "gbk", "gb2312"] # (2)
      reset: 0                           #  UTF8
      states:
        - UTF-8
        - GBK
        - GB2312

12

Emoji

opencc emoji_word.txt Tab

     
     

Control + Emoji

luna_pinyin_simp.custom.yaml

-build - luna_pinyin_simp.schema.yaml

"/fs": [, , , , , ,  ]
"/xh": [ , , , , , , , , , , , , , ]
"/dq": [,,,,,,,,,,,]
"/sg": [,,,,,,,,,,,,,]
"/dw": [,,,,,,,,,,]
"/bq": [,,,,,,,,,,,,,]
"/ss": [,,,,,,,,,,,,,]
"#": "#"
"*": "*"
"`": "`"
"~": "~"
"@": "@"
"=": "="
'\': ""
"%": "%"
"$": ["", "$"]
"|": ["|", "", ""]
"/": ["/", ""]
"'": { pair: ["", ""] }  #
"[": ""
"]": ""
"<": ""
">": ""

luna_pinyin_simp.custom.yaml #

#  # 
- derive/^([zcs])h/$1/             # zh, ch, sh => z, c, s
- derive/^([zcs])([^h])/$1h$2/     # z, c, s => zh, ch, sh
- derive/^n/l/                     # n => l
- derive/^l/n/                     # l => n

# 
- derive/^r/l/                     # r => l
- derive/^ren/yin/                 # ren => yin, reng => ying
- derive/^r/y/                     # r => y

#  hu <=> f 
- derive/^hu$/fu/                  # hu => fu
- derive/^hong$/feng/              # hong => feng
- derive/^hu([in])$/fe$1/          # hui => fei, hun => fen
- derive/^hu([ao])/f$1/            # hua => fa, ...
- derive/^fu$/hu/                  # fu => hu
- derive/^feng$/hong/              # feng => hong
- derive/^fe([in])$/hu$1/          # fei => hui, fen => hun
- derive/^f([ao])/hu$1/            # fa => hua, ...

# 
- derive/^([bpmf])eng$/$1ong/      # meng = mong, ...
- derive/([ei])n$/$1ng/            # en => eng, in => ing
- derive/([ei])ng$/$1n/            # eng => en, ing => in

# 
- abbrev/^([a-z]).+$/$1/           # 
- abbrev/^([zcs]h).+$/$1/          # zh, ch, sh

# 
- derive/([aeiou])ng$/$1gn/        # dagn => dang
- derive/([dtngkhrzcs])o(u|ng)$/$1o/  # zho => zhong|zhou
- derive/ong$/on/                  # zhonguo => zhong guo
- derive/ao$/oa/                   # hoa => hao
- derive/([iu])a(o|ng?)$/a$1$2/    # tain => tian

Rime.lua sj time

  • rq = 2022-01-14``20220114``01-14``2022/01/14
  • sj = 03:11``03:11:00
  • xq = ``````
function date_translator(input, seg)
    if (input == "rq") then
       Candidate(type, start, end, text, comment)
        yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d"), ""))
        yield(Candidate("date", seg.start, seg._end, os.date("%Y%m%d"), ""))
        yield(Candidate("date", seg.start, seg._end, os.date("%m-%d"), ""))
        yield(Candidate("date", seg.start, seg._end, os.date("%Y/%m/%d"), ""))
    end
    if (input == "sj") then
       Candidate(type, start, end, text, comment)
        yield(Candidate("time", seg.start, seg._end, os.date("%H:%M"), ""))
        yield(Candidate("time", seg.start, seg._end, os.date("%H:%M:%S"), ""))
    end
    if (input == "xq") then
        local weakTab = {'', '', '', '', '', '', ''}
        yield(Candidate("week", seg.start, seg._end, ""..weakTab[tonumber(os.date("%w")+1)], ""))
        yield(Candidate("week", seg.start, seg._end, ""..weakTab[tonumber(os.date("%w")+1)], ""))
        yield(Candidate("week", seg.start, seg._end, ""..weakTab[tonumber(os.date("%w")+1)], ""))
    end
end

luna_pinyin_simp.custom.yaml

"engine/translators/@6": lua_translator@date_translator

custom_phrase.txt++ Tab

Rime  rime	4
	rime	3
https://rime.im/	rime	2
Squirrel	rime	1

squirrel.custom.yaml

  • style/color_scheme:
  • style/color_scheme_dark:

  • 8bit RedGreenBlueAlpha 32bit
  • Alpha 0xF F
  • 0xAABBGGRR 0xBBGGRR

squirrel.custom.yaml

  • ascii_mode: true
  • ascii_mode: false
  • ascii_punct: true

VSCode

com.microsoft.VSCode:
    ascii_mode: true
    sacii_punct: true

  1. Mac `` ****
  2. Identifier

numbers.schema.yaml

```` Shift+Fn+Delete Control+Delete

iCloud

1 installation.yaml id Mac 2 admin Mac RimeSync

sync_dir: "/Users/admin/Library/Mobile Documents/com~apple~CloudDocs/RimeSync"

3- iCloud RimeSync

iCloud

  1. installation.yaml id iCloud installation.yaml

$TMPDIR/rime.Squirrel.INFO

rime.squirrel.INFO****