Defining the Keyboard
Это содержимое пока не доступно на вашем языке.
When you bring a layout over from another keyboard or model a board that is new to the Playground, the keyboard definition tells the editor which keys exist and where they sit. Optional finger assignments and homes let analysis use the way you actually reach those keys.
Standard Boards
Section titled “Standard Boards”On an ANSI board such as QWERTY, the long
Layer activators · Keysets
Layer activators
shift_rightshift_leftKeysets
On Bépo, choosing ISO puts the
Compose · Layer activators · Keysets · Notes
Compose
Layer activators
shift_rightshift_leftKeysets
Notes
board = "iso"space_thumb = "left"
[key_grid]rows = '''$ " « » ( ) @ + - / * = % skipskip b é p o è ^ v d l j z wskip a u i e , c t s r n m ç ⏎lsh ê à y x . k ' q g h f rsh'''space = "spc"right_alt = "altgr"The iso board defines the grid groups rows, space, right_alt. space_thumb assigns the separate Space key.
To model the dedicated keys around Space on QWERTY (Mozc), choose JIS and give those positions a shared key_grid.bottom. The four main rows contain 15, 13, 14, and 13 slots; bottom contains ten.
Compose · Layer activators · Keysets
Compose
- Committed text:
ー - Committed text:
え - Committed text:
う - Committed text:
い - Committed text:
お - Committed text:
「 - Committed text:
あ - Committed text:
」 - Committed text:
、 - Committed text:
。
Layer activators
shift_rightshift_leftKeysets
The grid is a string of physical key IDs. For example, Bépo’s ⏎ ID remains in the grid even though its base binding produces no text. skip removes a slot altogether. Key assignments describe what the retained keys do.
Board Geometry and Key Positions
Section titled “Board Geometry and Key Positions”| Field | What to enter |
|---|---|
board | "ansi", "iso", "jis", or a board table describing the main rows, hand columns, and thumb keys. |
key_grid.rows | Whitespace-separated key IDs. ANSI uses rows of 14, 14, 13, and 12 slots; ISO uses 14, 13, 14, and 13. Use skip for an absent key. Keep every retained key ID distinct. |
key_grid.space, key_grid.right_alt | Optional separate position IDs for ANSI and ISO Space and Right Alt. |
key_grid.bottom | JIS uses a separate grid of ten bottom-row slots instead of the ANSI/ISO Space and Right Alt fields. |
fingermap | ANSI or ISO presets include "standard", "angle_mod", "meteorite", and "nokwts". Their _wide forms shift the right-hand nonthumb assignments and homes, not the physical keys. |
fingermap.grid, fingermap.home_keys | For a custom assignment, mirror the key grid, including skip slots. Use digits 0–4 from left pinky to left thumb and 5–9 from right thumb to right pinky. Name a retained home key for every used finger, including fingers used only in an alternate fingering. |
space_thumb | Use "left" or "right" for ANSI/ISO Space; the default is left. It must agree with the assignment when the custom map includes Space. |
Independent Hand Geometry
Section titled “Independent Hand Geometry”Chog v2 gives each hand its own half of an ortholinear board and puts both thumb keys on the final row. On ortho and column-staggered boards, each row lists the left-hand keys first. A custom fingermap follows the same shape, and boards with thumbs disabled have no thumb row:
[board]type = "ortho"rows_above = 1rows_below = 1hands = { left = { outer_columns = 1, inner_columns = 1 }, right = { outer_columns = 1, inner_columns = 1 } }thumbs = { enabled = true, left = { outer_columns = 0, inner_columns = 0 }, right = { outer_columns = 0, inner_columns = 0 } }
[key_grid]rows = '''skip x k l c p z y o h , skipskip n t r d m ' s a e i skiplsh b v j g w q f u ; . rshspc magic'''The ortho board specifies rows_above, rows_below, hands, thumbs before listing its key_grid.rows. The hand geometry sets outer_columns, inner_columns; the thumb geometry uses its own enabled, left and right, outer_columns, inner_columns fields.
| Board field | What it does |
|---|---|
board.rows_above, board.rows_below | Counts of rows on either side of home. |
board.hands.left, board.hands.right | The hands present. Each starts with four home columns. outer_columns adds columns toward the pinky, and inner_columns adds them toward the thumb. |
column_overrides | On one hand, override a column’s row count or y_offset. A positive offset moves down; four quarter-key units make one key unit. |
board.thumbs | If enabled, describe the thumb cluster of each present hand. Each starts with one home thumb key. When disabled, omit the separate hand dimensions. |
board.key_centers | Optional measured centers in quarter-key units, x rightward and y downward, for all retained keys. Provide a custom fingermap with homes when using measured centers. |