trime.yaml
trime configuration file
| 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
Properties
config version
方案名稱
作者資訊
43 nested properties
自动句首大写
候選字型
候選項內邊距
候選間距
候選字號
候選區高度
編碼提示字型
編碼提示區高度
編碼提示在上方或右側
編碼提示字號
擴充字型
鍵水平間距
竖屏模式下,屏幕左右两侧与键盘的距离(曲面屏减少误触)
竖屏屏模式下,左手键盘布局,屏幕左侧与键盘的距离
竖屏屏模式下,左手键盘布局,屏幕右侧与键盘的距离
竖屏模式下,屏幕下边缘与键盘的距离(避免误触发全面屏手势)
横屏模式下,屏幕左右两侧与键盘的距离(避免横屏按键过度拉伸变形)
横屏模式下,屏幕下侧与键盘的距离
鍵盤字型
鍵高
鍵字號
鍵寬,佔螢幕寬的百分比
鍵盤配置
標籤字號
編標籤字型
西文字型
锁定键盘高度,避免切换时键盘高度变化而造成闪烁
锁定横屏下键盘高度,避免切换时键盘高度变化而造成闪烁
按鍵提示字型
按鍵提示高度
按鍵提示縱向偏移
按鍵提示字號
按鍵糾錯
顯示鍵盤時重置爲中文狀態
按鍵圓角半徑
按鍵陰影半徑
符號字型
編碼字型
触摸位置校正(竖直方向)。为了提升打字手感,可将按键的实际触摸位置相对其显示位置上下偏移一点点
鍵盤行距
背景图保存在background目录下的哪个子目录
是否使用App提供的ActionLabel内容作为Enter键的文本(由于多数App没有适配ActionLable,实际影响不大)。0不使用,1只使用actionlabel,2优先使用,3当其他方式没有获得label时才读取actionlabel
定义Enter键的文本
7 nested properties
4 nested properties
1 nested properties
6 nested properties
2 nested properties
2 nested properties
3 nested properties
4 nested properties
3 nested properties
6 nested properties
7 nested properties
[]
[]
[]
[]
35 nested properties
高亮候选序号
整个键盘区+候选栏的背景图/色
候选栏的整体背景图/色
键盘区的背景图/色
liquidKeyboard 的背景图/色
编码区背景,即悬浮窗背景
长文本按键的背景(剪贴板)
10 nested properties
每屏最多显示多少行按键
横屏每屏最多显示多少行按键
按键高度
横屏模式按键高度
single类型的按键宽度
纵向按键间隙
左右按键间隙的1/2
2 nested properties
固定按键条摆放位置(相对滚动区域的上/下/左/右方位)
固定按键条的按键(显示名称为对应的label,不能放太多)
Definitions
[]
[]
6 nested properties
7 nested properties
[]
[]