Created
December 9, 2024 08:27
-
-
Save AllanChain/8037c3e4729a42776213c5bc163d4fde to your computer and use it in GitHub Desktop.
Trime 配色
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Trime custom style settings | |
# encoding: utf-8 | |
config_version: "3.0" | |
name: 雾凇 #方案名称 | |
author: 风花絮 #作者信息 | |
#键盘高度 | |
height: | |
1: &jpgd1 30 #表情键盘 | |
2: &jpgd2 24 #颜文字键盘1 | |
3: &jpgd3 24 #颜文字键盘2 | |
4: &jpgd4 48 #主键盘 | |
5: &jpgd5 39.5 #符号键盘 | |
6: &hgap 4 #键盘横缝大小 | |
7: &sgap 8 #键盘竖缝大小 | |
#键盘高度 | |
round_corner: | |
1: &round1 12 #按键圆角半径 | |
2: &round2 0 #候选窗口圆角 | |
3: &round3 12 #回车键圆角 | |
#界面风格、功能开关 | |
style: | |
auto_caps: false #自動句首大寫:true|false|ascii | |
background_dim_amount: 0.5 | |
root_background: keyboard_back_color # 整个键盘区+候选栏的背景图/色 | |
candidate_font: han.ttf #候选字体 | |
candidate_padding: 5 #候选项内边距 | |
candidate_spacing: 0.5 #候选间距 | |
candidate_text_size: 18 #候选字号 | |
candidate_use_cursor: true #高亮候选项 | |
candidate_view_height: 28 #候选区高度 | |
color_scheme: default #配色方案 | |
comment_font: comment.ttf #编码提示字体 | |
comment_height: 14 #编码提示区高度 | |
comment_on_top: true #编码提示在上方或右侧 | |
comment_text_size: 12 #编码提示字号 | |
hanb_font: hanb.ttf #扩充字体 | |
horizontal: true #水平模式 | |
horizontal_gap: *hgap #键水平间距 | |
layout: | |
position: fixed #候选窗口位置:left|right|left_up|right_up|fixed|bottom_left|bottom_right|top_left|top_right(left、right需要Android5.0以上) | |
min_length: 4 #候选窗口最小词长 | |
max_length: 14 #超过字数则换行 | |
sticky_lines: 1 #固顶行数 | |
sticky_lines_land: 0 #横屏模式下的固顶行数 | |
max_entries: 9 #候选窗口最大词条数 | |
border: 0 #候选窗口边框宽度 | |
max_width: 360 #最大宽度,超过则自动换行 | |
max_height: 300 #最大高度 | |
min_width: 0 #最小宽度 | |
min_height: 50 #最小高度 | |
margin_x: 5 #水平邊距 NOTE: margin_{x, y, bottom} 实际为 padding | |
margin_y: 5 #竖直边距 | |
line_spacing: 0 #候选词的行间距(px) | |
line_spacing_multiplier: 1.2 #候选词的行间距(倍数) | |
real_margin: 3 #屏幕左右边缘和悬浮窗之间的距离 TODO: 在 4.0 时给 real_margin 与 spacing 换一个更适合的名字 | |
spacing: 1 #屏幕上下边缘或预编辑上下边缘和悬浮窗之间的距离 | |
round_corner: *round2 #候选窗口圆角 | |
alpha: 0xff #透明度(0-255) | |
elevation: 0 #阴影(>=Android5.0) | |
background: background.png #颜色或者backgrounds目录下的图片文档名 | |
movable: false #是否可移动窗口,或仅移动一次 true|false|once | |
all_phrases: false #显示所有长词 | |
window: #悬浮窗口组件 | |
# - {start: "", move: 'ㄓ ', end: ""} | |
- {start: "", composition: "%s", end: "", letter_spacing: 0.12} #letter_spacing需要Android5.0 | |
- {start: "\n", label: "%s.", candidate: "%s", comment: "%s", end: "", sep: "☁️️"} | |
key_font: symbol.ttf #键盘字体 | |
key_height: *jpgd4 #键高 | |
key_long_text_size: 16 #长标签字号 | |
key_text_size: 24 #键字号 | |
key_width: 10.0 #键宽,占屏幕宽的百分比 | |
keyboards: [.default, number, edit, move, numberb] #键盘配置 | |
label_text_size: 22 #标签字号 | |
label_font: label.ttf #编标签字体 | |
latin_font: latin.ttf #西文本体 | |
latin_locale: en_US #西文语言 | |
locale: zh_CN #缺省语言 zh_TW,zh_CN,zh_HK,"" | |
keyboard_height: 250 #锁定键盘高度,避免切换时键盘高度变化而造成闪烁 | |
keyboard_height_land: 200 #锁定横屏下键盘高度,避免切换时键盘高度变化而造成闪烁 | |
preview_font: latin.ttf #按键提示字体 | |
preview_height: 56 #按键提示高度 | |
preview_offset: -32 #按键提示纵向偏移 | |
preview_text_size: 40 #按键提示字号 | |
proximity_correction: true #按键纠错 | |
reset_ascii_mode: false #显示键盘时重置为中文状态 | |
round_corner: *round1 #按键圆角半径 | |
shadow_radius: 0.0 #按键阴影半径 | |
speech_opencc_config: none #语音输入简繁转换 | |
symbol_font: symbol.ttf #符号字体 | |
symbol_text_size: 10 #符号字号 | |
text_font: latin.ttf #编码字体 | |
#text_height: 32 #编码区高度 | |
text_size: 14 #编码区字号 | |
vertical_correction: -5 | |
vertical_gap: *sgap #键盘行距 | |
enter_label_mode: 0 #是否使用App提供的ActionLabel内容作为Enter键的文本(由于多数App没有适配ActionLable,实际影响不大)。0不使用,1只使用actionlabel,2优先使用,3当其他方式没有获得label时才读取actionlabel | |
enter_labels: # 定义Enter键的文本 | |
go: 前往 | |
done: 完成 | |
next: 下个 | |
pre: 上个 | |
search: 搜索 | |
send: 发送 | |
default: Enter # 定义默认Enter键的文本 | |
fallback_colors: | |
candidate_text_color: text_color | |
comment_text_color: candidate_text_color | |
border_color: back_color | |
candidate_separator_color: border_color | |
hilited_text_color: text_color | |
hilited_back_color: back_color | |
hilited_candidate_text_color: hilited_text_color | |
hilited_candidate_back_color: hilited_back_color | |
hilited_comment_text_color: comment_text_color | |
hilited_key_back_color: hilited_candidate_back_color | |
hilited_key_text_color: hilited_candidate_text_color | |
hilited_key_symbol_color: hilited_comment_text_color | |
hilited_off_key_back_color: hilited_key_back_color | |
hilited_on_key_back_color: hilited_key_back_color | |
hilited_off_key_text_color: hilited_key_text_color | |
hilited_on_key_text_color: hilited_key_text_color | |
key_back_color: back_color | |
key_border_color: border_color | |
key_text_color: candidate_text_color | |
key_symbol_color: comment_text_color | |
label_color: candidate_text_color | |
off_key_back_color: key_back_color | |
off_key_text_color: key_text_color | |
on_key_back_color: hilited_key_back_color | |
on_key_text_color: hilited_key_text_color | |
preview_back_color: key_text_color | |
preview_text_color: key_back_color | |
shadow_color: border_color | |
root_background: back_color # 整个键盘区+候选栏的背景图/色 | |
candidate_background: back_color #候选栏的整体背景图/色 | |
keyboard_back_color: border_color #键盘去的背景图/色 | |
liquid_keyboard_background: keyboard_back_color # liquidKeyboard的背景图/色 | |
text_back_color: back_color #编码区背景,即悬浮窗背景 | |
long_text_back_color: key_back_color #长文本按键的背景(剪贴板) | |
#颜色 | |
colors: | |
1: &color1 0xff000000 | |
2: &color2 0xffffffff | |
3: &color3 0xffe1e3e7 | |
4: &color4 0xffacb2c2 | |
5: &color5 0xff131313 | |
6: &color6 0xff3266a0 | |
7: &color7 0x00 | |
8: &color8 0xff838383 | |
#配色方案 | |
preset_color_schemes: | |
default: | |
name: "标准配色!" #方案名称 | |
author: 风花絮 #作者信息 | |
dark_scheme: steam | |
back_color: *color2 #候选区背景状态栏 | |
candidate_separator_color: *color2 #候选分割背景 | |
candidate_text_color: *color1 #候选文本 | |
comment_text_color: *color3 #提示 | |
hilited_back_color: *color2 #高亮编码背景 | |
hilited_candidate_back_color: *color2 #高亮候选背景 | |
hilited_candidate_text_color: *color6 #高亮候选文本 | |
hilited_comment_text_color: *color1 #高亮提示 | |
hilited_key_back_color: *color6 #高亮按键背景 | |
hilited_key_symbol_color: *color2 #高亮按键符号 | |
hilited_key_text_color: *color1 #高亮按键文本 | |
hilited_off_key_back_color: *color2 #高亮按键关闭状态背景 | |
hilited_off_key_text_color: *color1 #高亮按键关闭状态文本 | |
hilited_text_color: *color1 #高亮编码 | |
key_back_color: *color2 #按键背景 | |
key_symbol_color: *color8 #按键符号 | |
key_text_color: *color1 #按键文本 | |
keyboard_back_color: *color3 #键盘背景 | |
label_color: *color6 #标签 | |
off_key_back_color: *color4 #按键关闭状态背景 | |
off_key_text_color: *color8 #按键关闭状态文本 | |
preview_back_color: *color4 #按键提示背景 | |
preview_text_color: *color6 #按键提示文本 | |
text_color: *color6 #编码 | |
text_back_color: *color2 #编码区背景 | |
bkg: *color2 #空格键背景色 | |
tkg: *color1 #空格键文字颜色 | |
benter: *color6 #回车键背景色 | |
tenter: *color2 #回车键文字颜色 | |
bgn: *color4 #功能键背景色 | |
tgn: *color2 #功能键文字颜色 | |
bbs: *color4 #退格键背景色 | |
tbs: *color2 #退格键文字颜色 | |
baoe: *color2 #aoeiu背景色 | |
taoe: *color6 #aoeiu文字颜色 | |
bh1: *color2 #第一行背景色 | |
th1: *color1 #第一行文字颜色 | |
bh2: *color2 #第二行背景色 | |
th2: *color1 #第二行文字颜色 | |
bh3: *color2 #第三行背景色 | |
th3: *color1 #第三行文字颜色 | |
bh4: *color2 #第四行背景色 | |
th4: *color1 #第四行文字颜色 | |
#--------配色开始----------------# | |
yushe: | |
name: 預設/default #方案名稱 | |
author: osfans #作者資訊 | |
back_color: 0xffe4e7e9 #候選區背景 | |
border_color: 0xffc1c7ca #邊框 | |
candidate_separator_color: 0xffc1c7ca #候選分割背景 | |
candidate_text_color: 0xff5a676e #候選文字 | |
comment_text_color: 0xff7b868c #提示 | |
hilited_back_color: 0xccd3d7da #標明編碼背景 | |
hilited_candidate_back_color: 0xffd3d7da #標明候選背景 | |
hilited_candidate_text_color: 0xff000000 #標明候選文字 | |
hilited_comment_text_color: 0xff000000 #標明提示 | |
hilited_key_back_color: 0xffd3d7da #標明按鍵背景 | |
hilited_key_symbol_color: 0xff000000 #標明按鍵符號 | |
hilited_key_text_color: 0xff000000 #標明按鍵文字 | |
hilited_off_key_back_color: 0xffd3d7da #標明按鍵關閉狀態背景 | |
hilited_off_key_text_color: 0xff000000 #標明按鍵關閉狀態文字 | |
hilited_on_key_back_color: 0xffd3d7da #標明按鍵打開狀態背景 | |
hilited_on_key_text_color: 0xff000000 #標明按鍵打開狀態文字 | |
hilited_text_color: 0xff23948e #標明編碼 | |
key_back_color: 0xffeceff1 #按鍵背景 | |
key_border_color: 0xffeceff1 #按鍵邊框 | |
key_symbol_color: 0xff5f6b73 #按鍵符號 | |
key_text_color: 0xff37474f #按鍵文字 | |
keyboard_back_color: 0xffffffff #鍵盤背景 | |
label_color: 0xff000000 #標籤 | |
off_key_back_color: 0xffd3d7da #按鍵關閉狀態背景 | |
off_key_text_color: 0xff000000 #按鍵關閉狀態文字 | |
on_key_back_color: 0xff23948e #按鍵打開狀態背景 | |
on_key_text_color: 0xff37474f #按鍵打開狀態文字 | |
preview_back_color: 0x55bfbfbf #按鍵提示背景 | |
preview_text_color: 0xff23948e #按鍵提示文字 | |
shadow_color: 0xff000000 #陰影 | |
text_color: 0xff5a676e #編碼 | |
text_back_color: 0xcce4e7e9 #編碼區背景 | |
lost_temple: | |
name: 孤寺/Lost Temple | |
author: 佛振 <[email protected]>, based on ir_black | |
text_color: 0xfff6f3e8 | |
back_color: 0xff444444 | |
border_color: 0xff444444 | |
hilited_text_color: 0xffcae682 | |
hilited_back_color: 0xff222222 | |
hilited_candidate_text_color: 0xff000000 | |
hilited_candidate_back_color: 0xffcae682 | |
dark_temple: | |
name: 暗堂/Dark Temple | |
author: 佛振 <[email protected]>, based on ir_black | |
text_color: 0xffdaf692 | |
candidate_text_color: 0xffe6e3d8 | |
back_color: 0xff222222 | |
key_back_color: 0xff282828 | |
bbs: 0xff282832 | |
benter: 0xff0751bb | |
border_color: 0xff222222 | |
hilited_text_color: 0xff9acfff | |
hilited_back_color: 0xff222222 | |
hilited_candidate_text_color: 0xffdaf692 | |
hilited_candidate_back_color: 0xff333333 | |
comment_text_color: 0xffff6c60 | |
#--------配色结束----------------# | |
liquid_keyboard: | |
# 目前只能直接写参数,不支持变量或者fallback机制。 | |
# 缺少参数时,自动从style中加载参数。除非需要指定liquid_keyboard使用与主键盘不同的背景色、背景图,否则不应设置被注释掉的参数。 | |
author: "tumuyan" | |
row: 6 #每屏最多显示多少行按键 | |
row_land: 5 #横屏每屏最多显示多少行按键 | |
key_height: 40 #按键高度 | |
key_height_land: 40 #横屏模式按键高度 | |
single_width: 60 #single类型的按键宽度 | |
vertical_gap: 8 #纵向按键间隙 | |
margin_x: 2 #左右按键间隙的1/2 | |
keyboards: [ history, ascii, cn, clipboard, math, pinyin, grease, exit] #tab列表 | |
exit: | |
name: 返回 | |
type: NO_KEY | |
keys: EXIT | |
history: | |
name: 常用 | |
type: HISTORY | |
clipboard: | |
type: CLIPBOARD | |
name: 剪贴 | |
math: #tab名称 | |
type: SINGLE | |
name: 数学 | |
keys: "≈=≠≌<>≤≥≡()[]{}-+±×*/÷&∥%‰‱°′″∫∮∯∬∭∰∞∑∧∏∈∵∴⊥∝∨∪•√〒∝∽∈∩∧⊙⌒∥∟∣∂∆∞≌∉∪∨⊕⊿⊥∠∫∬∭" #tab中的按键列表 | |
cn: | |
type: SINGLE | |
name: 中文 | |
keys: #keys列表可以使用多种格式混合书写。 | |
- , | |
- 。 | |
- ? | |
- ! | |
- : | |
- 、 | |
- “ | |
- ” | |
- ‘ | |
- ··· | |
- …… | |
- { click: "——" } | |
- { click: "——", label: "破折" } | |
- ( | |
- ) | |
- 【 | |
- 】 | |
- 《 | |
- 》 | |
- [ | |
- ] | |
- { | |
- } | |
- 「 | |
- 」 | |
- 『 | |
- 』 | |
- ~ | |
pinyin: | |
name: 拼音 | |
type: SINGLE | |
keys: "āáǎàōóēéěèǒòīíǐìūúǖǘǚǜǔùêüńň" | |
grease: | |
type: SINGLE | |
name: 希腊 | |
keys: "ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψω" | |
ascii: | |
type: SINGLE | |
name: 英文 | |
keys: ",.?!:;/\\|*-+=^$`'\"^~@#%&()[]{}_" | |
#键盘布局 | |
preset_keyboards: | |
default: | |
author: "暖暖" | |
name: 26键默认布局 | |
width: 10 | |
# height: 48 | |
label_transform: uppercase | |
ascii_mode: 0 | |
keys: | |
- {click: q, long_click: 1, swipe_up: 1, swipe_down: '!', hint: '!'} | |
- {click: w, long_click: 2, swipe_up: 2, swipe_down: '@', hint: '@'} | |
- {click: e, long_click: 3, swipe_up: 3, swipe_down: '#', hint: '#'} | |
- {click: r, long_click: 4, swipe_up: 4, swipe_down: '$', hint: '$'} | |
- {click: t, long_click: 5, swipe_up: 5, swipe_down: '%', hint: '%'} | |
- {click: y, long_click: 6, swipe_up: 6, swipe_down: '^', hint: '^'} | |
- {click: u, long_click: 7, swipe_up: 7, swipe_down: '&', hint: '&'} | |
- {click: i, long_click: 8, swipe_up: 8, swipe_down: '*', hint: '*'} | |
- {click: o, long_click: 9, swipe_up: 9, swipe_down: '+', hint: '+'} | |
- {click: p, long_click: 0, swipe_up: 0, swipe_down: '=', hint: '='} | |
- {width: 5} | |
- {click: a, long_click: select_all, swipe_up: select_all} | |
- {click: s, long_click: '`', swipe_up: '`', swipe_down: '、', hint: '、'} | |
- {click: d, long_click: '-', swipe_up: '-', swipe_down: '~', hint: '~'} | |
- {click: f, long_click: '_', swipe_up: '_', swipe_down: "——", hint: '——'} | |
- {click: g, long_click: "'", swipe_up: "'", swipe_down: '‘’{Left}', hint: '‘’'} | |
- {click: h, long_click: '"', swipe_up: '"', swipe_down: '“”{Left}', hint: '“”'} | |
- {click: j, long_click: '(){Left}', swipe_up: '(){Left}', swipe_down: '(){Left}', hint: '()'} | |
- {click: k, long_click: '[]{Left}', swipe_up: '[]{Left}', swipe_down: '【】{Left}', hint: '【】'} | |
- {click: l, long_click: '{}{Left}', swipe_up: '{}{Left}', swipe_down: '「」{Left}', hint: '「」'} | |
- {width: 5} | |
- {click: Shift_L, composing: delimiter, width: 15, hilited_key_back_color: benter, key_back_color: bbs, key_text_color: tbs} | |
- {click: z, long_click: '\', swipe_up: '\', swipe_down: '|', hint: '|'} | |
- {click: x, long_click: cut, swipe_up: cut, swipe_down: '!', hint: '!'} | |
- {click: c, long_click: copy, swipe_up: copy, swipe_down: '……', hint: '……'} | |
- {click: v, long_click: paste, swipe_up: paste, swipe_down: paste_clip, hint: '最近'} | |
- {click: b, long_click: ":", swipe_up: ":", swipe_down: ':', hint: ':'} | |
- {click: n, long_click: ";", swipe_up: ";", swipe_down: ';', hint: ';'} | |
- {click: m, long_click: '<>{Left}', swipe_up: '<>{Left}', swipe_down: '《》', hint: '《》'} | |
- {click: BackSpace, width: 15, key_back_color: bbs, key_text_color: tbs} | |
- {click: Keyboard_number, long_click: Keyboard_numberb, swipe_up: Keyboard_numberb, width: 12.5, key_back_color: bgn, key_text_color: tgn} | |
- {click: liquid_keyboard_switch, long_click: Color_switch, swipe_up: Color_switch, width: 12.5, key_text_size: "18", key_back_color: bgn, key_text_color: tgn} | |
- {click: ',', label: ','} | |
- {click: space, long_click: Mode_switch, swipe_up: Mode_switch, swipe_left: "Left", swipe_right: "Right", width: 30, key_back_color: bkg, key_text_color: tkg} | |
- {click: '.', label: '。', long_click: liquid_keyboard_clipboard, swipe_up: liquid_keyboard_clipboard} | |
- {click: '/', long_click: '?', swipe_up: '?', swipe_down: '?'} | |
- {click: Return, composing: Return1, swipe_up: Escape, width: 15, key_back_color: benter, key_text_color: tenter} | |
number: | |
author: "暖暖" | |
name: 数字+ | |
width: 16.6 | |
# height: 48 | |
ascii_mode: 1 | |
keys: | |
- {click: '{}{Left}', long_click: '【】{Left}', key_back_color: bgn, key_text_color: tgn} | |
- {click: '+', long_click: '#', key_back_color: bgn, key_text_color: tgn} | |
- {click: 1} | |
- {click: 2} | |
- {click: 3} | |
- {click: space1, key_back_color: bgn, key_text_color: tgn} | |
- {click: '_', long_click: '[]{Left}', key_back_color: bgn, key_text_color: tgn} | |
- {click: '-', long_click: '%', key_back_color: bgn, key_text_color: tgn} | |
- {click: 4} | |
- {click: 5} | |
- {click: 6} | |
- {label: EN, click: Keyboard_default, key_back_color: bgn, key_text_color: tgn} | |
- {click: '(){Left}', long_click: '@', key_back_color: bgn, key_text_color: tgn} | |
- {click: '*', long_click: '±', key_back_color: bgn, key_text_color: tgn} | |
- {click: 7, long_click: select_all} | |
- {click: 8, long_click: copy} | |
- {click: 9, long_click: paste_clip, swipe_down: paste} | |
- {click: BackSpace, key_back_color: bbs, key_text_color: tbs} | |
- {click: Keyboard_default, long_click: ':', key_back_color: bgn, key_text_color: 'tgn'} | |
- {click: '/', long_click: '\', key_back_color: bgn, key_text_color: tgn} | |
- {click: ., long_click: Keyboard_numberb, key_back_color: bgn, key_text_color: tgn} | |
- {click: 0, long_click: cut} | |
- {click: '=', long_click: '≠', key_back_color: bgn, key_text_color: tgn} | |
- {click: Return, long_click: Menu, key_back_color: benter, key_text_color: tenter} | |
numberb: | |
ascii_mode: 1 | |
author: flypy.com | |
name: "编辑键盘" | |
width: 20.25 | |
height: *jpgd5 | |
keys: | |
- {click: select_all} | |
- {click: Left1} | |
- {click: Up} | |
- {click: Right1} | |
- {click: space1, key_back_color: gnb, key_text_color: gnt, width: 19} | |
- {click: cut} | |
- {click: Left} | |
- {click: Shift_L2} | |
- {click: Right} | |
- {click: Keyboard_number, key_back_color: gnb, key_text_color: gnt, width: 19} | |
- {click: copy} | |
- {click: Home} | |
- {click: Down} | |
- {click: End} | |
- {click: BackSpace, key_back_color: gnb, key_text_color: gnt, width: 19} | |
- {click: paste} | |
- {click: undo} | |
- {click: Tab1} | |
- {click: redo} | |
- {click: Return, long_click: Keyboard_default, swipe_up: Keyboard_default, key_back_color: gnb, key_text_color: gnt, width: 19} | |
preset_keys: | |
# 安卓 | |
BRIGHTNESS_DOWN: {label: 亮度-, send: BRIGHTNESS_DOWN} | |
BRIGHTNESS_UP: {label: 亮度+, send: BRIGHTNESS_UP} | |
CALCULATOR: {label: 计算机, send: CALCULATOR} | |
CALENDAR: {label: 日历, send: CALENDAR} | |
CONTACTS: {label: 电话簿, send: CONTACTS} | |
ENVELOPE: {label: 信箱, send: ENVELOPE} | |
EXPLORER: {label: 浏览器, send: EXPLORER} | |
MUSIC: {label: 音乐, send: MUSIC} | |
POWER: {label: 电源, send: POWER} | |
SEARCH: {label: 搜寻, send: Find} | |
SLEEP: {label: 休眠, send: SLEEP} | |
VOICE_ASSIST: {label: 语音, functional: true, send: VOICE_ASSIST} | |
VOLUME_DOWN: {label: 音量-, send: VOLUME_DOWN} | |
VOLUME_UP: {label: 音量+, send: VOLUME_UP} | |
VOLUME_MUTE: {label: 静音, send: VOLUME_MUTE} | |
# 编辑 | |
Shift_L: {label: Shift, preview: '⇪', functional: false, send: Shift_L} | |
Return: { label: enter_labels, preview: '↩', functional: false, send: Return } | |
Return1: {label: Enter, preview: '↩', functional: false, send: Return} | |
Hide: {label: 隐藏, send: BACK} | |
BackSpace: {label: 退格, preview: '⇦', repeatable: true, functional: false, send: BackSpace} | |
space: {repeatable: false, preview: ' ', functional: false, label: '_______', send: space} | |
space1: {repeatable: false, label: '空格', functional: false, send: space} | |
Clear: {label: 全清, send: Clear} | |
Escape: {label: 取消, functional: false, send: Escape} | |
Home: {label: 行首, send: Home, functional: false} | |
Insert: {label: 插入, send: Insert} | |
Delete: {label: 删除, send: Delete, functional: false} | |
End: {label: 行尾, send: End, functional: false} | |
Page_Up: {label: 上页, send: Page_Up, functional: false} | |
Page_Down: {label: 下页, send: Page_Down, functional: false} | |
Left: {label: '←', send: Left, repeatable: true, functional: false} | |
Down: {label: '↓', send: Down, functional: false} | |
Up: {label: '↑', send: Up, functional: false} | |
Right: {label: '→', send: Right, repeatable: true, functional: false} | |
select_all: {label: 全选, functional: false, send: Control+a} | |
cut: {label: 剪切, functional: false, send: Control+x} | |
copy: {label: 复制, functional: false, send: Control+c} | |
paste: {label: 粘贴, functional: false, send: Control+v} | |
paste_clip: {label: 粘贴, send: function, command: clipboard} | |
paste_text: {label: 貼上文本, send: Control+Shift+Alt+v} #>=Android 6.0 | |
share_text: {label: 分享文本, send: Control+Alt+s} #>=Android 6.0 | |
redo: {label: 重做, functional: false, send: Control+Shift+z} #>=Android 6.0 | |
undo: {label: 撤銷, functional: false, send: Control+z} #>=Android 6.0 | |
delimiter: {label: 分词, text: ''''} | |
x1: {text: '{Home}{Right}{Right}', label: 单字, functional: false} | |
x2: {text: '{Home}{Right}{Right}{Right}{Right}', label: 二字, functional: false} | |
x3: {text: '{Home}{Right}{Right}{Right}{Right}{Right}{Right}', label: 三字, functional: false} | |
x4: {text: '{Home}{Right}{Right}{Right}{Right}{Right}{Right}{Right}{Right}', label: 四字, functional: false} | |
# x1: {text: '{Home}{Right}{Right}', label: 单字, functional: false} | |
# rime组合键 | |
F4: {label: 方案菜单, send: F4} | |
BackToPreviousSyllable: {label: 删音节, send: Control+BackSpace} | |
CommitRawInput: {label: 编码, send: Control+Return} | |
CommitScriptText: {label: 编码, send: Shift+Return} | |
CommitComment: {label: 编码, send: Control+Shift+Return} | |
DeleteCandidate: {label: 删词, send: Control+Delete, functional: false} | |
#切换键盘 | |
Keyboard_letter: { label: 字母, functional: true, send: Eisu_toggle, select: default } | |
Keyboard_default: { label: 返回, functional: false, send: Eisu_toggle, select: .default } | |
Keyboard_switch: { label: 键盘, functional: true, send: Eisu_toggle, select: .next } | |
Keyboard_number: { label: 123, functional: false, send: Eisu_toggle, select: number } | |
Keyboard_numberb: { label: 编辑, functional: false, send: Eisu_toggle, select: numberb } | |
Keyboard_symbols: { label: 更多, functional: false, send: Eisu_toggle, select: symbols } | |
Keyboard_move: { label: ❖, functional: true, send: Eisu_toggle, select: move } | |
Keyboard_next: { label: 后退, functional: false, send: Eisu_toggle, select: .next } | |
Keyboard_last: { label: 后退, functional: false, send: Eisu_toggle, select: .last } | |
Keyboard_last_lock: { label: 返回, send: Eisu_toggle, select: .last_lock } #直接切換到下一键盘 | |
liquid_keyboard_switch: { label: ⌘, send: function, command: liquid_keyboard, option: "特殊" } | |
liquid_keyboard_switch2: { toggle: _liquid_keyboard, send: Mode_switch, states: [ 更多, 更多 ] } | |
liquid_keyboard_emoji: { label: 🙂, send: function, command: liquid_keyboard, option: "emoji" } | |
liquid_keyboard_clipboard: { label: 剪贴, send: function, command: liquid_keyboard, option: "剪贴" } | |
# rime状态 | |
Mode_switch: {toggle: ascii_mode, functional: false, send: Mode_switch, states: [ 中文, 西文 ]} | |
Zenkaku_Hankaku: {toggle: full_shape, send: Mode_switch, states: [ 半角, 全角 ]} | |
Henkan: {toggle: simplification, send: Mode_switch, states: [ 汉字, 汉字 ]} | |
Charset_switch: {toggle: extended_charset, send: Mode_switch, states: [ 常用, 增广 ]} | |
Punct_switch: {toggle: ascii_punct, send: Mode_switch, states: [ 。,, ., ]} | |
# trime设置 | |
IME_switch: {label: 🌐, send: LANGUAGE_SWITCH} #彈出對話框選擇輸入法 | |
IME_last: {label: 上一输入法, send: LANGUAGE_SWITCH, select: .last} #直接切換到上一輸入法 | |
IME_next: {label: 下一输入法, send: LANGUAGE_SWITCH, select: .next} #直接切換到下一輸入法 | |
Schema_switch: {label: 下一方案, functional: false, send: Control+Shift+1} | |
Schema_Eng: {label: En, functional: true, send: Control+Shift+0} | |
Theme_settings: {label: 主题, send: SETTINGS, option: "theme"} | |
Color_switch: {label: 配色, functional: false, send: PROG_RED} | |
Help: {label: 说明, send: Help} | |
Info: {label: 关于, send: INFO} | |
Menu: {label: 菜单, functional: false, send: Menu} | |
Settings: {label: 设置, functional: false, send: SETTINGS} | |
# trime命令 | |
Date: {label: 日期, send: function, command: date, option: " yyyy-MM-dd "} | |
Time: {label: 時間, send: function, command: date, option: "HH:mm:ss"} #時間: date 格式 | |
TrimeApp: {label: 同文, send: function, command: run, option: "com.osfans.trime"} #運行程序: run 包名 | |
TrimeCmp: {label: 同文組件, send: function, command: run, option: "com.osfans.trime/.Pref"} #運行程序指定組件: run 包名/組件名 | |
Homepage: {label: 同文主頁, send: function, command: run, option: "https://github.com/osfans/trime"} #查看網頁: run 網址 | |
Wiki: {label: 維基, send: function, command: run, option: "https://zh.wikipedia.org/wiki/%s"} #搜索網頁: %s或者%1$s爲當前字符 | |
Google: {label: 谷歌, send: function, command: run, option: "https://www.google.com/search?q=%s"} #搜索網頁: %s或者%1$s爲當前字符 | |
MoeDict: {label: 萌典, send: function, command: run, option: "https://www.moedict.tw/%3$s"} #搜索網頁: %3$s爲光標前字符 | |
Baidu: {label: 百度搜索, send: function, command: run, option: "https://www.baidu.com/s?wd=%4$s"} #搜索網頁: %4s爲光標前所有字符 | |
Zdic: {label: 漢典, send: function, command: run, option: "http://www.zdic.net/sousuo/?q=%1$s"} #搜索網頁: %s或者%1$s爲當前字符 | |
Zdic2: {label: 漢典, send: function, command: run, option: "http://www.zdic.net/sousuo/?q=%2$s"} #搜索網頁: %2$s爲當前輸入的編碼 | |
WebSearch: {label: 搜索網頁, send: function, command: web_search, option: "%4$s"} #搜索,其他view、dial、edit、search等intent,參考安卓的intent文檔:https://developer.android.com/reference/android/content/Intent.html | |
Left1: {label: '⇦', send: Control+Left, repeatable: true, functional: false} | |
Right1: {label: '⇨', send: Control+Right, repeatable: true, functional: false} | |
Shift_L2: {label: 选择, preview: '⇪', functional: false, send: Shift_L} | |
# 22自定义功能键 | |
Keyboard_defaulten: {label: EN, functional: false, send: Eisu_toggle, select: letter} | |
Schema_switchen1: {label: EN, send: Control+Shift+5, functional: true} | |
Schema_switchen: {label: EN, send: Control+Shift+5, functional: false} | |
Schema_switchcn: {label: 中文, send: Control+Shift+6, functional: false} | |
Keyboard_v2: {label: "✾", functional: false, send: v} | |
Keyboard_r2: {label: "❀", functional: false, send: r} | |
Keyboard_fc: {label: "'分词", send: apostrophe, functional: false} | |
Control_L: {label: "退格", send: Control_L, functional: false} | |
# aoeiu功能键 | |
Keyboard_a: {label: "A", functional: false, send: asciicircum, key_text_color: bct0} | |
Keyboard_u: {label: "U", functional: false, send: exclam, key_text_color: bct0} | |
Keyboard_i: {label: "I", functional: false, send: question, key_text_color: bct0} | |
Keyboard_o: {label: "O", functional: false, send: comma, key_text_color: bct0} | |
Keyboard_e: {label: "E", functional: false, send: period, key_text_color: bct0} | |
Keyboard_a3: {label: "……", functional: false, send: asciicircum} | |
Zcj: {label: 单字, functional: false, text: "{Home}{Right}{Right}"} | |
Tab: {label: 字词, send: Tab} | |
Tab1: {label: Tab, functional: false, send: Tab} | |
space_R1: {label: "EN", functional: false, send: Eisu_toggle, select: letter} | |
space_R2: {label: "中", functional: false, send: Eisu_toggle, select: fbj} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment