Skip to content

Commit

Permalink
适配 同文无障碍版
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan committed Mar 23, 2021
1 parent c53b020 commit bab7e73
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 33 deletions.
59 changes: 30 additions & 29 deletions danjing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
# version: 1.1

vars:
# 不要修改宽度
- '单单 <[email protected]>'
#- &sym_height 50 #按键高度 移至主文件
# !不要修改宽度
#- &sym_height 50 #按键高度 移至 单静.trime.ymal
- &menu_height 41 #菜单高度
- &sym_bottom_switch 0 #底部空白开关
- &sym_bottom 1 #底部空白
- &sym_long_text_size 20 #长标签字号
- &sym_width 12 #按键宽度
- &off_sym_width 16 #功能键宽度
- &menu_width 12.5 #菜单宽度
- &sym_long_text_size 20 #长标签字号
- &yanwz_width 28 #颜文字键盘按键宽度
- &yanwz_double_width 56 #颜文字键盘2按键宽度
- &yanwz_double_width 56 #颜文字键盘2键宽度
- &yanwz_menu_width 16 #颜文字键盘菜单宽度

keyboards:
Expand Down Expand Up @@ -192,39 +191,53 @@ keys:
kb_yanwz6d: { label: '▼', send: Eisu_toggle, select: yanwz62 }

vars_map:
# 符号键盘配置
symbols_config:
author: '单单 <[email protected]>'
ascii_mode: 1
width: *sym_width
key_press_offset_x: 2
key_press_offset_y: 2
# 功能键
styl_off_sym:
width: *off_sym_width
key_back_color: off_sym_back_color
hilited_key_back_color: hilited_off_sym_back_color
# 不可用的功能键(右边点不动的箭头)
styl_unavl_off_sym:
width: *off_sym_width
key_back_color: off_sym_back_color
hilited_key_back_color: hilited_off_sym_back_color
key_text_color: hilited_off_sym_back_color
hilited_key_text_color: hilited_off_sym_back_color
# 底部的菜单
styl_menu:
height: *menu_height
width: *menu_width
key_back_color: menu_back_color
hilited_key_back_color: hilited_menu_back_color
key_text_color: menu_text_color
hilited_key_text_color: hilited_menu_text_color
# 高亮的底部菜单
styl_hilited_menu:
height: *menu_height
width: *menu_width
key_back_color: hilited_menu_back_color
hilited_key_back_color: hilited_menu_back_color
key_text_color: hilited_menu_text_color
hilited_key_text_color: hilited_menu_text_color
# 颜文字键盘
yanwz_config:
author: '单单 <[email protected]>'
ascii_mode: 1
width: *yanwz_width
key_press_offset_x: 2
key_press_offset_y: 2
# 底部的菜单
styl_yanwz_menu:
__include: vars_map/styl_menu
width: *yanwz_menu_width
# 高亮的底部菜单
styl_yanwz_hilited_menu:
__include: vars_map/styl_hilited_menu
width: *yanwz_menu_width
Expand Down Expand Up @@ -2301,8 +2314,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz11:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 开心1
keys:
- { click: "^_^" }
Expand Down Expand Up @@ -2330,8 +2342,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz12:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 开心2
keys:
- { click: "Y(^_^)Y" }
Expand All @@ -2358,8 +2369,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz21:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 喜欢1
keys:
- { click: "QwQ" }
Expand Down Expand Up @@ -2387,8 +2397,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz22:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 喜欢2
keys:
- { click: "( σ'ω')σ" }
Expand Down Expand Up @@ -2416,8 +2425,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz31:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 伤心1
keys:
- { click: "(>﹏<)" }
Expand Down Expand Up @@ -2445,8 +2453,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz32:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 伤心2
keys:
- { click: "●﹏●" }
Expand Down Expand Up @@ -2474,8 +2481,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz41:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 生气1
keys:
- { click: "╰(‵□′)╯" }
Expand Down Expand Up @@ -2503,8 +2509,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz42:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 生气2
keys:
- { click: "<(`^´)>" }
Expand Down Expand Up @@ -2532,8 +2537,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz51:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 惊讶1
keys:
- { click: "⊙_⊙" }
Expand Down Expand Up @@ -2561,8 +2565,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz52:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 惊讶2
keys:
- { click: "(⊙x⊙;)" }
Expand All @@ -2588,8 +2591,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz61:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 无奈1
keys:
- { click: "=_=" }
Expand Down Expand Up @@ -2617,8 +2619,7 @@ kbs:
- { width: *sym_bottom_switch, height: *sym_bottom }

yanwz62:
__include: vars_map/symbols_config
width: *yanwz_width
__include: vars_map/yanwz_config
name: 无奈2
keys:
- { click: "o_O" }
Expand Down
9 changes: 5 additions & 4 deletions 单静.trime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ preset_keyboards:
}
- { click: 'k', long_click: ':', __include: vars_map/styl_key }
- { click: 'l', long_click: ';', __include: vars_map/styl_key }
- { width: 0 } #备用
# 第 3 行
- { click: Shift_L, composing: split_word, width: 15 }
- {
Expand Down Expand Up @@ -619,7 +620,7 @@ preset_keyboards:
__patch:
ascii_mode: 1
lock: false
'keys/@33/long_click': Keyboard_default
'keys/@34/long_click': Keyboard_default

qwertys:
name: 默认27键
Expand All @@ -630,7 +631,7 @@ preset_keyboards:
'keys/@18/hint': ' '
'keys/@19/long_click': '<'
'keys/@20/long_click': '>'
'keys/@after 20/':
'keys/@21/':
click: ';'
long_click: ':'
width: 10
Expand All @@ -644,7 +645,7 @@ preset_keyboards:
'keys/@22/': { width: 0 }
'keys/@27/hint': ' '
'keys/@27/long_click': '|'
'keys/@30/':
'keys/@after 29/':
click: ','
long_click: '!'
__include: vars_map/styl_key
Expand All @@ -656,7 +657,7 @@ preset_keyboards:
click: '/'
long_click: '\'
__include: vars_map/styl_key
'keys/@after 32/':
'keys/@30/':
click: Shift_L
composing: split_word
height: *key_height_last
Expand Down
88 changes: 88 additions & 0 deletions 无障碍专用/单静+.trime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Trime style settings
# encoding: utf-8

config_version: '2.1'
name: 单静+ #方案名称
author: '单单 <[email protected]>' #作者资讯

vars:
# 其他在 单静.yaml修改
# 主键盘
- &num_height 44 #数字行按键高度
# 数字、编辑、功能键盘
- &number_height 71 #按键高度
# 符号、颜文字键盘
- &sym_height 61 #按键高度
#- &menu_height 41 #菜单高度 见附文件 danjing.yaml
#- &sym_bottom 0 #底部空白 见附文件

style:
__include: 单静.trime:/style
key_height: *sym_height #键高

fallback_colors:
__include: 单静.trime:/fallback_colors

preset_color_schemes:
__include: 单静.trime:/preset_color_schemes

patch_num:
'keys/@4/hint': ' '
'keys/@7/hint': ' '
'keys/@0/': { click: num1, height: *num_height }
'keys/@after 0/': { click: num2, height: *num_height }
'keys/@after 1/': { click: num3, height: *num_height }
'keys/@after 2/': { click: num4, height: *num_height }
'keys/@after 3/': { click: num5, height: *num_height }
'keys/@after 4/': { click: num6, height: *num_height }
'keys/@after 5/': { click: num7, height: *num_height }
'keys/@after 6/': { click: num8, height: *num_height }
'keys/@after 7/': { click: num9, height: *num_height }
'keys/@after 8/': { click: num0, height: *num_height }

preset_keyboards:
__include: danjing:/kbs

default:
__include: 单静.trime:/preset_keyboards/default
__patch: patch_num
letter:
__include: 单静.trime:/preset_keyboards/letter
__patch: patch_num
qwertys:
__include: 单静.trime:/preset_keyboards/qwertys
__patch: patch_num
qwerty_:
__include: 单静.trime:/preset_keyboards/qwerty_
__patch: patch_num

number:
__include: 单静.trime:/preset_keyboards/number
height: *number_height

edit:
__include: 单静.trime:/preset_keyboards/edit
height: *number_height

func:
__include: 单静.trime:/preset_keyboards/func
height: *number_height

android_keys:
__include: trime:/android_keys

preset_keys:
__include: 单静.trime:/preset_keys
num1: { label: 1, send: 1 }
num2: { label: 2, send: 2 }
num3: { label: 3, send: 3 }
num4: { label: 4, send: 4 }
num5: { label: 5, send: 5 }
num6: { label: 6, send: 6 }
num7: { label: 7, send: 7 }
num8: { label: 8, send: 8 }
num9: { label: 9, send: 9 }
num0: { label: 0, send: 0 }
kb_qwerty: { label: '36键', send: Eisu_toggle, select: default }
kb_qwertys: { label: '37键', send: Eisu_toggle, select: qwertys }
kb_qwerty_: { label: '40键', send: Eisu_toggle, select: qwerty_ }
21 changes: 21 additions & 0 deletions 无障碍专用/单静.trime.custom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# custom


vars:
# 主键盘
- &key_height 59 #按键高度
- &key_height_last 57 # 第4行 按键高度

patch:
'preset_keyboards/default/height': *key_height
'preset_keyboards/default/keys/@31/height': *key_height_last

'preset_keyboards/letter/height': *key_height
'preset_keyboards/letter/keys/@31/height': *key_height_last

'preset_keyboards/qwertys/height': *key_height
'preset_keyboards/qwertys/keys/@31/height': *key_height_last

'preset_keyboards/qwerty_/height': *key_height
'preset_keyboards/qwerty_/keys/@33/height': *key_height_last

0 comments on commit bab7e73

Please sign in to comment.