Type object
File match trime.yaml trime.yml *.trime.yaml *.trime.yml
Schema URL https://catalog.lintel.tools/schemas/schemastore/trime-yaml/latest.json
Source https://raw.githubusercontent.com/osfans/trime/develop/doc/trime-schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Properties

config_version string

config version

pattern=\d+(\.\d+)*
name string

方案名稱

author string

作者資訊

style object
43 nested properties
auto_caps enum

自动句首大写

Default: false
Values: true false "ascii"
candidate_font string

候選字型

candidate_padding integer

候選項內邊距

candidate_spacing number

候選間距

candidate_text_size integer

候選字號

candidate_view_height integer

候選區高度

comment_font string

編碼提示字型

comment_height integer

編碼提示區高度

comment_on_top boolean

編碼提示在上方或右側

comment_text_size integer

編碼提示字號

hanb_font string

擴充字型

horizontal_gap integer

鍵水平間距

keyboard_padding integer

竖屏模式下,屏幕左右两侧与键盘的距离(曲面屏减少误触)

keyboard_padding_left integer

竖屏屏模式下,左手键盘布局,屏幕左侧与键盘的距离

keyboard_padding_right integer

竖屏屏模式下,左手键盘布局,屏幕右侧与键盘的距离

keyboard_padding_bottom integer

竖屏模式下,屏幕下边缘与键盘的距离(避免误触发全面屏手势)

keyboard_padding_land integer

横屏模式下,屏幕左右两侧与键盘的距离(避免横屏按键过度拉伸变形)

keyboard_padding_land_bottom integer

横屏模式下,屏幕下侧与键盘的距离

key_font string

鍵盤字型

key_height integer

鍵高

key_text_size integer

鍵字號

key_width number

鍵寬,佔螢幕寬的百分比

keyboards string[]

鍵盤配置

label_text_size integer

標籤字號

label_font string

編標籤字型

latin_font string

西文字型

keyboard_height integer

锁定键盘高度,避免切换时键盘高度变化而造成闪烁

keyboard_height_land integer

锁定横屏下键盘高度,避免切换时键盘高度变化而造成闪烁

preview_font string

按鍵提示字型

preview_height integer

按鍵提示高度

preview_offset integer

按鍵提示縱向偏移

Default: "-12"
preview_text_size integer

按鍵提示字號

proximity_correction boolean

按鍵糾錯

reset_ascii_mode boolean

顯示鍵盤時重置爲中文狀態

round_corner number

按鍵圓角半徑

shadow_radius number

按鍵陰影半徑

symbol_font string

符號字型

symbol_text_size integer

編碼字型

vertical_correction number

触摸位置校正(竖直方向)。为了提升打字手感,可将按键的实际触摸位置相对其显示位置上下偏移一点点

Default: "-10"
vertical_gap number

鍵盤行距

background_folder string

背景图保存在background目录下的哪个子目录

enter_label_mode integer

是否使用App提供的ActionLabel内容作为Enter键的文本(由于多数App没有适配ActionLable,实际影响不大)。0不使用,1只使用actionlabel,2优先使用,3当其他方式没有获得label时才读取actionlabel

min=0max=3
enter_labels object

定义Enter键的文本

7 nested properties
go string
Default: "前往"
done string
Default: "完成"
next string
Default: "下个"
pre string
Default: "上个"
search string
Default: "搜索"
send string
Default: "发送"
default string
Default: "Enter"
preedit object
4 nested properties
horizontal_padding integer
Default: 8
min=0max=64
top_end_radius number
Default: 0.0
min=0.0max=48
alpha number
Default: 1.0
min=0.0max=1.0
foreground object
1 nested properties
font_size number
Default: 16
min=0.0max=64
window object
6 nested properties
insets object
2 nested properties
vertical integer
Default: 0
min=0max=64
horizontal integer
Default: 0
min=0max=64
item_padding object
2 nested properties
vertical integer
Default: 0
min=0max=64
horizontal integer
Default: 0
min=0max=64
min_width integer
Default: 0
min=0max=640
corner_radius number
Default: 0
min=0max=48
alpha number
Default: 1.0
min=0.0max=1.0
foreground object
3 nested properties
label_font_size number
Default: 20
min=0.0max=64
text_font_size number
Default: 20
min=0.0max=64
comment_font_size number
Default: 16
min=0.0max=64
tool_bar
4 nested properties
primary_button object
3 nested properties
background object
6 nested properties
type string
Default: "rectangle"
corner_radius number
Default: 10
bg_normal string
Default: ""
bg_highlight string
Default: ""
vertical_inset integer
Default: 4
horizontal_inset integer
Default: 0
foreground object
7 nested properties
style string
Default: ""
option_styles string[]
Default:
[]
fg_normal string | null
Default: null
fg_highlight string | null
Default: null
font_size number
Default: 15
size integer[]
Default:
[]
padding integer
Default: 5
action string
Default: ""
Default:
[]
button_spacing integer
Default: 18
button_font string[]
Default:
[]
fallback_colors object
35 nested properties
candidate_text_color string
Default: "text_color"
comment_text_color string
Default: "candidate_text_color"
border_color string
Default: "back_color"
candidate_separator_color string
Default: "border_color"
hilited_text_color string
Default: "text_color"
hilited_back_color string
Default: "back_color"
hilited_candidate_text_color string
Default: "hilited_text_color"
hilited_candidate_back_color string
Default: "hilited_back_color"
hilited_label_color string

高亮候选序号

Default: "hilited_candidate_text_color"
hilited_comment_text_color string
Default: "comment_text_color"
hilited_key_back_color string
Default: "hilited_candidate_back_color"
hilited_key_text_color string
Default: "hilited_candidate_text_color"
hilited_key_symbol_color string
Default: "hilited_comment_text_color"
hilited_off_key_back_color string
Default: "hilited_key_back_color"
hilited_on_key_back_color string
Default: "hilited_key_back_color"
hilited_off_key_text_color string
Default: "hilited_key_text_color"
hilited_on_key_text_color string
Default: "hilited_key_text_color"
key_back_color string
Default: "back_color"
key_border_color string
Default: "border_color"
key_text_color string
Default: "candidate_text_color"
key_symbol_color string
Default: "comment_text_color"
label_color string
Default: "candidate_text_color"
off_key_back_color string
Default: "key_back_color"
off_key_text_color string
Default: "key_text_color"
on_key_back_color string
Default: "hilited_key_back_color"
on_key_text_color string
Default: "hilited_key_text_color"
preview_back_color string
Default: "key_back_color"
preview_text_color string
Default: "key_text_color"
shadow_color string
Default: "border_color"
root_background string

整个键盘区+候选栏的背景图/色

Default: "back_color"
candidate_background string

候选栏的整体背景图/色

Default: "back_color"
keyboard_back_color string

键盘区的背景图/色

Default: "border_color"
liquid_keyboard_background string

liquidKeyboard 的背景图/色

Default: "keyboard_back_color"
text_back_color string

编码区背景,即悬浮窗背景

Default: "back_color"
long_text_back_color string

长文本按键的背景(剪贴板)

Default: "key_back_color"
preset_color_schemes object
liquid_keyboard object
10 nested properties
author string
row integer

每屏最多显示多少行按键

row_land integer

横屏每屏最多显示多少行按键

key_height integer

按键高度

key_height_land integer

横屏模式按键高度

single_width integer

single类型的按键宽度

vertical_gap integer

纵向按键间隙

margin_x number

左右按键间隙的1/2

fixed_key_bar object
2 nested properties
position enum

固定按键条摆放位置(相对滚动区域的上/下/左/右方位)

Values: "top" "bottom" "left" "right"
keys array

固定按键条的按键(显示名称为对应的label,不能放太多)

keyboards string[]
preset_keys object
preset_keyboards object

Definitions

ToolBar.Button.Background object
type string
Default: "rectangle"
corner_radius number
Default: 10
bg_normal string
Default: ""
bg_highlight string
Default: ""
vertical_inset integer
Default: 4
horizontal_inset integer
Default: 0
ToolBar.Button.Foreground object
style string
Default: ""
option_styles string[]
Default:
[]
fg_normal string | null
Default: null
fg_highlight string | null
Default: null
font_size number
Default: 15
size integer[]
Default:
[]
padding integer
Default: 5
ToolBar.Button object
background object
6 nested properties
type string
Default: "rectangle"
corner_radius number
Default: 10
bg_normal string
Default: ""
bg_highlight string
Default: ""
vertical_inset integer
Default: 4
horizontal_inset integer
Default: 0
foreground object
7 nested properties
style string
Default: ""
option_styles string[]
Default:
[]
fg_normal string | null
Default: null
fg_highlight string | null
Default: null
font_size number
Default: 15
size integer[]
Default:
[]
padding integer
Default: 5
action string
Default: ""