feat: refactor codes

feat: custom rime - disable full_shape punctuations
feat: remap capslock key
This commit is contained in:
Ryan Yin committed 2023-07-15 19:10:04 +08:00
1 parent 52c72bd45d
commit cf33721ec1
16 files changed
+43 -162

No files matched your search

@@ -24,41 +24,7 @@ menu:
page_size: 5
punctuator:
full_shape:
' ' : { commit: ' ' }
',' : { commit: , }
'.' : { commit: 。 }
'<' : [ 《, 〈, «, ‹ ]
'>' : [ 》, 〉, », › ]
'/' : { commit: 、 }
'?' : { commit: ? }
';' : { commit: ; }
':' : { commit: : }
'''' : { pair: [ '‘', '’' ] }
'"' : { pair: [ '“', '”' ] }
'\' : { commit: 、 }
'|' : '|'
'`' : `
'~' : ~
'!' : { commit: ! }
'@' : '@'
'#' : '#'
'%' : '%'
'$' : [ ¥, '$', '€', '£', '¥', '¢', '¤' ]
'^' : { commit: …… }
'&' : &
'*' : '*'
'(' : (
')' : )
'-' : -
'_' : ——
'+' : +
'=' : =
'[' : [ 「, 【, 〔, [ ]
']' : [ 」, 】, 〕, ] ]
'{' : [ 『, 〖, { ]
'}' : [ 』, 〗, } ]
half_shape:
half_shape: &half_shape
',' : { commit: , }
'.' : { commit: 。 }
'<' : [ 《, 〈, «, ‹ ]
@@ -91,10 +57,13 @@ punctuator:
# ']' : { commit: '】' }
# '{' : { commit: '{' }
# '}' : { commit: '}' }
# 直角空格更好看,改成它
'[' : { commit: '「' }
']' : { commit: '」' }
'{' : { commit: '『' }
'}' : { commit: '』' }
# 这个全宽字符非常恶心, 没啥用,老搞出全宽空格,禁用掉!
full_shape: *half_shape
key_binder:
bindings:
@@ -132,7 +101,7 @@ key_binder:
- { when: always, accept: Control+Shift+numbersign, toggle: full_shape }
- { when: always, accept: Control+Shift+dollar, toggle: simplification }
- { when: always, accept: Control+Shift+percent, toggle: extended_charset }
- { when: always, accept: Shift+space, toggle: full_shape }
- { when: always, accept: Shift+space, toggle: full_shape }
- { when: always, accept: Control+period, toggle: ascii_punct }
recognizer:
@@ -160,4 +160,4 @@ menu:
style:
horizontal: true #竖排为false