feat: refactor codes

feat: custom rime - disable full_shape punctuations
feat: remap capslock key
This commit is contained in:
Ryan Yin
2023-07-15 16:53:42 +08:00
parent 52c72bd45d
commit cf33721ec1
16 changed files with 43 additions and 162 deletions

View File

@@ -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:

View File

@@ -160,4 +160,4 @@ menu:
style:
horizontal: true #竖排为false